michael xie
michael xie
in some case that need add additional arguements for go test. eg. gomonkey project need run mock test case by add -gcflags="all=-N -l" arguments. here is the example to show...
位置在该方法下 (cw *ConnWrapper) Read(b []byte) (n int, err error)
the requestCallState from RpcClient struct should be replace by sync.Map avoid of concurrent error on parall access error
迁移pb类库 由 github.com/golang/protobuf 迁移到 google.golang.org/protobuf 目前两个类型,对于已经生成的pb代码格式有一定的兼容性问题,需要改造相关的生成的代码
as the title
header key which defined by const value as follow: LogId_key = "X-LogID" Trace_Id_key = "X-Trace_ID" Trace_Span_key = "X-Trace_Span" Trace_Parent_key = "X-Trace_Parent" Request_Meta_Key = "X-Request-Meta" // Json value
authenticate data pass through http header header key = "X-Authenticate"
PeekAll method supporting pagination func PeekPagination(page, pagesize int) ([][]byte, []int64, error)