SYMBOL INDEX (8588 symbols across 718 files) FILE: client/callopt/options.go type CallOptions (line 40) | type CallOptions struct method Recycle (line 63) | func (co *CallOptions) Recycle() { function newOptions (line 54) | func newOptions() interface{} { type Option (line 76) | type Option struct method F (line 83) | func (o Option) F() func(o *CallOptions, di *strings.Builder) { function NewOption (line 89) | func NewOption(f func(o *CallOptions, di *strings.Builder)) Option { function WithHostPort (line 95) | func WithHostPort(hostport string) Option { function setInstance (line 107) | func setInstance(svr remoteinfo.RemoteInfo, hostport string) error { function WithURL (line 120) | func WithURL(url string) Option { function WithHTTPHost (line 139) | func WithHTTPHost(host string) Option { function WithRPCTimeout (line 148) | func WithRPCTimeout(d time.Duration) Option { function WithConnectTimeout (line 162) | func WithConnectTimeout(d time.Duration) Option { function WithTag (line 172) | func WithTag(key, val string) Option { function WithRetryPolicy (line 201) | func WithRetryPolicy(p retry.Policy) Option { function WithFallback (line 224) | func WithFallback(fb *fallback.Policy) Option { function WithGRPCCompressor (line 237) | func WithGRPCCompressor(compressorName string) Option { function WithBinaryGenericIDLService (line 258) | func WithBinaryGenericIDLService(svcName string) Option { function Apply (line 271) | func Apply(cos []Option, cfg rpcinfo.MutableRPCConfig, svr remoteinfo.Re... FILE: client/callopt/options_test.go constant mockHostPort (line 47) | mockHostPort = "127.0.0.1:8888" constant mockURL (line 48) | mockURL = "www.cloudwego.com" constant mockHTTPHost (line 49) | mockHTTPHost = "www.cloudwego.com" constant mockRPCTimeout (line 50) | mockRPCTimeout = 1000 * time.Millisecond constant mockRPCTimeoutStr (line 51) | mockRPCTimeoutStr = "1000ms" constant mockConnectTimeout (line 52) | mockConnectTimeout = 500 * time.Millisecond constant mockConnectTimeoutStr (line 53) | mockConnectTimeoutStr = "500ms" constant mockKey (line 54) | mockKey = "mock_key" constant mockVal (line 55) | mockVal = "mock_val" function TestApply (line 59) | func TestApply(t *testing.T) { function BenchmarkStringsBuilder (line 138) | func BenchmarkStringsBuilder(b *testing.B) { FILE: client/callopt/streamcall/call_options.go function WithHostPort (line 32) | func WithHostPort(hostPort string) Option { function WithURL (line 38) | func WithURL(url string) Option { function WithConnectTimeout (line 43) | func WithConnectTimeout(d time.Duration) Option { function WithTag (line 48) | func WithTag(key, val string) Option { function WithRecvTimeout (line 58) | func WithRecvTimeout(d time.Duration) Option { function WithRecvTimeoutConfig (line 82) | func WithRecvTimeoutConfig(cfg streaming.TimeoutConfig) Option { function WithBinaryGenericIDLService (line 101) | func WithBinaryGenericIDLService(svcName string) Option { FILE: client/callopt/streamcall/call_options_test.go function TestWithRecvTimeout (line 29) | func TestWithRecvTimeout(t *testing.T) { function TestWithRecvTimeoutConfig (line 38) | func TestWithRecvTimeoutConfig(t *testing.T) { function TestWithBinaryGenericIDLService (line 59) | func TestWithBinaryGenericIDLService(t *testing.T) { FILE: client/callopt/streamcall/definition.go type Option (line 26) | type Option struct method GetCallOption (line 32) | func (o Option) GetCallOption() callopt.Option { function ConvertOptionFrom (line 41) | func ConvertOptionFrom(option callopt.Option) Option { function GetCallOptions (line 46) | func GetCallOptions(ops []Option) []callopt.Option { FILE: client/callopt/streamcall/grpc_options.go function WithGRPCCompressor (line 22) | func WithGRPCCompressor(compressorName string) Option { FILE: client/client.go type Client (line 67) | type Client interface type kClient (line 71) | type kClient struct method init (line 114) | func (kc *kClient) init() (err error) { method checkOptions (line 148) | func (kc *kClient) checkOptions() (err error) { method initCircuitBreaker (line 155) | func (kc *kClient) initCircuitBreaker() error { method initRetryer (line 162) | func (kc *kClient) initRetryer() error { method initContext (line 172) | func (kc *kClient) initContext() context.Context { method initProxy (line 183) | func (kc *kClient) initProxy() error { method initConnPool (line 209) | func (kc *kClient) initConnPool() error { method initLBCache (line 236) | func (kc *kClient) initLBCache() error { method initMiddlewares (line 297) | func (kc *kClient) initMiddlewares(ctx context.Context) (mw middleware) { method initRPCInfo (line 347) | func (kc *kClient) initRPCInfo(ctx context.Context, method string, ret... method Call (line 365) | func (kc *kClient) Call(ctx context.Context, method string, request, r... method rpcCallWithRetry (line 429) | func (kc *kClient) rpcCallWithRetry(ri rpcinfo.RPCInfo, method string)... method initDebugService (line 451) | func (kc *kClient) initDebugService() { method richRemoteOption (line 460) | func (kc *kClient) richRemoteOption() { method buildInvokeChain (line 479) | func (kc *kClient) buildInvokeChain(mw middleware) error { method invokeHandleEndpoint (line 506) | func (kc *kClient) invokeHandleEndpoint() (endpoint.Endpoint, error) { method Close (line 550) | func (kc *kClient) Close() error { method warmingUp (line 601) | func (kc *kClient) warmingUp() error { type kcFinalizerClient (line 86) | type kcFinalizerClient struct method Call (line 90) | func (kf *kcFinalizerClient) Call(ctx context.Context, method string, ... function NewClient (line 96) | func NewClient(svcInfo *serviceinfo.ServiceInfo, opts ...Option) (Client... type middleware (line 278) | type middleware struct function richMWsWithBuilder (line 337) | func richMWsWithBuilder(ctx context.Context, mwBs []endpoint.MiddlewareB... function applyCallOptions (line 353) | func applyCallOptions(ctx context.Context, cfg rpcinfo.MutableRPCConfig,... function newCliTransHandler (line 577) | func newCliTransHandler(opt *remote.ClientOption) (remote.ClientTransHan... function initTransportProtocol (line 592) | func initTransportProtocol(svcInfo *serviceinfo.ServiceInfo, cfg rpcinfo... function validateForCall (line 687) | func validateForCall(ctx context.Context, inited, closed bool) { function getCalloptRetryPolicy (line 699) | func getCalloptRetryPolicy(callOpts *callopt.CallOptions) (callOptRetry ... function doFallbackIfNeeded (line 708) | func doFallbackIfNeeded(ctx context.Context, ri rpcinfo.RPCInfo, request... function getFallbackPolicy (line 730) | func getFallbackPolicy(cliOptFB *fallback.Policy, callOpts *callopt.Call... function purifyProtocol (line 746) | func purifyProtocol(cfg rpcinfo.MutableRPCConfig, tp transport.Protocol,... function initRPCInfo (line 767) | func initRPCInfo(ctx context.Context, method string, opt *client.Options... FILE: client/client_test.go function newMockConn (line 83) | func newMockConn(ctrl *gomock.Controller) netpoll.Connection { function newDialer (line 97) | func newDialer(ctrl *gomock.Controller) remote.Dialer { function newMockCliTransHandlerFactory (line 104) | func newMockCliTransHandlerFactory(ctrl *gomock.Controller) remote.Clien... function newMockClient (line 125) | func newMockClient(tb testing.TB, ctrl *gomock.Controller, extra ...Opti... function TestCall (line 141) | func TestCall(t *testing.T) { function TestCallWithContextBackup (line 155) | func TestCallWithContextBackup(t *testing.T) { function TestWithRetryOption (line 198) | func TestWithRetryOption(t *testing.T) { function BenchmarkCall (line 208) | func BenchmarkCall(b *testing.B) { function BenchmarkCallParallel (line 224) | func BenchmarkCallParallel(b *testing.B) { function TestTagOptions (line 242) | func TestTagOptions(t *testing.T) { function TestTagOptionLocks0 (line 301) | func TestTagOptionLocks0(t *testing.T) { function TestTagOptionLocks1 (line 333) | func TestTagOptionLocks1(t *testing.T) { function TestTagOptionLocks2 (line 365) | func TestTagOptionLocks2(t *testing.T) { function TestWarmingUpOption (line 399) | func TestWarmingUpOption(t *testing.T) { function TestTimeoutOptions (line 410) | func TestTimeoutOptions(t *testing.T) { function TestTimeoutCtxCall (line 449) | func TestTimeoutCtxCall(t *testing.T) { function TestTimeoutOptionsLock0 (line 475) | func TestTimeoutOptionsLock0(t *testing.T) { function TestAdjustTimeout (line 525) | func TestAdjustTimeout(t *testing.T) { function TestRetry (line 562) | func TestRetry(t *testing.T) { function TestRetryWithDifferentTimeout (line 623) | func TestRetryWithDifferentTimeout(t *testing.T) { function TestRetryWithResultRetry (line 683) | func TestRetryWithResultRetry(t *testing.T) { function TestFallbackForError (line 770) | func TestFallbackForError(t *testing.T) { function TestClientFinalizer (line 978) | func TestClientFinalizer(t *testing.T) { function TestPanicInMiddleware (line 1035) | func TestPanicInMiddleware(t *testing.T) { function TestMethodInfoIsNil (line 1080) | func TestMethodInfoIsNil(t *testing.T) { function mb (line 1090) | func mb(byteSize uint64) float32 { function Test_initTransportProtocol (line 1094) | func Test_initTransportProtocol(t *testing.T) { type mockTracerForInitMW (line 1131) | type mockTracerForInitMW struct function Test_kClient_initMiddlewares (line 1136) | func Test_kClient_initMiddlewares(t *testing.T) { function TestRewriteProtocol (line 1151) | func TestRewriteProtocol(t *testing.T) { function Test_initRPCInfoWithStreamClientCallOption (line 1266) | func Test_initRPCInfoWithStreamClientCallOption(t *testing.T) { function Test_WithStreamEventHandler (line 1290) | func Test_WithStreamEventHandler(t *testing.T) { function Test_WithStreamRecvTimeoutConfig (line 1316) | func Test_WithStreamRecvTimeoutConfig(t *testing.T) { FILE: client/context.go type ctxKeyType (line 25) | type ctxKeyType constant ctxCallOptionKey (line 28) | ctxCallOptionKey ctxKeyType = iota constant ctxCallOptionInfoKey (line 29) | ctxCallOptionInfoKey function NewCtxWithCallOptions (line 33) | func NewCtxWithCallOptions(ctx context.Context, opts []callopt.Option) c... function CallOptionsFromCtx (line 41) | func CallOptionsFromCtx(ctx context.Context) (res []callopt.Option) { function CallOptionInfoFromCtx (line 50) | func CallOptionInfoFromCtx(ctx context.Context) (res string) { FILE: client/context_middleware.go type ctxMWChainKey (line 25) | type ctxMWChainKey struct function WithContextMiddlewares (line 30) | func WithContextMiddlewares(ctx context.Context, mws ...endpoint.Middlew... function getContextMiddleware (line 42) | func getContextMiddleware(ctx context.Context) endpoint.Middleware { function contextMW (line 48) | func contextMW(next endpoint.Endpoint) endpoint.Endpoint { FILE: client/context_middleware_test.go function TestContextMiddlewares (line 30) | func TestContextMiddlewares(t *testing.T) { function TestCallWithContextMiddlewares (line 45) | func TestCallWithContextMiddlewares(t *testing.T) { FILE: client/context_test.go constant mockHostPort (line 28) | mockHostPort = "127.0.0.1:18888" constant mockCallOptsInfo (line 29) | mockCallOptsInfo = "mock call option info" function TestContextWithCallOptions (line 32) | func TestContextWithCallOptions(t *testing.T) { FILE: client/deprecated.go function WithFramedTransport (line 31) | func WithFramedTransport() Option { function WithConnMetric (line 41) | func WithConnMetric() Option { FILE: client/genericclient/client.go function NewClient (line 38) | func NewClient(destService string, g generic.Generic, opts ...client.Opt... function NewClientWithServiceInfo (line 44) | func NewClientWithServiceInfo(destService string, g generic.Generic, svc... type Client (line 69) | type Client interface type genericServiceClient (line 82) | type genericServiceClient struct method GenericCall (line 93) | func (gc *genericServiceClient) GenericCall(ctx context.Context, metho... method Close (line 123) | func (gc *genericServiceClient) Close() error { method ClientStreaming (line 131) | func (gc *genericServiceClient) ClientStreaming(ctx context.Context, m... method ServerStreaming (line 145) | func (gc *genericServiceClient) ServerStreaming(ctx context.Context, m... method BidirectionalStreaming (line 170) | func (gc *genericServiceClient) BidirectionalStreaming(ctx context.Con... type ClientStreamingClient (line 185) | type ClientStreamingClient interface type clientStreamingClient (line 202) | type clientStreamingClient struct method Send (line 216) | func (c *clientStreamingClient) Send(ctx context.Context, req interfac... method CloseAndRecv (line 223) | func (c *clientStreamingClient) CloseAndRecv(ctx context.Context) (int... method Header (line 234) | func (c *clientStreamingClient) Header() (streaming.Header, error) { method Trailer (line 238) | func (c *clientStreamingClient) Trailer() (streaming.Trailer, error) { method CloseSend (line 242) | func (c *clientStreamingClient) CloseSend(ctx context.Context) error { method Context (line 246) | func (c *clientStreamingClient) Context() context.Context { method Streaming (line 250) | func (c *clientStreamingClient) Streaming() streaming.ClientStream { function newClientStreamingClient (line 208) | func newClientStreamingClient(methodInfo serviceinfo.MethodInfo, method ... type ServerStreamingClient (line 255) | type ServerStreamingClient interface type serverStreamingClient (line 270) | type serverStreamingClient struct method Recv (line 284) | func (c *serverStreamingClient) Recv(ctx context.Context) (interface{}... method Header (line 292) | func (c *serverStreamingClient) Header() (streaming.Header, error) { method Trailer (line 296) | func (c *serverStreamingClient) Trailer() (streaming.Trailer, error) { method CloseSend (line 300) | func (c *serverStreamingClient) CloseSend(ctx context.Context) error { method Context (line 304) | func (c *serverStreamingClient) Context() context.Context { method Streaming (line 308) | func (c *serverStreamingClient) Streaming() streaming.ClientStream { function newServerStreamingClient (line 276) | func newServerStreamingClient(methodInfo serviceinfo.MethodInfo, method ... type BidiStreamingClient (line 313) | type BidiStreamingClient interface type bidiStreamingClient (line 330) | type bidiStreamingClient struct method Send (line 344) | func (c *bidiStreamingClient) Send(ctx context.Context, req interface{... method Recv (line 351) | func (c *bidiStreamingClient) Recv(ctx context.Context) (interface{}, ... method Header (line 359) | func (c *bidiStreamingClient) Header() (streaming.Header, error) { method Trailer (line 363) | func (c *bidiStreamingClient) Trailer() (streaming.Trailer, error) { method CloseSend (line 367) | func (c *bidiStreamingClient) CloseSend(ctx context.Context) error { method Context (line 371) | func (c *bidiStreamingClient) Context() context.Context { method Streaming (line 375) | func (c *bidiStreamingClient) Streaming() streaming.ClientStream { function newBidiStreamingClient (line 336) | func newBidiStreamingClient(methodInfo serviceinfo.MethodInfo, method st... FILE: client/genericclient/deprecated.go function StreamingServiceInfo (line 35) | func StreamingServiceInfo(g generic.Generic) *serviceinfo.ServiceInfo { type ClientStreaming (line 39) | type ClientStreaming interface type ServerStreaming (line 45) | type ServerStreaming interface type BidirectionalStreaming (line 50) | type BidirectionalStreaming interface function NewStreamingClient (line 57) | func NewStreamingClient(destService string, g generic.Generic, opts ...c... function NewStreamingClientWithServiceInfo (line 62) | func NewStreamingClientWithServiceInfo(destService string, g generic.Gen... type deprecatedClientStreamingClient (line 66) | type deprecatedClientStreamingClient struct method Send (line 89) | func (cs *deprecatedClientStreamingClient) Send(req interface{}) error { method CloseAndRecv (line 96) | func (cs *deprecatedClientStreamingClient) CloseAndRecv() (resp interf... function NewClientStreaming (line 72) | func NewClientStreaming(ctx context.Context, genericCli Client, method s... type deprecatedServerStreamingClient (line 107) | type deprecatedServerStreamingClient struct method Recv (line 140) | func (ss *deprecatedServerStreamingClient) Recv() (resp interface{}, e... function NewServerStreaming (line 112) | func NewServerStreaming(ctx context.Context, genericCli Client, method s... type deprecatedBidirectionalStreamingClient (line 148) | type deprecatedBidirectionalStreamingClient struct method Send (line 171) | func (bs *deprecatedBidirectionalStreamingClient) Send(req interface{}... method Recv (line 178) | func (bs *deprecatedBidirectionalStreamingClient) Recv() (resp interfa... function NewBidirectionalStreaming (line 154) | func NewBidirectionalStreaming(ctx context.Context, genericCli Client, m... function getStream (line 186) | func getStream(ctx context.Context, genericCli *genericServiceClient, me... FILE: client/middlewares.go constant maxRetry (line 41) | maxRetry = 6 function newProxyMW (line 43) | func newProxyMW(prx proxy.ForwardProxy) endpoint.Middleware { function discoveryEventHandler (line 61) | func discoveryEventHandler(name string, bus event.Bus, queue event.Queue... function newResolveMWBuilder (line 86) | func newResolveMWBuilder(lbf *lbcache.BalancerFactory) endpoint.Middlewa... function newIOErrorHandleMW (line 149) | func newIOErrorHandleMW(errHandle func(context.Context, error) error) en... function isRemoteErr (line 164) | func isRemoteErr(err error) bool { function DefaultClientErrorHandler (line 183) | func DefaultClientErrorHandler(ctx context.Context, err error) error { function ClientErrorHandlerWithAddr (line 193) | func ClientErrorHandlerWithAddr(ctx context.Context, err error) error { type instInfo (line 207) | type instInfo struct function wrapInstances (line 212) | func wrapInstances(insts []discovery.Instance) []*instInfo { function retryable (line 225) | func retryable(err error) bool { function getRemoteAddr (line 229) | func getRemoteAddr(ctx context.Context) string { FILE: client/middlewares_test.go function resolver404 (line 59) | func resolver404(ctrl *gomock.Controller) discovery.Resolver { function TestNoResolver (line 72) | func TestNoResolver(t *testing.T) { function TestResolverMW (line 81) | func TestResolverMW(t *testing.T) { function TestResolverMWErrGetConnection (line 105) | func TestResolverMWErrGetConnection(t *testing.T) { function TestResolverMWOutOfInstance (line 125) | func TestResolverMWOutOfInstance(t *testing.T) { function TestDefaultErrorHandler (line 157) | func TestDefaultErrorHandler(t *testing.T) { function TestNewProxyMW (line 206) | func TestNewProxyMW(t *testing.T) { function BenchmarkResolverMW (line 240) | func BenchmarkResolverMW(b *testing.B) { function BenchmarkResolverMWParallel (line 259) | func BenchmarkResolverMWParallel(b *testing.B) { function TestDiscoveryEventHandler (line 280) | func TestDiscoveryEventHandler(t *testing.T) { FILE: client/mocks_test.go type MockTStruct (line 21) | type MockTStruct struct FILE: client/option.go type Suite (line 69) | type Suite interface function WithTransportProtocol (line 74) | func WithTransportProtocol(tp transport.Protocol) Option { function WithSuite (line 86) | func WithSuite(suite Suite) Option { function WithMiddleware (line 102) | func WithMiddleware(mw endpoint.Middleware) Option { function WithMiddlewareBuilder (line 113) | func WithMiddlewareBuilder(mwb endpoint.MiddlewareBuilder) Option { function WithInstanceMW (line 121) | func WithInstanceMW(mw endpoint.Middleware) Option { function WithDestService (line 132) | func WithDestService(svr string) Option { function WithHostPorts (line 142) | func WithHostPorts(hostports ...string) Option { function WithResolver (line 181) | func WithResolver(r discovery.Resolver) Option { function WithHTTPResolver (line 190) | func WithHTTPResolver(r http.Resolver) Option { function WithShortConnection (line 199) | func WithShortConnection() Option { function WithLongConnection (line 208) | func WithLongConnection(cfg connpool.IdleConfig) Option { function WithMuxConnection (line 218) | func WithMuxConnection(connNum int) Option { function WithLogger (line 230) | func WithLogger(logger klog.FormatLogger) Option { function WithLoadBalancer (line 235) | func WithLoadBalancer(lb loadbalance.Loadbalancer, opts ...*lbcache.Opti... function WithRPCTimeout (line 249) | func WithRPCTimeout(d time.Duration) Option { function WithConnectTimeout (line 259) | func WithConnectTimeout(d time.Duration) Option { function WithTimeoutProvider (line 273) | func WithTimeoutProvider(p rpcinfo.TimeoutProvider) Option { function WithTag (line 281) | func WithTag(key, val string) Option { function WithTracer (line 291) | func WithTracer(c stats.Tracer) Option { function WithStatsLevel (line 303) | func WithStatsLevel(level stats.Level) Option { function WithCodec (line 312) | func WithCodec(c remote.Codec) Option { function WithPayloadCodec (line 321) | func WithPayloadCodec(c remote.PayloadCodec) Option { function WithConnReporterEnabled (line 330) | func WithConnReporterEnabled() Option { function WithFailureRetry (line 342) | func WithFailureRetry(p *retry.FailurePolicy) Option { function WithBackupRequest (line 363) | func WithBackupRequest(p *retry.BackupPolicy) Option { function WithMixedRetry (line 384) | func WithMixedRetry(p *retry.MixedPolicy) Option { function WithRetryMethodPolicies (line 406) | func WithRetryMethodPolicies(mp map[string]retry.Policy) Option { function WithSpecifiedResultRetry (line 431) | func WithSpecifiedResultRetry(rr *retry.ShouldResultRetry) Option { function WithFallback (line 453) | func WithFallback(fb *fallback.Policy) Option { function WithCircuitBreaker (line 464) | func WithCircuitBreaker(s *circuitbreak.CBSuite) Option { function WithGRPCConnPoolSize (line 474) | func WithGRPCConnPoolSize(s uint32) Option { function WithGRPCWriteBufferSize (line 489) | func WithGRPCWriteBufferSize(s uint32) Option { function WithGRPCReadBufferSize (line 502) | func WithGRPCReadBufferSize(s uint32) Option { function WithGRPCInitialWindowSize (line 512) | func WithGRPCInitialWindowSize(s uint32) Option { function WithGRPCInitialConnWindowSize (line 522) | func WithGRPCInitialConnWindowSize(s uint32) Option { function WithGRPCMaxHeaderListSize (line 532) | func WithGRPCMaxHeaderListSize(s uint32) Option { function WithGRPCKeepaliveParams (line 541) | func WithGRPCKeepaliveParams(kp grpc.ClientKeepalive) Option { function WithGRPCReuseWriteBuffer (line 566) | func WithGRPCReuseWriteBuffer(cfg grpc.ReuseWriteBufferConfig) Option { function WithWarmingUp (line 574) | func WithWarmingUp(wuo *warmup.ClientOption) Option { function WithXDSSuite (line 582) | func WithXDSSuite(suite xds.ClientSuite) Option { function WithContextBackup (line 596) | func WithContextBackup(backupHandler func(prev, cur context.Context) (ct... function TailOption (line 607) | func TailOption(opt Option) Option { FILE: client/option_advanced.go function WithHTTPConnection (line 44) | func WithHTTPConnection() Option { function WithClientBasicInfo (line 54) | func WithClientBasicInfo(ebi *rpcinfo.EndpointBasicInfo) Option { function WithDiagnosisService (line 64) | func WithDiagnosisService(ds diagnosis.Service) Option { function WithACLRules (line 74) | func WithACLRules(rules ...acl.RejectFunc) Option { function WithFirstMetaHandler (line 87) | func WithFirstMetaHandler(h remote.MetaHandler) Option { function WithMetaHandler (line 97) | func WithMetaHandler(h remote.MetaHandler) client.Option { function WithProxy (line 106) | func WithProxy(p proxy.ForwardProxy) Option { function WithTransHandlerFactory (line 118) | func WithTransHandlerFactory(f remote.ClientTransHandlerFactory) Option { function WithDialer (line 128) | func WithDialer(d remote.Dialer) Option { function WithConnPool (line 144) | func WithConnPool(pool remote.ConnPool) Option { function WithRetryContainer (line 157) | func WithRetryContainer(rc *retry.Container) Option { function WithGeneric (line 172) | func WithGeneric(g generic.Generic) Option { function WithCloseCallbacks (line 185) | func WithCloseCallbacks(callback func() error) Option { function WithErrorHandler (line 197) | func WithErrorHandler(f func(context.Context, error) error) Option { function WithBoundHandler (line 207) | func WithBoundHandler(h remote.BoundHandler) Option { function WithGRPCTLSConfig (line 238) | func WithGRPCTLSConfig(tlsConfig *tls.Config) Option { FILE: client/option_stream.go function WithStreamOptions (line 32) | func WithStreamOptions(opts ...StreamOption) Option { function WithStreamRecvTimeout (line 50) | func WithStreamRecvTimeout(d time.Duration) StreamOption { function WithStreamRecvTimeoutConfig (line 72) | func WithStreamRecvTimeoutConfig(cfg streaming.TimeoutConfig) StreamOpti... function WithStreamMiddleware (line 81) | func WithStreamMiddleware(mw cep.StreamMiddleware) StreamOption { function WithStreamMiddlewareBuilder (line 90) | func WithStreamMiddlewareBuilder(mwb cep.StreamMiddlewareBuilder) Stream... function WithStreamRecvMiddleware (line 99) | func WithStreamRecvMiddleware(mw cep.StreamRecvMiddleware) StreamOption { function WithStreamRecvMiddlewareBuilder (line 108) | func WithStreamRecvMiddlewareBuilder(mwb cep.StreamRecvMiddlewareBuilder... function WithStreamSendMiddleware (line 117) | func WithStreamSendMiddleware(mw cep.StreamSendMiddleware) StreamOption { function WithStreamSendMiddlewareBuilder (line 126) | func WithStreamSendMiddlewareBuilder(mwb cep.StreamSendMiddlewareBuilder... function WithStreamEventHandler (line 135) | func WithStreamEventHandler(hdl rpcinfo.ClientStreamEventHandler) Stream... FILE: client/option_test.go function TestRetryOptionDebugInfo (line 59) | func TestRetryOptionDebugInfo(t *testing.T) { function TestRetryOption (line 132) | func TestRetryOption(t *testing.T) { function TestTransportProtocolOption (line 148) | func TestTransportProtocolOption(t *testing.T) { function TestWithHostPorts (line 165) | func TestWithHostPorts(t *testing.T) { function TestForwardProxy (line 175) | func TestForwardProxy(t *testing.T) { function TestProxyWithResolver (line 224) | func TestProxyWithResolver(t *testing.T) { function TestProxyWithBalancer (line 264) | func TestProxyWithBalancer(t *testing.T) { function TestProxyWithResolverAndBalancer (line 314) | func TestProxyWithResolverAndBalancer(t *testing.T) { function TestProxyWithConnPool (line 361) | func TestProxyWithConnPool(t *testing.T) { type mockDiagnosis (line 428) | type mockDiagnosis struct method RegisterProbeFunc (line 432) | func (m *mockDiagnosis) RegisterProbeFunc(name diagnosis.ProbeName, pr... method ProbePairs (line 436) | func (m *mockDiagnosis) ProbePairs() map[diagnosis.ProbeName]diagnosis... function TestWithInstanceMW (line 440) | func TestWithInstanceMW(t *testing.T) { function TestWithHTTPResolver (line 445) | func TestWithHTTPResolver(t *testing.T) { function TestShortConnection (line 450) | func TestShortConnection(t *testing.T) { function TestWithMuxConnection (line 455) | func TestWithMuxConnection(t *testing.T) { function TestWithTimeoutProvider (line 463) | func TestWithTimeoutProvider(t *testing.T) { function TestWithStatsLevel (line 472) | func TestWithStatsLevel(t *testing.T) { function TestWithCodec (line 477) | func TestWithCodec(t *testing.T) { function TestWithPayloadCodec (line 486) | func TestWithPayloadCodec(t *testing.T) { function TestWithConnReporterEnabled (line 495) | func TestWithConnReporterEnabled(t *testing.T) { function TestWithCircuitBreaker (line 500) | func TestWithCircuitBreaker(t *testing.T) { constant mockUint32Size (line 507) | mockUint32Size uint32 = 0 function TestWithGRPCConnPoolSize (line 509) | func TestWithGRPCConnPoolSize(t *testing.T) { function TestWithGRPCInitialWindowSize (line 514) | func TestWithGRPCInitialWindowSize(t *testing.T) { function TestWithGRPCInitialConnWindowSize (line 519) | func TestWithGRPCInitialConnWindowSize(t *testing.T) { function TestWithGRPCMaxHeaderListSize (line 525) | func TestWithGRPCMaxHeaderListSize(t *testing.T) { function TestWithGRPCKeepaliveParams (line 533) | func TestWithGRPCKeepaliveParams(t *testing.T) { function TestWithHTTPConnection (line 549) | func TestWithHTTPConnection(t *testing.T) { function TestWithClientBasicInfo (line 554) | func TestWithClientBasicInfo(t *testing.T) { function TestWithDiagnosisService (line 560) | func TestWithDiagnosisService(t *testing.T) { function mockACLRule (line 570) | func mockACLRule(ctx context.Context, request interface{}) (reason error) { function TestWithACLRules (line 574) | func TestWithACLRules(t *testing.T) { function TestWithFirstMetaHandler (line 579) | func TestWithFirstMetaHandler(t *testing.T) { function TestWithMetaHandler (line 585) | func TestWithMetaHandler(t *testing.T) { function TestWithConnPool (line 591) | func TestWithConnPool(t *testing.T) { function TestWithRetryContainer (line 600) | func TestWithRetryContainer(t *testing.T) { function TestWithGeneric (line 606) | func TestWithGeneric(t *testing.T) { function TestWithCloseCallbacks (line 612) | func TestWithCloseCallbacks(t *testing.T) { function TestWithErrorHandler (line 617) | func TestWithErrorHandler(t *testing.T) { function TestWithBoundHandler (line 623) | func TestWithBoundHandler(t *testing.T) { type mockSuite (line 665) | type mockSuite struct method Options (line 673) | func (m *mockSuite) Options() []Option { function TestWithSuite (line 681) | func TestWithSuite(t *testing.T) { function TestWithLongConnectionOption (line 692) | func TestWithLongConnectionOption(t *testing.T) { function TestWithWarmingUpOption (line 703) | func TestWithWarmingUpOption(t *testing.T) { function TestWithFramedTransport (line 711) | func TestWithFramedTransport(t *testing.T) { function TestWithConnMetric (line 719) | func TestWithConnMetric(t *testing.T) { function TestWithXDSSuite (line 727) | func TestWithXDSSuite(t *testing.T) { function TestWithGRPCTLSConfig (line 752) | func TestWithGRPCTLSConfig(t *testing.T) { function TestWithGRPCReuseWriteBuffer (line 758) | func TestWithGRPCReuseWriteBuffer(t *testing.T) { function TestTailOption (line 769) | func TestTailOption(t *testing.T) { function checkOneOptionDebugInfo (line 784) | func checkOneOptionDebugInfo(t *testing.T, opt Option, expectStr string)... FILE: client/option_ttstream.go function WithTTHeaderStreamingOptions (line 28) | func WithTTHeaderStreamingOptions(opts ...TTHeaderStreamingOption) Option { function WithTTHeaderStreamingTransportOptions (line 41) | func WithTTHeaderStreamingTransportOptions(opt ...ttstream.ClientHandler... FILE: client/option_unary.go function WithUnaryOptions (line 30) | func WithUnaryOptions(opts ...UnaryOption) Option { function WithUnaryRPCTimeout (line 43) | func WithUnaryRPCTimeout(d time.Duration) UnaryOption { function WithUnaryMiddleware (line 52) | func WithUnaryMiddleware(mw endpoint.UnaryMiddleware) UnaryOption { function WithUnaryMiddlewareBuilder (line 61) | func WithUnaryMiddlewareBuilder(mwb endpoint.UnaryMiddlewareBuilder) Una... FILE: client/rpctimeout.go function makeTimeoutErr (line 36) | func makeTimeoutErr(ctx context.Context, start time.Time, timeout time.D... function isBusinessTimeout (line 76) | func isBusinessTimeout(start time.Time, kitexTimeout time.Duration, actu... function rpcTimeoutMW (line 84) | func rpcTimeoutMW(mwCtx context.Context) endpoint.UnaryMiddleware { FILE: client/rpctimeout_pool.go type timeoutPool (line 33) | type timeoutPool struct method Size (line 57) | func (p *timeoutPool) Size() int32 { method createTicker (line 61) | func (p *timeoutPool) createTicker() { method createWorker (line 97) | func (p *timeoutPool) createWorker(t *timeoutTask) bool { method RunTask (line 137) | func (p *timeoutPool) RunTask(ctx context.Context, timeout time.Duration, function newTimeoutPool (line 48) | func newTimeoutPool(maxIdle int, maxIdleTime time.Duration) *timeoutPool { type timeoutTask (line 161) | type timeoutTask struct method recycle (line 188) | func (t *timeoutTask) recycle() { method Cancel (line 199) | func (t *timeoutTask) Cancel(err error) { method Run (line 204) | func (t *timeoutTask) Run() { method Wait (line 232) | func (t *timeoutTask) Wait() (context.Context, error) { method waitNoTimeout (line 261) | func (t *timeoutTask) waitNoTimeout() (context.Context, error) { function newTimeoutTask (line 172) | func newTimeoutTask(ctx context.Context, timeout time.Duration, type timeoutContext (line 276) | type timeoutContext struct method Deadline (line 302) | func (p *timeoutContext) Deadline() (deadline time.Time, ok bool) { method Done (line 306) | func (p *timeoutContext) Done() <-chan struct{} { method Err (line 310) | func (p *timeoutContext) Err() error { method Cancel (line 320) | func (p *timeoutContext) Cancel(err error) { function newTimeoutContext (line 286) | func newTimeoutContext(ctx context.Context, timeout time.Duration) *time... FILE: client/rpctimeout_pool_test.go function TestTimeoutPool (line 32) | func TestTimeoutPool(t *testing.T) { function noop (line 62) | func noop(ctx context.Context, req, resp interface{}) error { return nil } function BenchmarkTimeoutPool (line 64) | func BenchmarkTimeoutPool(b *testing.B) { function TestTask (line 78) | func TestTask(t *testing.T) { FILE: client/rpctimeout_test.go function block (line 35) | func block(ctx context.Context, request, response interface{}) (err erro... function pass (line 40) | func pass(ctx context.Context, request, response interface{}) (err error) { function panicEp (line 45) | func panicEp(ctx context.Context, request, response interface{}) (err er... function TestNewRPCTimeoutMW (line 49) | func TestNewRPCTimeoutMW(t *testing.T) { function TestIsBusinessTimeout (line 117) | func TestIsBusinessTimeout(t *testing.T) { function TestRpcTimeoutMWTimeoutByBusiness (line 160) | func TestRpcTimeoutMWTimeoutByBusiness(t *testing.T) { function TestRpcTimeoutMWCancelByBusiness (line 210) | func TestRpcTimeoutMWCancelByBusiness(t *testing.T) { function mockRPCInfo (line 245) | func mockRPCInfo(timeout time.Duration) rpcinfo.RPCInfo { function Test_isBusinessTimeout (line 253) | func Test_isBusinessTimeout(t *testing.T) { function BenchmarkRPCTimeoutMW (line 317) | func BenchmarkRPCTimeoutMW(b *testing.B) { FILE: client/service_inline.go type ContextServiceInlineHandler (line 37) | type ContextServiceInlineHandler interface type serviceInlineClient (line 42) | type serviceInlineClient struct method SetContextServiceInlineHandler (line 77) | func (kc *serviceInlineClient) SetContextServiceInlineHandler(simh Con... method init (line 81) | func (kc *serviceInlineClient) init() (err error) { method checkOptions (line 95) | func (kc *serviceInlineClient) checkOptions() (err error) { method initContext (line 102) | func (kc *serviceInlineClient) initContext() context.Context { method initMiddlewares (line 109) | func (kc *serviceInlineClient) initMiddlewares(ctx context.Context) { method initRPCInfo (line 116) | func (kc *serviceInlineClient) initRPCInfo(ctx context.Context, method... method Call (line 121) | func (kc *serviceInlineClient) Call(ctx context.Context, method string... method richRemoteOption (line 153) | func (kc *serviceInlineClient) richRemoteOption() { method buildInvokeChain (line 157) | func (kc *serviceInlineClient) buildInvokeChain() error { method invokeHandleEndpoint (line 166) | func (kc *serviceInlineClient) invokeHandleEndpoint() (endpoint.Endpoi... method Close (line 194) | func (kc *serviceInlineClient) Close() error { type ServerInitialInfo (line 57) | type ServerInitialInfo interface function NewServiceInlineClient (line 62) | func NewServiceInlineClient(svcInfo *serviceinfo.ServiceInfo, s ServerIn... FILE: client/service_inline_test.go type serverInitialInfoImpl (line 40) | type serverInitialInfoImpl struct method BuildServiceInlineInvokeChain (line 44) | func (s serverInitialInfoImpl) BuildServiceInlineInvokeChain() endpoin... function newMockServerInitialInfo (line 53) | func newMockServerInitialInfo() ServerInitialInfo { function newMockServiceInlineClient (line 57) | func newMockServiceInlineClient(tb testing.TB, ctrl *gomock.Controller, ... function TestServiceInlineCall (line 73) | func TestServiceInlineCall(t *testing.T) { function TestServiceInlineTagOptions (line 87) | func TestServiceInlineTagOptions(t *testing.T) { function TestServiceInlineTagOptionLocks0 (line 146) | func TestServiceInlineTagOptionLocks0(t *testing.T) { function TestServiceInlineTagOptionLocks1 (line 178) | func TestServiceInlineTagOptionLocks1(t *testing.T) { function TestServiceInlineTagOptionLocks2 (line 210) | func TestServiceInlineTagOptionLocks2(t *testing.T) { function TestServiceInlineTimeoutOptions (line 244) | func TestServiceInlineTimeoutOptions(t *testing.T) { function TestServiceInlineClientFinalizer (line 283) | func TestServiceInlineClientFinalizer(t *testing.T) { FILE: client/stream.go type Streaming (line 44) | type Streaming interface method Stream (line 52) | func (kc *kClient) Stream(ctx context.Context, method string, request, r... method StreamX (line 116) | func (kc *kClient) StreamX(ctx context.Context, method string) (streamin... method invokeStreamingEndpoint (line 163) | func (kc *kClient) invokeStreamingEndpoint() (endpoint.Endpoint, error) { constant recvTimeoutErrTpl (line 201) | recvTimeoutErrTpl = "stream Recv timeout, timeout config=%+v" type stream (line 204) | type stream struct method Header (line 256) | func (s *stream) Header() (hd streaming.Header, err error) { method RecvMsg (line 265) | func (s *stream) RecvMsg(ctx context.Context, m interface{}) (err erro... method handleStreamRecvEvent (line 289) | func (s *stream) handleStreamRecvEvent(err error) { method recvWithTimeout (line 295) | func (s *stream) recvWithTimeout(ctx context.Context, m interface{}) e... method cancel (line 307) | func (s *stream) cancel(err error) { method SendMsg (line 316) | func (s *stream) SendMsg(ctx context.Context, m interface{}) (err erro... method handleStreamSendEvent (line 332) | func (s *stream) handleStreamSendEvent(err error) { method DoFinish (line 340) | func (s *stream) DoFinish(err error) { method GetGRPCStream (line 355) | func (s *stream) GetGRPCStream() streaming.Stream { function newStream (line 227) | func newStream(ctx context.Context, s streaming.ClientStream, scm *remot... function newGRPCStream (line 362) | func newGRPCStream(st streaming.Stream, sendEP endpoint.SendEndpoint, re... type grpcStream (line 373) | type grpcStream struct method Header (line 385) | func (s *grpcStream) Header() (md metadata.MD, err error) { method RecvMsg (line 392) | func (s *grpcStream) RecvMsg(m interface{}) (err error) { method recvWithTimeout (line 406) | func (s *grpcStream) recvWithTimeout(m interface{}) error { method SendMsg (line 419) | func (s *grpcStream) SendMsg(m interface{}) (err error) { method DoFinish (line 428) | func (s *grpcStream) DoFinish(err error) { function callWithTimeout (line 432) | func callWithTimeout(tmCfg streaming.TimeoutConfig, call func() error, c... function isRPCError (line 460) | func isRPCError(err error) bool { FILE: client/stream_test.go function newOpts (line 56) | func newOpts(ctrl *gomock.Controller) []Option { function TestStream (line 65) | func TestStream(t *testing.T) { function TestStreamNoMethod (line 93) | func TestStreamNoMethod(t *testing.T) { function TestStreaming (line 109) | func TestStreaming(t *testing.T) { function TestUninitClient (line 176) | func TestUninitClient(t *testing.T) { function TestClosedClient (line 194) | func TestClosedClient(t *testing.T) { type mockStream (line 214) | type mockStream struct method Context (line 224) | func (s *mockStream) Context() context.Context { method Header (line 228) | func (s *mockStream) Header() (streaming.Header, error) { method RecvMsg (line 232) | func (s *mockStream) RecvMsg(ctx context.Context, msg any) error { method SendMsg (line 236) | func (s *mockStream) SendMsg(ctx context.Context, msg any) error { method CloseSend (line 240) | func (s *mockStream) CloseSend(ctx context.Context) error { method CancelWithErr (line 244) | func (s *mockStream) CancelWithErr(err error) { method Close (line 248) | func (s *mockStream) Close() error { function Test_newStream (line 255) | func Test_newStream(t *testing.T) { type mockTracer (line 299) | type mockTracer struct method Start (line 305) | func (m *mockTracer) Start(ctx context.Context) context.Context { method Finish (line 309) | func (m *mockTracer) Finish(ctx context.Context) { function Test_stream_Header (line 313) | func Test_stream_Header(t *testing.T) { function Test_stream_RecvMsg (line 369) | func Test_stream_RecvMsg(t *testing.T) { function Test_stream_SendMsg (line 466) | func Test_stream_SendMsg(t *testing.T) { function Test_stream_Close (line 530) | func Test_stream_Close(t *testing.T) { function Test_stream_DoFinish (line 550) | func Test_stream_DoFinish(t *testing.T) { function Test_isRPCError (line 676) | func Test_isRPCError(t *testing.T) { function TestContextFallback (line 691) | func TestContextFallback(t *testing.T) { function createErrorMiddleware (line 740) | func createErrorMiddleware(injectErr error) cep.StreamMiddleware { function TestStreamDoFinish (line 749) | func TestStreamDoFinish(t *testing.T) { function TestStreamXDoFinish (line 792) | func TestStreamXDoFinish(t *testing.T) { function TestRecvTimeout (line 834) | func TestRecvTimeout(t *testing.T) { type mockGRPCStreamWrapper (line 1074) | type mockGRPCStreamWrapper struct method GetGRPCStream (line 1079) | func (s *mockGRPCStreamWrapper) GetGRPCStream() streaming.Stream { type mockGRPCInnerStream (line 1084) | type mockGRPCInnerStream struct method Context (line 1089) | func (s *mockGRPCInnerStream) Context() context.Context { method SetHeader (line 1096) | func (s *mockGRPCInnerStream) SetHeader(md metadata.MD) error { method SendHeader (line 1100) | func (s *mockGRPCInnerStream) SendHeader(md metadata.MD) error { method SetTrailer (line 1104) | func (s *mockGRPCInnerStream) SetTrailer(md metadata.MD) { method Header (line 1107) | func (s *mockGRPCInnerStream) Header() (metadata.MD, error) { method Trailer (line 1111) | func (s *mockGRPCInnerStream) Trailer() metadata.MD { method RecvMsg (line 1115) | func (s *mockGRPCInnerStream) RecvMsg(m interface{}) error { method SendMsg (line 1122) | func (s *mockGRPCInnerStream) SendMsg(m interface{}) error { method Close (line 1126) | func (s *mockGRPCInnerStream) Close() error { FILE: client/streamclient/client_option.go function WithSuite (line 41) | func WithSuite(suite client.Suite) Option { function WithMiddleware (line 46) | func WithMiddleware(mw endpoint.Middleware) Option { function WithMiddlewareBuilder (line 51) | func WithMiddlewareBuilder(mwb endpoint.MiddlewareBuilder) Option { function WithInstanceMW (line 56) | func WithInstanceMW(mw endpoint.Middleware) Option { function WithDestService (line 61) | func WithDestService(svr string) Option { function WithHostPorts (line 66) | func WithHostPorts(hostPorts ...string) Option { function WithResolver (line 71) | func WithResolver(r discovery.Resolver) Option { function WithHTTPResolver (line 76) | func WithHTTPResolver(r http.Resolver) Option { function WithLoadBalancer (line 81) | func WithLoadBalancer(lb loadbalance.Loadbalancer, opts ...*lbcache.Opti... function WithConnectTimeout (line 86) | func WithConnectTimeout(d time.Duration) Option { function WithTag (line 91) | func WithTag(key, val string) Option { function WithTracer (line 96) | func WithTracer(c stats.Tracer) Option { function WithStatsLevel (line 101) | func WithStatsLevel(level stats.Level) Option { function WithPayloadCodec (line 106) | func WithPayloadCodec(c remote.PayloadCodec) Option { function WithConnReporterEnabled (line 111) | func WithConnReporterEnabled() Option { function WithWarmingUp (line 116) | func WithWarmingUp(wuo *warmup.ClientOption) Option { function WithXDSSuite (line 121) | func WithXDSSuite(suite xds.ClientSuite) Option { function WithContextBackup (line 126) | func WithContextBackup(backupHandler func(prev, cur context.Context) (ct... FILE: client/streamclient/client_option_advanced.go function WithClientBasicInfo (line 31) | func WithClientBasicInfo(ebi *rpcinfo.EndpointBasicInfo) Option { function WithDiagnosisService (line 36) | func WithDiagnosisService(ds diagnosis.Service) Option { function WithACLRules (line 41) | func WithACLRules(rules ...acl.RejectFunc) Option { function WithFirstMetaHandler (line 46) | func WithFirstMetaHandler(h remote.MetaHandler) Option { function WithMetaHandler (line 51) | func WithMetaHandler(h remote.MetaHandler) Option { function WithProxy (line 56) | func WithProxy(p proxy.ForwardProxy) Option { function WithDialer (line 61) | func WithDialer(d remote.Dialer) Option { function WithCloseCallbacks (line 66) | func WithCloseCallbacks(callback func() error) Option { function WithErrorHandler (line 71) | func WithErrorHandler(f func(context.Context, error) error) Option { FILE: client/streamclient/definition.go type Option (line 24) | type Option struct method GetClientOption (line 30) | func (o *Option) GetClientOption() client.Option { function ConvertOptionFrom (line 39) | func ConvertOptionFrom(opt client.Option) Option { function GetClientOptions (line 44) | func GetClientOptions(ops []Option) []client.Option { FILE: client/streamclient/grpc_option.go function WithGRPCConnPoolSize (line 27) | func WithGRPCConnPoolSize(s uint32) Option { function WithGRPCWriteBufferSize (line 32) | func WithGRPCWriteBufferSize(s uint32) Option { function WithGRPCReadBufferSize (line 37) | func WithGRPCReadBufferSize(s uint32) Option { function WithGRPCInitialWindowSize (line 42) | func WithGRPCInitialWindowSize(s uint32) Option { function WithGRPCInitialConnWindowSize (line 47) | func WithGRPCInitialConnWindowSize(s uint32) Option { function WithGRPCMaxHeaderListSize (line 52) | func WithGRPCMaxHeaderListSize(s uint32) Option { function WithGRPCKeepaliveParams (line 57) | func WithGRPCKeepaliveParams(kp grpc.ClientKeepalive) Option { function WithGRPCTLSConfig (line 62) | func WithGRPCTLSConfig(tlsConfig *tls.Config) Option { FILE: client/streamclient/option.go function WithRecvMiddleware (line 29) | func WithRecvMiddleware(mw endpoint.RecvMiddleware) Option { function WithRecvMiddlewareBuilder (line 40) | func WithRecvMiddlewareBuilder(mwb endpoint.RecvMiddlewareBuilder) Option { function WithSendMiddleware (line 48) | func WithSendMiddleware(mw endpoint.SendMiddleware) Option { function WithSendMiddlewareBuilder (line 59) | func WithSendMiddlewareBuilder(mwb endpoint.SendMiddlewareBuilder) Option { FILE: internal/client/lock.go type ConfigLocks (line 25) | type ConfigLocks struct method ApplyLocks (line 38) | func (cl *ConfigLocks) ApplyLocks(cfg rpcinfo.MutableRPCConfig, svr re... method Merge (line 50) | func (cl *ConfigLocks) Merge(c2 *ConfigLocks) { method Zero (line 58) | func (cl *ConfigLocks) Zero() { function NewConfigLocks (line 31) | func NewConfigLocks() *ConfigLocks { FILE: internal/client/option.go function init (line 59) | func init() { type UnaryOption (line 64) | type UnaryOption struct type UnaryOptions (line 68) | type UnaryOptions struct method InitMiddlewares (line 84) | func (o *UnaryOptions) InitMiddlewares(ctx context.Context) { method SetUnaryRPCTimeout (line 94) | func (o *UnaryOptions) SetUnaryRPCTimeout(d time.Duration) { type StreamOption (line 99) | type StreamOption struct type StreamOptions (line 103) | type StreamOptions struct method InitMiddlewares (line 115) | func (o *StreamOptions) InitMiddlewares(ctx context.Context) { method BuildRecvChain (line 139) | func (o *StreamOptions) BuildRecvChain(recvEndpoint cep.StreamRecvEndp... method BuildSendChain (line 143) | func (o *StreamOptions) BuildSendChain(sendEndpoint cep.StreamSendEndp... type Options (line 148) | type Options struct method Apply (line 214) | func (o *Options) Apply(opts []Option) { method initTraceController (line 272) | func (o *Options) initTraceController() { method initRemoteOpt (line 278) | func (o *Options) initRemoteOpt() { method InitRetryContainer (line 331) | func (o *Options) InitRetryContainer() { type Option (line 225) | type Option struct function NewOptions (line 230) | func NewOptions(opts []Option) *Options { FILE: internal/client/option_ttstream.go type TTHeaderStreamingOption (line 24) | type TTHeaderStreamingOption struct type TTHeaderStreamingOptions (line 28) | type TTHeaderStreamingOptions struct FILE: internal/client/remote_option.go function newClientRemoteOption (line 29) | func newClientRemoteOption() *remote.ClientOption { FILE: internal/client/remote_option_windows.go function newClientRemoteOption (line 29) | func newClientRemoteOption() *remote.ClientOption { FILE: internal/configutil/config.go type Config (line 22) | type Config interface type Container (line 27) | type Container interface type DefaultConfig (line 33) | type DefaultConfig interface type RichTypeConfig (line 38) | type RichTypeConfig interface type RichTypeDefaultConfig (line 48) | type RichTypeDefaultConfig interface type dummyConfig (line 58) | type dummyConfig struct method Get (line 60) | func (dc *dummyConfig) Get(key string) (val interface{}, ok bool) { re... function NewDummyConfig (line 63) | func NewDummyConfig() Config { type configs (line 68) | type configs struct method Get (line 77) | func (cc *configs) Get(key string) (val interface{}, ok bool) { method AddPriorSource (line 87) | func (cc *configs) AddPriorSource(src Config) error { function NewConfigContainer (line 73) | func NewConfigContainer() Container { type defaultConfig (line 93) | type defaultConfig struct method Get (line 102) | func (dc *defaultConfig) Get(key string, def interface{}) interface{} { function NewDefaultConfig (line 98) | func NewDefaultConfig(c Config) DefaultConfig { type richTypeConfig (line 110) | type richTypeConfig struct method GetBool (line 119) | func (rd *richTypeConfig) GetBool(key string) (val, ok bool) { method GetInt (line 124) | func (rd *richTypeConfig) GetInt(key string) (val int, ok bool) { method GetString (line 129) | func (rd *richTypeConfig) GetString(key string) (val string, ok bool) { method GetInt64 (line 134) | func (rd *richTypeConfig) GetInt64(key string) (val int64, ok bool) { method GetFloat (line 144) | func (rd *richTypeConfig) GetFloat(key string) (val float64, ok bool) { method GetDuration (line 149) | func (rd *richTypeConfig) GetDuration(key string) (val time.Duration, ... function NewRichTypeConfig (line 115) | func NewRichTypeConfig(c Config) RichTypeConfig { type richTypeDefaultConfig (line 155) | type richTypeDefaultConfig struct method GetBool (line 164) | func (rd *richTypeDefaultConfig) GetBool(key string, def bool) bool { method GetInt (line 171) | func (rd *richTypeDefaultConfig) GetInt(key string, def int) int { method GetString (line 178) | func (rd *richTypeDefaultConfig) GetString(key, def string) string { method GetInt64 (line 185) | func (rd *richTypeDefaultConfig) GetInt64(key string, def int64) int64 { method GetFloat (line 192) | func (rd *richTypeDefaultConfig) GetFloat(key string, def float64) flo... method GetDuration (line 199) | func (rd *richTypeDefaultConfig) GetDuration(key string, def time.Dura... function NewRichTypeDefaultConfig (line 160) | func NewRichTypeDefaultConfig(rtc RichTypeConfig) RichTypeDefaultConfig { FILE: internal/configutil/config_test.go type mockConfig (line 26) | type mockConfig struct method Get (line 30) | func (c *mockConfig) Get(key string) (interface{}, bool) { function TestConfigs_Get (line 35) | func TestConfigs_Get(t *testing.T) { function TestConfigs_AddPriorSource (line 99) | func TestConfigs_AddPriorSource(t *testing.T) { function TestDefaultConfig_Get (line 125) | func TestDefaultConfig_Get(t *testing.T) { function TestDummyConfig_Get (line 147) | func TestDummyConfig_Get(t *testing.T) { function TestRichTypeConfig_GetBool (line 155) | func TestRichTypeConfig_GetBool(t *testing.T) { function TestRichTypeConfig_GetDuration (line 193) | func TestRichTypeConfig_GetDuration(t *testing.T) { function TestRichTypeConfig_GetFloat (line 231) | func TestRichTypeConfig_GetFloat(t *testing.T) { function TestRichTypeConfig_GetInt (line 269) | func TestRichTypeConfig_GetInt(t *testing.T) { function TestRichTypeConfig_GetInt64 (line 307) | func TestRichTypeConfig_GetInt64(t *testing.T) { function TestRichTypeConfig_GetString (line 345) | func TestRichTypeConfig_GetString(t *testing.T) { function TestRichTypeDefaultConfig_GetBool (line 383) | func TestRichTypeDefaultConfig_GetBool(t *testing.T) { function TestRichTypeDefaultConfig_GetDuration (line 424) | func TestRichTypeDefaultConfig_GetDuration(t *testing.T) { function TestRichTypeDefaultConfig_GetFloat (line 465) | func TestRichTypeDefaultConfig_GetFloat(t *testing.T) { function TestRichTypeDefaultConfig_GetInt (line 506) | func TestRichTypeDefaultConfig_GetInt(t *testing.T) { function TestRichTypeDefaultConfig_GetInt64 (line 547) | func TestRichTypeDefaultConfig_GetInt64(t *testing.T) { function TestRichTypeDefaultConfig_GetString (line 588) | func TestRichTypeDefaultConfig_GetString(t *testing.T) { FILE: internal/configutil/once.go type OptionOnce (line 26) | type OptionOnce struct method OnceOrPanic (line 38) | func (o *OptionOnce) OnceOrPanic() { function NewOptionOnce (line 31) | func NewOptionOnce() *OptionOnce { FILE: internal/configutil/once_test.go function TestOnceOrPanic (line 25) | func TestOnceOrPanic(t *testing.T) { FILE: internal/generic/context.go type genericStreamingKey (line 25) | type genericStreamingKey struct function WithGenericStreamingMode (line 30) | func WithGenericStreamingMode(ctx context.Context, sm serviceinfo.Stream... function GetGenericStreamingMode (line 35) | func GetGenericStreamingMode(ctx context.Context) serviceinfo.StreamingM... FILE: internal/generic/generic_service.go constant BinaryThriftGenericV1PayloadCodecKey (line 33) | BinaryThriftGenericV1PayloadCodecKey = "binary_thrift_generic_v1_payload... constant GetMethodNameByRequestFuncKey (line 35) | GetMethodNameByRequestFuncKey = "get_method_name_by_request_func" constant IsBinaryGeneric (line 37) | IsBinaryGeneric = "is_binary_generic" type Args (line 41) | type Args struct method SetCodec (line 53) | func (g *Args) SetCodec(inner interface{}) { method GetOrSetBase (line 57) | func (g *Args) GetOrSetBase() interface{} { method Write (line 65) | func (g *Args) Write(ctx context.Context, method string, out bufiox.Wr... method WritePb (line 75) | func (g *Args) WritePb(ctx context.Context, method string) (interface{... method Read (line 86) | func (g *Args) Read(ctx context.Context, method string, dataLen int, i... method ReadPb (line 99) | func (g *Args) ReadPb(ctx context.Context, method string, in []byte) e... method GetFirstArgument (line 113) | func (g *Args) GetFirstArgument() interface{} { type Result (line 118) | type Result struct method SetCodec (line 129) | func (r *Result) SetCodec(inner interface{}) { method Write (line 134) | func (r *Result) Write(ctx context.Context, method string, out bufiox.... method WritePb (line 144) | func (r *Result) WritePb(ctx context.Context, method string) (interfac... method Read (line 155) | func (r *Result) Read(ctx context.Context, method string, dataLen int,... method ReadPb (line 167) | func (r *Result) ReadPb(ctx context.Context, method string, in []byte)... method GetSuccess (line 180) | func (r *Result) GetSuccess() interface{} { method SetSuccess (line 188) | func (r *Result) SetSuccess(x interface{}) { method IsSetSuccess (line 193) | func (r *Result) IsSetSuccess() bool { method GetResult (line 198) | func (r *Result) GetResult() interface{} { type ThriftWriter (line 202) | type ThriftWriter interface type ThriftReader (line 206) | type ThriftReader interface FILE: internal/generic/proto/type.go type Message (line 30) | type Message interface function NewMessage (line 37) | func NewMessage(descriptor MessageDescriptor) Message { FILE: internal/generic/utils.go function BinaryGenericSupportsMultiService (line 24) | func BinaryGenericSupportsMultiService(svcInfo *serviceinfo.ServiceInfo)... FILE: internal/generic/utils_test.go function TestBinaryGenericSupportsMultiService (line 26) | func TestBinaryGenericSupportsMultiService(t *testing.T) { FILE: internal/mocks/bufiox/bufreader.go type MockReader (line 30) | type MockReader struct method EXPECT (line 48) | func (m *MockReader) EXPECT() *MockReaderMockRecorder { method Next (line 53) | func (m *MockReader) Next(n int) ([]byte, error) { method Peek (line 68) | func (m *MockReader) Peek(n int) ([]byte, error) { method ReadBinary (line 83) | func (m *MockReader) ReadBinary(bs []byte) (int, error) { method ReadLen (line 98) | func (m *MockReader) ReadLen() int { method Release (line 112) | func (m *MockReader) Release(e error) error { method Skip (line 126) | func (m *MockReader) Skip(n int) error { type MockReaderMockRecorder (line 36) | type MockReaderMockRecorder struct method Next (line 62) | func (mr *MockReaderMockRecorder) Next(n interface{}) *gomock.Call { method Peek (line 77) | func (mr *MockReaderMockRecorder) Peek(n interface{}) *gomock.Call { method ReadBinary (line 92) | func (mr *MockReaderMockRecorder) ReadBinary(bs interface{}) *gomock.C... method ReadLen (line 106) | func (mr *MockReaderMockRecorder) ReadLen() *gomock.Call { method Release (line 120) | func (mr *MockReaderMockRecorder) Release(e interface{}) *gomock.Call { method Skip (line 134) | func (mr *MockReaderMockRecorder) Skip(n interface{}) *gomock.Call { function NewMockReader (line 41) | func NewMockReader(ctrl *gomock.Controller) *MockReader { FILE: internal/mocks/conn.go type Conn (line 30) | type Conn struct method Read (line 42) | func (m Conn) Read(b []byte) (n int, err error) { method Write (line 50) | func (m Conn) Write(b []byte) (n int, err error) { method Close (line 58) | func (m Conn) Close() (e error) { method LocalAddr (line 66) | func (m Conn) LocalAddr() (r net.Addr) { method RemoteAddr (line 74) | func (m Conn) RemoteAddr() (r net.Addr) { method SetDeadline (line 82) | func (m Conn) SetDeadline(t time.Time) (e error) { method SetReadDeadline (line 90) | func (m Conn) SetReadDeadline(t time.Time) (e error) { method SetWriteDeadline (line 98) | func (m Conn) SetWriteDeadline(t time.Time) (e error) { function NewIOConn (line 105) | func NewIOConn() *Conn { type MockConnWithBufioxReader (line 117) | type MockConnWithBufioxReader struct method Reader (line 122) | func (c *MockConnWithBufioxReader) Reader() bufiox.Reader { FILE: internal/mocks/diagnosis/service.go type MockService (line 32) | type MockService struct method EXPECT (line 50) | func (m *MockService) EXPECT() *MockServiceMockRecorder { method RegisterProbeFunc (line 55) | func (m *MockService) RegisterProbeFunc(arg0 diagnosis.ProbeName, arg1... type MockServiceMockRecorder (line 38) | type MockServiceMockRecorder struct method RegisterProbeFunc (line 61) | func (mr *MockServiceMockRecorder) RegisterProbeFunc(arg0, arg1 interf... function NewMockService (line 43) | func NewMockService(ctrl *gomock.Controller) *MockService { FILE: internal/mocks/discovery/discovery.go type MockResolver (line 35) | type MockResolver struct method EXPECT (line 53) | func (m *MockResolver) EXPECT() *MockResolverMockRecorder { method Diff (line 58) | func (m *MockResolver) Diff(cacheKey string, prev, next discovery.Resu... method Name (line 73) | func (m *MockResolver) Name() string { method Resolve (line 87) | func (m *MockResolver) Resolve(ctx context.Context, desc string) (disc... method Target (line 102) | func (m *MockResolver) Target(ctx context.Context, target rpcinfo.Endp... type MockResolverMockRecorder (line 41) | type MockResolverMockRecorder struct method Diff (line 67) | func (mr *MockResolverMockRecorder) Diff(cacheKey, prev, next interfac... method Name (line 81) | func (mr *MockResolverMockRecorder) Name() *gomock.Call { method Resolve (line 96) | func (mr *MockResolverMockRecorder) Resolve(ctx, desc interface{}) *go... method Target (line 110) | func (mr *MockResolverMockRecorder) Target(ctx, target interface{}) *g... function NewMockResolver (line 46) | func NewMockResolver(ctrl *gomock.Controller) *MockResolver { type MockInstance (line 116) | type MockInstance struct method EXPECT (line 134) | func (m *MockInstance) EXPECT() *MockInstanceMockRecorder { method Address (line 139) | func (m *MockInstance) Address() net.Addr { method Tag (line 153) | func (m *MockInstance) Tag(key string) (string, bool) { method Weight (line 168) | func (m *MockInstance) Weight() int { type MockInstanceMockRecorder (line 122) | type MockInstanceMockRecorder struct method Address (line 147) | func (mr *MockInstanceMockRecorder) Address() *gomock.Call { method Tag (line 162) | func (mr *MockInstanceMockRecorder) Tag(key interface{}) *gomock.Call { method Weight (line 176) | func (mr *MockInstanceMockRecorder) Weight() *gomock.Call { function NewMockInstance (line 127) | func NewMockInstance(ctrl *gomock.Controller) *MockInstance { FILE: internal/mocks/generic/generic_service.go type MockService (line 32) | type MockService struct method EXPECT (line 50) | func (m *MockService) EXPECT() *MockServiceMockRecorder { method GenericCall (line 55) | func (m *MockService) GenericCall(ctx context.Context, method string, ... type MockServiceMockRecorder (line 38) | type MockServiceMockRecorder struct method GenericCall (line 64) | func (mr *MockServiceMockRecorder) GenericCall(ctx, method, request in... function NewMockService (line 43) | func NewMockService(ctrl *gomock.Controller) *MockService { type MockWithCodec (line 70) | type MockWithCodec struct method EXPECT (line 88) | func (m *MockWithCodec) EXPECT() *MockWithCodecMockRecorder { method SetCodec (line 93) | func (m *MockWithCodec) SetCodec(codec interface{}) { type MockWithCodecMockRecorder (line 76) | type MockWithCodecMockRecorder struct method SetCodec (line 99) | func (mr *MockWithCodecMockRecorder) SetCodec(codec interface{}) *gomo... function NewMockWithCodec (line 81) | func NewMockWithCodec(ctrl *gomock.Controller) *MockWithCodec { FILE: internal/mocks/generic/thrift.go type MockMessageReader (line 34) | type MockMessageReader struct method EXPECT (line 52) | func (m *MockMessageReader) EXPECT() *MockMessageReaderMockRecorder { method Read (line 57) | func (m *MockMessageReader) Read(ctx context.Context, method string, i... type MockMessageReaderMockRecorder (line 40) | type MockMessageReaderMockRecorder struct method Read (line 66) | func (mr *MockMessageReaderMockRecorder) Read(ctx, method, isClient, d... function NewMockMessageReader (line 45) | func NewMockMessageReader(ctrl *gomock.Controller) *MockMessageReader { type MockMessageWriter (line 72) | type MockMessageWriter struct method EXPECT (line 90) | func (m *MockMessageWriter) EXPECT() *MockMessageWriterMockRecorder { method Write (line 95) | func (m *MockMessageWriter) Write(ctx context.Context, out bufiox.Writ... type MockMessageWriterMockRecorder (line 78) | type MockMessageWriterMockRecorder struct method Write (line 103) | func (mr *MockMessageWriterMockRecorder) Write(ctx, out, msg, method, ... function NewMockMessageWriter (line 83) | func NewMockMessageWriter(ctrl *gomock.Controller) *MockMessageWriter { FILE: internal/mocks/klog/log.go type MockFormatLogger (line 34) | type MockFormatLogger struct method EXPECT (line 52) | func (m *MockFormatLogger) EXPECT() *MockFormatLoggerMockRecorder { method Debugf (line 57) | func (m *MockFormatLogger) Debugf(format string, v ...interface{}) { method Errorf (line 74) | func (m *MockFormatLogger) Errorf(format string, v ...interface{}) { method Fatalf (line 91) | func (m *MockFormatLogger) Fatalf(format string, v ...interface{}) { method Infof (line 108) | func (m *MockFormatLogger) Infof(format string, v ...interface{}) { method Noticef (line 125) | func (m *MockFormatLogger) Noticef(format string, v ...interface{}) { method Tracef (line 142) | func (m *MockFormatLogger) Tracef(format string, v ...interface{}) { method Warnf (line 159) | func (m *MockFormatLogger) Warnf(format string, v ...interface{}) { type MockFormatLoggerMockRecorder (line 40) | type MockFormatLoggerMockRecorder struct method Debugf (line 67) | func (mr *MockFormatLoggerMockRecorder) Debugf(format interface{}, v .... method Errorf (line 84) | func (mr *MockFormatLoggerMockRecorder) Errorf(format interface{}, v .... method Fatalf (line 101) | func (mr *MockFormatLoggerMockRecorder) Fatalf(format interface{}, v .... method Infof (line 118) | func (mr *MockFormatLoggerMockRecorder) Infof(format interface{}, v ..... method Noticef (line 135) | func (mr *MockFormatLoggerMockRecorder) Noticef(format interface{}, v ... method Tracef (line 152) | func (mr *MockFormatLoggerMockRecorder) Tracef(format interface{}, v .... method Warnf (line 169) | func (mr *MockFormatLoggerMockRecorder) Warnf(format interface{}, v ..... function NewMockFormatLogger (line 45) | func NewMockFormatLogger(ctrl *gomock.Controller) *MockFormatLogger { type MockLogger (line 176) | type MockLogger struct method EXPECT (line 194) | func (m *MockLogger) EXPECT() *MockLoggerMockRecorder { method Debug (line 199) | func (m *MockLogger) Debug(v ...interface{}) { method Error (line 215) | func (m *MockLogger) Error(v ...interface{}) { method Fatal (line 231) | func (m *MockLogger) Fatal(v ...interface{}) { method Info (line 247) | func (m *MockLogger) Info(v ...interface{}) { method Notice (line 263) | func (m *MockLogger) Notice(v ...interface{}) { method Trace (line 279) | func (m *MockLogger) Trace(v ...interface{}) { method Warn (line 295) | func (m *MockLogger) Warn(v ...interface{}) { type MockLoggerMockRecorder (line 182) | type MockLoggerMockRecorder struct method Debug (line 209) | func (mr *MockLoggerMockRecorder) Debug(v ...interface{}) *gomock.Call { method Error (line 225) | func (mr *MockLoggerMockRecorder) Error(v ...interface{}) *gomock.Call { method Fatal (line 241) | func (mr *MockLoggerMockRecorder) Fatal(v ...interface{}) *gomock.Call { method Info (line 257) | func (mr *MockLoggerMockRecorder) Info(v ...interface{}) *gomock.Call { method Notice (line 273) | func (mr *MockLoggerMockRecorder) Notice(v ...interface{}) *gomock.Call { method Trace (line 289) | func (mr *MockLoggerMockRecorder) Trace(v ...interface{}) *gomock.Call { method Warn (line 305) | func (mr *MockLoggerMockRecorder) Warn(v ...interface{}) *gomock.Call { function NewMockLogger (line 187) | func NewMockLogger(ctrl *gomock.Controller) *MockLogger { type MockCtxLogger (line 311) | type MockCtxLogger struct method EXPECT (line 329) | func (m *MockCtxLogger) EXPECT() *MockCtxLoggerMockRecorder { method CtxDebugf (line 334) | func (m *MockCtxLogger) CtxDebugf(ctx context.Context, format string, ... method CtxErrorf (line 351) | func (m *MockCtxLogger) CtxErrorf(ctx context.Context, format string, ... method CtxFatalf (line 368) | func (m *MockCtxLogger) CtxFatalf(ctx context.Context, format string, ... method CtxInfof (line 385) | func (m *MockCtxLogger) CtxInfof(ctx context.Context, format string, v... method CtxNoticef (line 402) | func (m *MockCtxLogger) CtxNoticef(ctx context.Context, format string,... method CtxTracef (line 419) | func (m *MockCtxLogger) CtxTracef(ctx context.Context, format string, ... method CtxWarnf (line 436) | func (m *MockCtxLogger) CtxWarnf(ctx context.Context, format string, v... type MockCtxLoggerMockRecorder (line 317) | type MockCtxLoggerMockRecorder struct method CtxDebugf (line 344) | func (mr *MockCtxLoggerMockRecorder) CtxDebugf(ctx, format interface{}... method CtxErrorf (line 361) | func (mr *MockCtxLoggerMockRecorder) CtxErrorf(ctx, format interface{}... method CtxFatalf (line 378) | func (mr *MockCtxLoggerMockRecorder) CtxFatalf(ctx, format interface{}... method CtxInfof (line 395) | func (mr *MockCtxLoggerMockRecorder) CtxInfof(ctx, format interface{},... method CtxNoticef (line 412) | func (mr *MockCtxLoggerMockRecorder) CtxNoticef(ctx, format interface{... method CtxTracef (line 429) | func (mr *MockCtxLoggerMockRecorder) CtxTracef(ctx, format interface{}... method CtxWarnf (line 446) | func (mr *MockCtxLoggerMockRecorder) CtxWarnf(ctx, format interface{},... function NewMockCtxLogger (line 322) | func NewMockCtxLogger(ctrl *gomock.Controller) *MockCtxLogger { type MockControl (line 453) | type MockControl struct method EXPECT (line 471) | func (m *MockControl) EXPECT() *MockControlMockRecorder { method SetLevel (line 476) | func (m *MockControl) SetLevel(arg0 klog.Level) { method SetOutput (line 488) | func (m *MockControl) SetOutput(arg0 io.Writer) { type MockControlMockRecorder (line 459) | type MockControlMockRecorder struct method SetLevel (line 482) | func (mr *MockControlMockRecorder) SetLevel(arg0 interface{}) *gomock.... method SetOutput (line 494) | func (mr *MockControlMockRecorder) SetOutput(arg0 interface{}) *gomock... function NewMockControl (line 464) | func NewMockControl(ctrl *gomock.Controller) *MockControl { type MockFullLogger (line 500) | type MockFullLogger struct method EXPECT (line 518) | func (m *MockFullLogger) EXPECT() *MockFullLoggerMockRecorder { method CtxDebugf (line 523) | func (m *MockFullLogger) CtxDebugf(ctx context.Context, format string,... method CtxErrorf (line 540) | func (m *MockFullLogger) CtxErrorf(ctx context.Context, format string,... method CtxFatalf (line 557) | func (m *MockFullLogger) CtxFatalf(ctx context.Context, format string,... method CtxInfof (line 574) | func (m *MockFullLogger) CtxInfof(ctx context.Context, format string, ... method CtxNoticef (line 591) | func (m *MockFullLogger) CtxNoticef(ctx context.Context, format string... method CtxTracef (line 608) | func (m *MockFullLogger) CtxTracef(ctx context.Context, format string,... method CtxWarnf (line 625) | func (m *MockFullLogger) CtxWarnf(ctx context.Context, format string, ... method Debug (line 642) | func (m *MockFullLogger) Debug(v ...interface{}) { method Debugf (line 658) | func (m *MockFullLogger) Debugf(format string, v ...interface{}) { method Error (line 675) | func (m *MockFullLogger) Error(v ...interface{}) { method Errorf (line 691) | func (m *MockFullLogger) Errorf(format string, v ...interface{}) { method Fatal (line 708) | func (m *MockFullLogger) Fatal(v ...interface{}) { method Fatalf (line 724) | func (m *MockFullLogger) Fatalf(format string, v ...interface{}) { method Info (line 741) | func (m *MockFullLogger) Info(v ...interface{}) { method Infof (line 757) | func (m *MockFullLogger) Infof(format string, v ...interface{}) { method Notice (line 774) | func (m *MockFullLogger) Notice(v ...interface{}) { method Noticef (line 790) | func (m *MockFullLogger) Noticef(format string, v ...interface{}) { method SetLevel (line 807) | func (m *MockFullLogger) SetLevel(arg0 klog.Level) { method SetOutput (line 819) | func (m *MockFullLogger) SetOutput(arg0 io.Writer) { method Trace (line 831) | func (m *MockFullLogger) Trace(v ...interface{}) { method Tracef (line 847) | func (m *MockFullLogger) Tracef(format string, v ...interface{}) { method Warn (line 864) | func (m *MockFullLogger) Warn(v ...interface{}) { method Warnf (line 880) | func (m *MockFullLogger) Warnf(format string, v ...interface{}) { type MockFullLoggerMockRecorder (line 506) | type MockFullLoggerMockRecorder struct method CtxDebugf (line 533) | func (mr *MockFullLoggerMockRecorder) CtxDebugf(ctx, format interface{... method CtxErrorf (line 550) | func (mr *MockFullLoggerMockRecorder) CtxErrorf(ctx, format interface{... method CtxFatalf (line 567) | func (mr *MockFullLoggerMockRecorder) CtxFatalf(ctx, format interface{... method CtxInfof (line 584) | func (mr *MockFullLoggerMockRecorder) CtxInfof(ctx, format interface{}... method CtxNoticef (line 601) | func (mr *MockFullLoggerMockRecorder) CtxNoticef(ctx, format interface... method CtxTracef (line 618) | func (mr *MockFullLoggerMockRecorder) CtxTracef(ctx, format interface{... method CtxWarnf (line 635) | func (mr *MockFullLoggerMockRecorder) CtxWarnf(ctx, format interface{}... method Debug (line 652) | func (mr *MockFullLoggerMockRecorder) Debug(v ...interface{}) *gomock.... method Debugf (line 668) | func (mr *MockFullLoggerMockRecorder) Debugf(format interface{}, v ...... method Error (line 685) | func (mr *MockFullLoggerMockRecorder) Error(v ...interface{}) *gomock.... method Errorf (line 701) | func (mr *MockFullLoggerMockRecorder) Errorf(format interface{}, v ...... method Fatal (line 718) | func (mr *MockFullLoggerMockRecorder) Fatal(v ...interface{}) *gomock.... method Fatalf (line 734) | func (mr *MockFullLoggerMockRecorder) Fatalf(format interface{}, v ...... method Info (line 751) | func (mr *MockFullLoggerMockRecorder) Info(v ...interface{}) *gomock.C... method Infof (line 767) | func (mr *MockFullLoggerMockRecorder) Infof(format interface{}, v ...i... method Notice (line 784) | func (mr *MockFullLoggerMockRecorder) Notice(v ...interface{}) *gomock... method Noticef (line 800) | func (mr *MockFullLoggerMockRecorder) Noticef(format interface{}, v ..... method SetLevel (line 813) | func (mr *MockFullLoggerMockRecorder) SetLevel(arg0 interface{}) *gomo... method SetOutput (line 825) | func (mr *MockFullLoggerMockRecorder) SetOutput(arg0 interface{}) *gom... method Trace (line 841) | func (mr *MockFullLoggerMockRecorder) Trace(v ...interface{}) *gomock.... method Tracef (line 857) | func (mr *MockFullLoggerMockRecorder) Tracef(format interface{}, v ...... method Warn (line 874) | func (mr *MockFullLoggerMockRecorder) Warn(v ...interface{}) *gomock.C... method Warnf (line 890) | func (mr *MockFullLoggerMockRecorder) Warnf(format interface{}, v ...i... function NewMockFullLogger (line 511) | func NewMockFullLogger(ctrl *gomock.Controller) *MockFullLogger { FILE: internal/mocks/limiter/limiter.go type MockConcurrencyLimiter (line 33) | type MockConcurrencyLimiter struct method EXPECT (line 51) | func (m *MockConcurrencyLimiter) EXPECT() *MockConcurrencyLimiterMockR... method Acquire (line 56) | func (m *MockConcurrencyLimiter) Acquire(ctx context.Context) bool { method Release (line 70) | func (m *MockConcurrencyLimiter) Release(ctx context.Context) { method Status (line 82) | func (m *MockConcurrencyLimiter) Status(ctx context.Context) (int, int) { type MockConcurrencyLimiterMockRecorder (line 39) | type MockConcurrencyLimiterMockRecorder struct method Acquire (line 64) | func (mr *MockConcurrencyLimiterMockRecorder) Acquire(ctx interface{})... method Release (line 76) | func (mr *MockConcurrencyLimiterMockRecorder) Release(ctx interface{})... method Status (line 91) | func (mr *MockConcurrencyLimiterMockRecorder) Status(ctx interface{}) ... function NewMockConcurrencyLimiter (line 44) | func NewMockConcurrencyLimiter(ctrl *gomock.Controller) *MockConcurrency... type MockRateLimiter (line 97) | type MockRateLimiter struct method EXPECT (line 115) | func (m *MockRateLimiter) EXPECT() *MockRateLimiterMockRecorder { method Acquire (line 120) | func (m *MockRateLimiter) Acquire(ctx context.Context) bool { method Status (line 134) | func (m *MockRateLimiter) Status(ctx context.Context) (int, int, time.... type MockRateLimiterMockRecorder (line 103) | type MockRateLimiterMockRecorder struct method Acquire (line 128) | func (mr *MockRateLimiterMockRecorder) Acquire(ctx interface{}) *gomoc... method Status (line 144) | func (mr *MockRateLimiterMockRecorder) Status(ctx interface{}) *gomock... function NewMockRateLimiter (line 108) | func NewMockRateLimiter(ctrl *gomock.Controller) *MockRateLimiter { type MockUpdatable (line 150) | type MockUpdatable struct method EXPECT (line 168) | func (m *MockUpdatable) EXPECT() *MockUpdatableMockRecorder { method UpdateLimit (line 173) | func (m *MockUpdatable) UpdateLimit(limit int) { type MockUpdatableMockRecorder (line 156) | type MockUpdatableMockRecorder struct method UpdateLimit (line 179) | func (mr *MockUpdatableMockRecorder) UpdateLimit(limit interface{}) *g... function NewMockUpdatable (line 161) | func NewMockUpdatable(ctrl *gomock.Controller) *MockUpdatable { type MockLimitReporter (line 185) | type MockLimitReporter struct method EXPECT (line 203) | func (m *MockLimitReporter) EXPECT() *MockLimitReporterMockRecorder { method ConnOverloadReport (line 208) | func (m *MockLimitReporter) ConnOverloadReport() { method QPSOverloadReport (line 220) | func (m *MockLimitReporter) QPSOverloadReport() { type MockLimitReporterMockRecorder (line 191) | type MockLimitReporterMockRecorder struct method ConnOverloadReport (line 214) | func (mr *MockLimitReporterMockRecorder) ConnOverloadReport() *gomock.... method QPSOverloadReport (line 226) | func (mr *MockLimitReporterMockRecorder) QPSOverloadReport() *gomock.C... function NewMockLimitReporter (line 196) | func NewMockLimitReporter(ctrl *gomock.Controller) *MockLimitReporter { FILE: internal/mocks/loadbalance/loadbalancer.go type MockPicker (line 34) | type MockPicker struct method EXPECT (line 52) | func (m *MockPicker) EXPECT() *MockPickerMockRecorder { method Next (line 57) | func (m *MockPicker) Next(ctx context.Context, request interface{}) di... type MockPickerMockRecorder (line 40) | type MockPickerMockRecorder struct method Next (line 65) | func (mr *MockPickerMockRecorder) Next(ctx, request interface{}) *gomo... function NewMockPicker (line 45) | func NewMockPicker(ctrl *gomock.Controller) *MockPicker { type MockLoadbalancer (line 71) | type MockLoadbalancer struct method EXPECT (line 89) | func (m *MockLoadbalancer) EXPECT() *MockLoadbalancerMockRecorder { method GetPicker (line 94) | func (m *MockLoadbalancer) GetPicker(arg0 discovery.Result) loadbalanc... method Name (line 108) | func (m *MockLoadbalancer) Name() string { type MockLoadbalancerMockRecorder (line 77) | type MockLoadbalancerMockRecorder struct method GetPicker (line 102) | func (mr *MockLoadbalancerMockRecorder) GetPicker(arg0 interface{}) *g... method Name (line 116) | func (mr *MockLoadbalancerMockRecorder) Name() *gomock.Call { function NewMockLoadbalancer (line 82) | func NewMockLoadbalancer(ctrl *gomock.Controller) *MockLoadbalancer { type MockRebalancer (line 122) | type MockRebalancer struct method EXPECT (line 140) | func (m *MockRebalancer) EXPECT() *MockRebalancerMockRecorder { method Delete (line 145) | func (m *MockRebalancer) Delete(arg0 discovery.Change) { method Rebalance (line 157) | func (m *MockRebalancer) Rebalance(arg0 discovery.Change) { type MockRebalancerMockRecorder (line 128) | type MockRebalancerMockRecorder struct method Delete (line 151) | func (mr *MockRebalancerMockRecorder) Delete(arg0 interface{}) *gomock... method Rebalance (line 163) | func (mr *MockRebalancerMockRecorder) Rebalance(arg0 interface{}) *gom... function NewMockRebalancer (line 133) | func NewMockRebalancer(ctrl *gomock.Controller) *MockRebalancer { FILE: internal/mocks/message/message.go type MockMessage (line 26) | type MockMessage struct method RPCInfo (line 42) | func (m *MockMessage) RPCInfo() rpcinfo.RPCInfo { method Data (line 49) | func (m *MockMessage) Data() interface{} { method NewData (line 56) | func (m *MockMessage) NewData(method string) (ok bool) { method MessageType (line 63) | func (m *MockMessage) MessageType() (mt remote.MessageType) { method SetMessageType (line 70) | func (m *MockMessage) SetMessageType(mt remote.MessageType) { method RPCRole (line 76) | func (m *MockMessage) RPCRole() (r remote.RPCRole) { method PayloadLen (line 83) | func (m *MockMessage) PayloadLen() int { method SetPayloadLen (line 90) | func (m *MockMessage) SetPayloadLen(size int) { method TransInfo (line 96) | func (m *MockMessage) TransInfo() remote.TransInfo { method Tags (line 103) | func (m *MockMessage) Tags() map[string]interface{} { method ProtocolInfo (line 110) | func (m *MockMessage) ProtocolInfo() remote.ProtocolInfo { method PayloadCodec (line 118) | func (m *MockMessage) PayloadCodec() remote.PayloadCodec { method SetPayloadCodec (line 125) | func (m *MockMessage) SetPayloadCodec(pc remote.PayloadCodec) { method Recycle (line 131) | func (m *MockMessage) Recycle() { FILE: internal/mocks/net/net.go type MockAddr (line 33) | type MockAddr struct method EXPECT (line 51) | func (m *MockAddr) EXPECT() *MockAddrMockRecorder { method Network (line 56) | func (m *MockAddr) Network() string { method String (line 70) | func (m *MockAddr) String() string { type MockAddrMockRecorder (line 39) | type MockAddrMockRecorder struct method Network (line 64) | func (mr *MockAddrMockRecorder) Network() *gomock.Call { method String (line 78) | func (mr *MockAddrMockRecorder) String() *gomock.Call { function NewMockAddr (line 44) | func NewMockAddr(ctrl *gomock.Controller) *MockAddr { type MockConn (line 84) | type MockConn struct method EXPECT (line 102) | func (m *MockConn) EXPECT() *MockConnMockRecorder { method Close (line 107) | func (m *MockConn) Close() error { method LocalAddr (line 121) | func (m *MockConn) LocalAddr() net.Addr { method Read (line 135) | func (m *MockConn) Read(b []byte) (int, error) { method RemoteAddr (line 150) | func (m *MockConn) RemoteAddr() net.Addr { method SetDeadline (line 164) | func (m *MockConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 178) | func (m *MockConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 192) | func (m *MockConn) SetWriteDeadline(t time.Time) error { method Write (line 206) | func (m *MockConn) Write(b []byte) (int, error) { type MockConnMockRecorder (line 90) | type MockConnMockRecorder struct method Close (line 115) | func (mr *MockConnMockRecorder) Close() *gomock.Call { method LocalAddr (line 129) | func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call { method Read (line 144) | func (mr *MockConnMockRecorder) Read(b interface{}) *gomock.Call { method RemoteAddr (line 158) | func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call { method SetDeadline (line 172) | func (mr *MockConnMockRecorder) SetDeadline(t interface{}) *gomock.Call { method SetReadDeadline (line 186) | func (mr *MockConnMockRecorder) SetReadDeadline(t interface{}) *gomock... method SetWriteDeadline (line 200) | func (mr *MockConnMockRecorder) SetWriteDeadline(t interface{}) *gomoc... method Write (line 215) | func (mr *MockConnMockRecorder) Write(b interface{}) *gomock.Call { function NewMockConn (line 95) | func NewMockConn(ctrl *gomock.Controller) *MockConn { type MockPacketConn (line 221) | type MockPacketConn struct method EXPECT (line 239) | func (m *MockPacketConn) EXPECT() *MockPacketConnMockRecorder { method Close (line 244) | func (m *MockPacketConn) Close() error { method LocalAddr (line 258) | func (m *MockPacketConn) LocalAddr() net.Addr { method ReadFrom (line 272) | func (m *MockPacketConn) ReadFrom(p []byte) (int, net.Addr, error) { method SetDeadline (line 288) | func (m *MockPacketConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 302) | func (m *MockPacketConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 316) | func (m *MockPacketConn) SetWriteDeadline(t time.Time) error { method WriteTo (line 330) | func (m *MockPacketConn) WriteTo(p []byte, addr net.Addr) (int, error) { type MockPacketConnMockRecorder (line 227) | type MockPacketConnMockRecorder struct method Close (line 252) | func (mr *MockPacketConnMockRecorder) Close() *gomock.Call { method LocalAddr (line 266) | func (mr *MockPacketConnMockRecorder) LocalAddr() *gomock.Call { method ReadFrom (line 282) | func (mr *MockPacketConnMockRecorder) ReadFrom(p interface{}) *gomock.... method SetDeadline (line 296) | func (mr *MockPacketConnMockRecorder) SetDeadline(t interface{}) *gomo... method SetReadDeadline (line 310) | func (mr *MockPacketConnMockRecorder) SetReadDeadline(t interface{}) *... method SetWriteDeadline (line 324) | func (mr *MockPacketConnMockRecorder) SetWriteDeadline(t interface{}) ... method WriteTo (line 339) | func (mr *MockPacketConnMockRecorder) WriteTo(p, addr interface{}) *go... function NewMockPacketConn (line 232) | func NewMockPacketConn(ctrl *gomock.Controller) *MockPacketConn { type MockListener (line 345) | type MockListener struct method EXPECT (line 363) | func (m *MockListener) EXPECT() *MockListenerMockRecorder { method Accept (line 368) | func (m *MockListener) Accept() (net.Conn, error) { method Addr (line 383) | func (m *MockListener) Addr() net.Addr { method Close (line 397) | func (m *MockListener) Close() error { type MockListenerMockRecorder (line 351) | type MockListenerMockRecorder struct method Accept (line 377) | func (mr *MockListenerMockRecorder) Accept() *gomock.Call { method Addr (line 391) | func (mr *MockListenerMockRecorder) Addr() *gomock.Call { method Close (line 405) | func (mr *MockListenerMockRecorder) Close() *gomock.Call { function NewMockListener (line 356) | func NewMockListener(ctrl *gomock.Controller) *MockListener { type MockError (line 411) | type MockError struct method EXPECT (line 429) | func (m *MockError) EXPECT() *MockErrorMockRecorder { method Error (line 434) | func (m *MockError) Error() string { method Temporary (line 448) | func (m *MockError) Temporary() bool { method Timeout (line 462) | func (m *MockError) Timeout() bool { type MockErrorMockRecorder (line 417) | type MockErrorMockRecorder struct method Error (line 442) | func (mr *MockErrorMockRecorder) Error() *gomock.Call { method Temporary (line 456) | func (mr *MockErrorMockRecorder) Temporary() *gomock.Call { method Timeout (line 470) | func (mr *MockErrorMockRecorder) Timeout() *gomock.Call { function NewMockError (line 422) | func NewMockError(ctrl *gomock.Controller) *MockError { type Mocktimeout (line 476) | type Mocktimeout struct method EXPECT (line 494) | func (m *Mocktimeout) EXPECT() *MocktimeoutMockRecorder { method Timeout (line 499) | func (m *Mocktimeout) Timeout() bool { type MocktimeoutMockRecorder (line 482) | type MocktimeoutMockRecorder struct method Timeout (line 507) | func (mr *MocktimeoutMockRecorder) Timeout() *gomock.Call { function NewMocktimeout (line 487) | func NewMocktimeout(ctrl *gomock.Controller) *Mocktimeout { type Mocktemporary (line 513) | type Mocktemporary struct method EXPECT (line 531) | func (m *Mocktemporary) EXPECT() *MocktemporaryMockRecorder { method Temporary (line 536) | func (m *Mocktemporary) Temporary() bool { type MocktemporaryMockRecorder (line 519) | type MocktemporaryMockRecorder struct method Temporary (line 544) | func (mr *MocktemporaryMockRecorder) Temporary() *gomock.Call { function NewMocktemporary (line 524) | func NewMocktemporary(ctrl *gomock.Controller) *Mocktemporary { type MockbuffersWriter (line 550) | type MockbuffersWriter struct method EXPECT (line 568) | func (m *MockbuffersWriter) EXPECT() *MockbuffersWriterMockRecorder { method writeBuffers (line 573) | func (m *MockbuffersWriter) writeBuffers(arg0 *net.Buffers) (int64, er... type MockbuffersWriterMockRecorder (line 556) | type MockbuffersWriterMockRecorder struct method writeBuffers (line 582) | func (mr *MockbuffersWriterMockRecorder) writeBuffers(arg0 interface{}... function NewMockbuffersWriter (line 561) | func NewMockbuffersWriter(ctrl *gomock.Controller) *MockbuffersWriter { FILE: internal/mocks/netpoll/connection.go type MockConnection (line 34) | type MockConnection struct method EXPECT (line 52) | func (m *MockConnection) EXPECT() *MockConnectionMockRecorder { method AddCloseCallback (line 57) | func (m *MockConnection) AddCloseCallback(callback netpoll.CloseCallba... method Close (line 71) | func (m *MockConnection) Close() error { method IsActive (line 85) | func (m *MockConnection) IsActive() bool { method LocalAddr (line 99) | func (m *MockConnection) LocalAddr() net.Addr { method Read (line 113) | func (m *MockConnection) Read(b []byte) (int, error) { method Reader (line 128) | func (m *MockConnection) Reader() netpoll.Reader { method RemoteAddr (line 142) | func (m *MockConnection) RemoteAddr() net.Addr { method SetDeadline (line 156) | func (m *MockConnection) SetDeadline(t time.Time) error { method SetIdleTimeout (line 170) | func (m *MockConnection) SetIdleTimeout(timeout time.Duration) error { method SetOnRequest (line 184) | func (m *MockConnection) SetOnRequest(on netpoll.OnRequest) error { method SetReadDeadline (line 198) | func (m *MockConnection) SetReadDeadline(t time.Time) error { method SetReadTimeout (line 212) | func (m *MockConnection) SetReadTimeout(timeout time.Duration) error { method SetWriteDeadline (line 226) | func (m *MockConnection) SetWriteDeadline(t time.Time) error { method SetWriteTimeout (line 240) | func (m *MockConnection) SetWriteTimeout(timeout time.Duration) error { method Write (line 254) | func (m *MockConnection) Write(b []byte) (int, error) { method Writer (line 269) | func (m *MockConnection) Writer() netpoll.Writer { type MockConnectionMockRecorder (line 40) | type MockConnectionMockRecorder struct method AddCloseCallback (line 65) | func (mr *MockConnectionMockRecorder) AddCloseCallback(callback interf... method Close (line 79) | func (mr *MockConnectionMockRecorder) Close() *gomock.Call { method IsActive (line 93) | func (mr *MockConnectionMockRecorder) IsActive() *gomock.Call { method LocalAddr (line 107) | func (mr *MockConnectionMockRecorder) LocalAddr() *gomock.Call { method Read (line 122) | func (mr *MockConnectionMockRecorder) Read(b interface{}) *gomock.Call { method Reader (line 136) | func (mr *MockConnectionMockRecorder) Reader() *gomock.Call { method RemoteAddr (line 150) | func (mr *MockConnectionMockRecorder) RemoteAddr() *gomock.Call { method SetDeadline (line 164) | func (mr *MockConnectionMockRecorder) SetDeadline(t interface{}) *gomo... method SetIdleTimeout (line 178) | func (mr *MockConnectionMockRecorder) SetIdleTimeout(timeout interface... method SetOnRequest (line 192) | func (mr *MockConnectionMockRecorder) SetOnRequest(on interface{}) *go... method SetReadDeadline (line 206) | func (mr *MockConnectionMockRecorder) SetReadDeadline(t interface{}) *... method SetReadTimeout (line 220) | func (mr *MockConnectionMockRecorder) SetReadTimeout(timeout interface... method SetWriteDeadline (line 234) | func (mr *MockConnectionMockRecorder) SetWriteDeadline(t interface{}) ... method SetWriteTimeout (line 248) | func (mr *MockConnectionMockRecorder) SetWriteTimeout(timeout interfac... method Write (line 263) | func (mr *MockConnectionMockRecorder) Write(b interface{}) *gomock.Call { method Writer (line 277) | func (mr *MockConnectionMockRecorder) Writer() *gomock.Call { function NewMockConnection (line 45) | func NewMockConnection(ctrl *gomock.Controller) *MockConnection { type MockConn (line 283) | type MockConn struct method EXPECT (line 301) | func (m *MockConn) EXPECT() *MockConnMockRecorder { method Close (line 306) | func (m *MockConn) Close() error { method Fd (line 320) | func (m *MockConn) Fd() int { method LocalAddr (line 334) | func (m *MockConn) LocalAddr() net.Addr { method Read (line 348) | func (m *MockConn) Read(b []byte) (int, error) { method RemoteAddr (line 363) | func (m *MockConn) RemoteAddr() net.Addr { method SetDeadline (line 377) | func (m *MockConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 391) | func (m *MockConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 405) | func (m *MockConn) SetWriteDeadline(t time.Time) error { method Write (line 419) | func (m *MockConn) Write(b []byte) (int, error) { type MockConnMockRecorder (line 289) | type MockConnMockRecorder struct method Close (line 314) | func (mr *MockConnMockRecorder) Close() *gomock.Call { method Fd (line 328) | func (mr *MockConnMockRecorder) Fd() *gomock.Call { method LocalAddr (line 342) | func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call { method Read (line 357) | func (mr *MockConnMockRecorder) Read(b interface{}) *gomock.Call { method RemoteAddr (line 371) | func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call { method SetDeadline (line 385) | func (mr *MockConnMockRecorder) SetDeadline(t interface{}) *gomock.Call { method SetReadDeadline (line 399) | func (mr *MockConnMockRecorder) SetReadDeadline(t interface{}) *gomock... method SetWriteDeadline (line 413) | func (mr *MockConnMockRecorder) SetWriteDeadline(t interface{}) *gomoc... method Write (line 428) | func (mr *MockConnMockRecorder) Write(b interface{}) *gomock.Call { function NewMockConn (line 294) | func NewMockConn(ctrl *gomock.Controller) *MockConn { type MockListener (line 434) | type MockListener struct method EXPECT (line 452) | func (m *MockListener) EXPECT() *MockListenerMockRecorder { method Accept (line 457) | func (m *MockListener) Accept() (net.Conn, error) { method Addr (line 472) | func (m *MockListener) Addr() net.Addr { method Close (line 486) | func (m *MockListener) Close() error { method Fd (line 500) | func (m *MockListener) Fd() int { type MockListenerMockRecorder (line 440) | type MockListenerMockRecorder struct method Accept (line 466) | func (mr *MockListenerMockRecorder) Accept() *gomock.Call { method Addr (line 480) | func (mr *MockListenerMockRecorder) Addr() *gomock.Call { method Close (line 494) | func (mr *MockListenerMockRecorder) Close() *gomock.Call { method Fd (line 508) | func (mr *MockListenerMockRecorder) Fd() *gomock.Call { function NewMockListener (line 445) | func NewMockListener(ctrl *gomock.Controller) *MockListener { type MockDialer (line 514) | type MockDialer struct method EXPECT (line 532) | func (m *MockDialer) EXPECT() *MockDialerMockRecorder { method DialConnection (line 537) | func (m *MockDialer) DialConnection(network, address string, timeout t... method DialTimeout (line 552) | func (m *MockDialer) DialTimeout(network, address string, timeout time... type MockDialerMockRecorder (line 520) | type MockDialerMockRecorder struct method DialConnection (line 546) | func (mr *MockDialerMockRecorder) DialConnection(network, address, tim... method DialTimeout (line 561) | func (mr *MockDialerMockRecorder) DialTimeout(network, address, timeou... function NewMockDialer (line 525) | func NewMockDialer(ctrl *gomock.Controller) *MockDialer { FILE: internal/mocks/netpoll/nocopy.go type MockReader (line 31) | type MockReader struct method EXPECT (line 49) | func (m *MockReader) EXPECT() *MockReaderMockRecorder { method Len (line 54) | func (m *MockReader) Len() int { method Next (line 68) | func (m *MockReader) Next(n int) ([]byte, error) { method Peek (line 83) | func (m *MockReader) Peek(n int) ([]byte, error) { method ReadBinary (line 98) | func (m *MockReader) ReadBinary(n int) ([]byte, error) { method ReadByte (line 113) | func (m *MockReader) ReadByte() (byte, error) { method ReadString (line 128) | func (m *MockReader) ReadString(n int) (string, error) { method Release (line 143) | func (m *MockReader) Release() error { method Skip (line 157) | func (m *MockReader) Skip(n int) error { method Slice (line 171) | func (m *MockReader) Slice(n int) (netpoll.Reader, error) { method Until (line 186) | func (m *MockReader) Until(delim byte) ([]byte, error) { type MockReaderMockRecorder (line 37) | type MockReaderMockRecorder struct method Len (line 62) | func (mr *MockReaderMockRecorder) Len() *gomock.Call { method Next (line 77) | func (mr *MockReaderMockRecorder) Next(n interface{}) *gomock.Call { method Peek (line 92) | func (mr *MockReaderMockRecorder) Peek(n interface{}) *gomock.Call { method ReadBinary (line 107) | func (mr *MockReaderMockRecorder) ReadBinary(n interface{}) *gomock.Ca... method ReadByte (line 122) | func (mr *MockReaderMockRecorder) ReadByte() *gomock.Call { method ReadString (line 137) | func (mr *MockReaderMockRecorder) ReadString(n interface{}) *gomock.Ca... method Release (line 151) | func (mr *MockReaderMockRecorder) Release() *gomock.Call { method Skip (line 165) | func (mr *MockReaderMockRecorder) Skip(n interface{}) *gomock.Call { method Slice (line 180) | func (mr *MockReaderMockRecorder) Slice(n interface{}) *gomock.Call { method Until (line 195) | func (mr *MockReaderMockRecorder) Until(delim interface{}) *gomock.Call { function NewMockReader (line 42) | func NewMockReader(ctrl *gomock.Controller) *MockReader { type MockWriter (line 201) | type MockWriter struct method EXPECT (line 219) | func (m *MockWriter) EXPECT() *MockWriterMockRecorder { method Append (line 224) | func (m *MockWriter) Append(w netpoll.Writer) error { method Flush (line 238) | func (m *MockWriter) Flush() error { method Malloc (line 252) | func (m *MockWriter) Malloc(n int) ([]byte, error) { method MallocAck (line 267) | func (m *MockWriter) MallocAck(n int) error { method MallocLen (line 281) | func (m *MockWriter) MallocLen() int { method WriteBinary (line 295) | func (m *MockWriter) WriteBinary(b []byte) (int, error) { method WriteByte (line 310) | func (m *MockWriter) WriteByte(b byte) error { method WriteDirect (line 324) | func (m *MockWriter) WriteDirect(p []byte, remainCap int) error { method WriteString (line 338) | func (m *MockWriter) WriteString(s string) (int, error) { type MockWriterMockRecorder (line 207) | type MockWriterMockRecorder struct method Append (line 232) | func (mr *MockWriterMockRecorder) Append(w interface{}) *gomock.Call { method Flush (line 246) | func (mr *MockWriterMockRecorder) Flush() *gomock.Call { method Malloc (line 261) | func (mr *MockWriterMockRecorder) Malloc(n interface{}) *gomock.Call { method MallocAck (line 275) | func (mr *MockWriterMockRecorder) MallocAck(n interface{}) *gomock.Call { method MallocLen (line 289) | func (mr *MockWriterMockRecorder) MallocLen() *gomock.Call { method WriteBinary (line 304) | func (mr *MockWriterMockRecorder) WriteBinary(b interface{}) *gomock.C... method WriteByte (line 318) | func (mr *MockWriterMockRecorder) WriteByte(b interface{}) *gomock.Call { method WriteDirect (line 332) | func (mr *MockWriterMockRecorder) WriteDirect(p, remainCap interface{}... method WriteString (line 347) | func (mr *MockWriterMockRecorder) WriteString(s interface{}) *gomock.C... function NewMockWriter (line 212) | func NewMockWriter(ctrl *gomock.Controller) *MockWriter { type MockReadWriter (line 353) | type MockReadWriter struct method EXPECT (line 371) | func (m *MockReadWriter) EXPECT() *MockReadWriterMockRecorder { method Append (line 376) | func (m *MockReadWriter) Append(w netpoll.Writer) error { method Flush (line 390) | func (m *MockReadWriter) Flush() error { method Len (line 404) | func (m *MockReadWriter) Len() int { method Malloc (line 418) | func (m *MockReadWriter) Malloc(n int) ([]byte, error) { method MallocAck (line 433) | func (m *MockReadWriter) MallocAck(n int) error { method MallocLen (line 447) | func (m *MockReadWriter) MallocLen() int { method Next (line 461) | func (m *MockReadWriter) Next(n int) ([]byte, error) { method Peek (line 476) | func (m *MockReadWriter) Peek(n int) ([]byte, error) { method ReadBinary (line 491) | func (m *MockReadWriter) ReadBinary(n int) ([]byte, error) { method ReadByte (line 506) | func (m *MockReadWriter) ReadByte() (byte, error) { method ReadString (line 521) | func (m *MockReadWriter) ReadString(n int) (string, error) { method Release (line 536) | func (m *MockReadWriter) Release() error { method Skip (line 550) | func (m *MockReadWriter) Skip(n int) error { method Slice (line 564) | func (m *MockReadWriter) Slice(n int) (netpoll.Reader, error) { method Until (line 579) | func (m *MockReadWriter) Until(delim byte) ([]byte, error) { method WriteBinary (line 594) | func (m *MockReadWriter) WriteBinary(b []byte) (int, error) { method WriteByte (line 609) | func (m *MockReadWriter) WriteByte(b byte) error { method WriteDirect (line 623) | func (m *MockReadWriter) WriteDirect(p []byte, remainCap int) error { method WriteString (line 637) | func (m *MockReadWriter) WriteString(s string) (int, error) { type MockReadWriterMockRecorder (line 359) | type MockReadWriterMockRecorder struct method Append (line 384) | func (mr *MockReadWriterMockRecorder) Append(w interface{}) *gomock.Ca... method Flush (line 398) | func (mr *MockReadWriterMockRecorder) Flush() *gomock.Call { method Len (line 412) | func (mr *MockReadWriterMockRecorder) Len() *gomock.Call { method Malloc (line 427) | func (mr *MockReadWriterMockRecorder) Malloc(n interface{}) *gomock.Ca... method MallocAck (line 441) | func (mr *MockReadWriterMockRecorder) MallocAck(n interface{}) *gomock... method MallocLen (line 455) | func (mr *MockReadWriterMockRecorder) MallocLen() *gomock.Call { method Next (line 470) | func (mr *MockReadWriterMockRecorder) Next(n interface{}) *gomock.Call { method Peek (line 485) | func (mr *MockReadWriterMockRecorder) Peek(n interface{}) *gomock.Call { method ReadBinary (line 500) | func (mr *MockReadWriterMockRecorder) ReadBinary(n interface{}) *gomoc... method ReadByte (line 515) | func (mr *MockReadWriterMockRecorder) ReadByte() *gomock.Call { method ReadString (line 530) | func (mr *MockReadWriterMockRecorder) ReadString(n interface{}) *gomoc... method Release (line 544) | func (mr *MockReadWriterMockRecorder) Release() *gomock.Call { method Skip (line 558) | func (mr *MockReadWriterMockRecorder) Skip(n interface{}) *gomock.Call { method Slice (line 573) | func (mr *MockReadWriterMockRecorder) Slice(n interface{}) *gomock.Call { method Until (line 588) | func (mr *MockReadWriterMockRecorder) Until(delim interface{}) *gomock... method WriteBinary (line 603) | func (mr *MockReadWriterMockRecorder) WriteBinary(b interface{}) *gomo... method WriteByte (line 617) | func (mr *MockReadWriterMockRecorder) WriteByte(b interface{}) *gomock... method WriteDirect (line 631) | func (mr *MockReadWriterMockRecorder) WriteDirect(p, remainCap interfa... method WriteString (line 646) | func (mr *MockReadWriterMockRecorder) WriteString(s interface{}) *gomo... function NewMockReadWriter (line 364) | func NewMockReadWriter(ctrl *gomock.Controller) *MockReadWriter { FILE: internal/mocks/proto/kitex_gen/pbapi/mock/client.go type Client (line 32) | type Client interface type StreamClient (line 40) | type StreamClient interface type Mock_ClientStreamingTestClient (line 46) | type Mock_ClientStreamingTestClient interface type Mock_ServerStreamingTestClient (line 52) | type Mock_ServerStreamingTestClient interface type Mock_BidirectionalStreamingTestClient (line 57) | type Mock_BidirectionalStreamingTestClient interface function NewClient (line 64) | func NewClient(destService string, opts ...client.Option) (Client, error) { function MustNewClient (line 82) | func MustNewClient(destService string, opts ...client.Option) Client { type kMockClient (line 90) | type kMockClient struct method UnaryTest (line 94) | func (p *kMockClient) UnaryTest(ctx context.Context, Req *MockReq, cal... method ClientStreamingTest (line 99) | func (p *kMockClient) ClientStreamingTest(ctx context.Context, callOpt... method ServerStreamingTest (line 104) | func (p *kMockClient) ServerStreamingTest(ctx context.Context, Req *Mo... method BidirectionalStreamingTest (line 109) | func (p *kMockClient) BidirectionalStreamingTest(ctx context.Context, ... function NewStreamClient (line 115) | func NewStreamClient(destService string, opts ...streamclient.Option) (S... function MustNewStreamClient (line 132) | func MustNewStreamClient(destService string, opts ...streamclient.Option... type kMockStreamClient (line 140) | type kMockStreamClient struct method ClientStreamingTest (line 144) | func (p *kMockStreamClient) ClientStreamingTest(ctx context.Context, c... method ServerStreamingTest (line 149) | func (p *kMockStreamClient) ServerStreamingTest(ctx context.Context, R... method BidirectionalStreamingTest (line 154) | func (p *kMockStreamClient) BidirectionalStreamingTest(ctx context.Con... FILE: internal/mocks/proto/kitex_gen/pbapi/mock/invoker.go function NewInvoker (line 26) | func NewInvoker(handler Mock, opts ...server.Option) server.Invoker { FILE: internal/mocks/proto/kitex_gen/pbapi/mock/mock.go function serviceInfo (line 71) | func serviceInfo() *kitex.ServiceInfo { function serviceInfoForStreamClient (line 76) | func serviceInfoForStreamClient() *kitex.ServiceInfo { function serviceInfoForClient (line 81) | func serviceInfoForClient() *kitex.ServiceInfo { function NewServiceInfo (line 86) | func NewServiceInfo() *kitex.ServiceInfo { function NewServiceInfoForClient (line 91) | func NewServiceInfoForClient() *kitex.ServiceInfo { function NewServiceInfoForStreamClient (line 94) | func NewServiceInfoForStreamClient() *kitex.ServiceInfo { function newServiceInfo (line 98) | func newServiceInfo(hasStreaming bool, keepStreamingMethods bool, keepNo... function unaryTestHandler (line 128) | func unaryTestHandler(ctx context.Context, handler interface{}, arg, res... function newUnaryTestArgs (line 153) | func newUnaryTestArgs() interface{} { function newUnaryTestResult (line 157) | func newUnaryTestResult() interface{} { type UnaryTestArgs (line 161) | type UnaryTestArgs struct method Marshal (line 165) | func (p *UnaryTestArgs) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 172) | func (p *UnaryTestArgs) Unmarshal(in []byte) error { method GetReq (line 183) | func (p *UnaryTestArgs) GetReq() *MockReq { method IsSetReq (line 190) | func (p *UnaryTestArgs) IsSetReq() bool { method GetFirstArgument (line 194) | func (p *UnaryTestArgs) GetFirstArgument() interface{} { type UnaryTestResult (line 198) | type UnaryTestResult struct method Marshal (line 204) | func (p *UnaryTestResult) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 211) | func (p *UnaryTestResult) Unmarshal(in []byte) error { method GetSuccess (line 220) | func (p *UnaryTestResult) GetSuccess() *MockResp { method SetSuccess (line 227) | func (p *UnaryTestResult) SetSuccess(x interface{}) { method IsSetSuccess (line 231) | func (p *UnaryTestResult) IsSetSuccess() bool { method GetResult (line 235) | func (p *UnaryTestResult) GetResult() interface{} { function clientStreamingTestHandler (line 239) | func clientStreamingTestHandler(ctx context.Context, handler interface{}... type mockClientStreamingTestClient (line 249) | type mockClientStreamingTestClient struct method DoFinish (line 253) | func (x *mockClientStreamingTestClient) DoFinish(err error) { method Send (line 260) | func (x *mockClientStreamingTestClient) Send(m *MockReq) error { method CloseAndRecv (line 263) | func (x *mockClientStreamingTestClient) CloseAndRecv() (*MockResp, err... type mockClientStreamingTestServer (line 271) | type mockClientStreamingTestServer struct method SendAndClose (line 275) | func (x *mockClientStreamingTestServer) SendAndClose(m *MockResp) error { method Recv (line 279) | func (x *mockClientStreamingTestServer) Recv() (*MockReq, error) { function newClientStreamingTestArgs (line 284) | func newClientStreamingTestArgs() interface{} { function newClientStreamingTestResult (line 288) | func newClientStreamingTestResult() interface{} { type ClientStreamingTestArgs (line 292) | type ClientStreamingTestArgs struct method Marshal (line 296) | func (p *ClientStreamingTestArgs) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 303) | func (p *ClientStreamingTestArgs) Unmarshal(in []byte) error { method GetReq (line 314) | func (p *ClientStreamingTestArgs) GetReq() *MockReq { method IsSetReq (line 321) | func (p *ClientStreamingTestArgs) IsSetReq() bool { method GetFirstArgument (line 325) | func (p *ClientStreamingTestArgs) GetFirstArgument() interface{} { type ClientStreamingTestResult (line 329) | type ClientStreamingTestResult struct method Marshal (line 335) | func (p *ClientStreamingTestResult) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 342) | func (p *ClientStreamingTestResult) Unmarshal(in []byte) error { method GetSuccess (line 351) | func (p *ClientStreamingTestResult) GetSuccess() *MockResp { method SetSuccess (line 358) | func (p *ClientStreamingTestResult) SetSuccess(x interface{}) { method IsSetSuccess (line 362) | func (p *ClientStreamingTestResult) IsSetSuccess() bool { method GetResult (line 366) | func (p *ClientStreamingTestResult) GetResult() interface{} { function serverStreamingTestHandler (line 370) | func serverStreamingTestHandler(ctx context.Context, handler interface{}... type mockServerStreamingTestClient (line 384) | type mockServerStreamingTestClient struct method DoFinish (line 388) | func (x *mockServerStreamingTestClient) DoFinish(err error) { method Recv (line 395) | func (x *mockServerStreamingTestClient) Recv() (*MockResp, error) { type mockServerStreamingTestServer (line 400) | type mockServerStreamingTestServer struct method Send (line 404) | func (x *mockServerStreamingTestServer) Send(m *MockResp) error { function newServerStreamingTestArgs (line 408) | func newServerStreamingTestArgs() interface{} { function newServerStreamingTestResult (line 412) | func newServerStreamingTestResult() interface{} { type ServerStreamingTestArgs (line 416) | type ServerStreamingTestArgs struct method Marshal (line 420) | func (p *ServerStreamingTestArgs) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 427) | func (p *ServerStreamingTestArgs) Unmarshal(in []byte) error { method GetReq (line 438) | func (p *ServerStreamingTestArgs) GetReq() *MockReq { method IsSetReq (line 445) | func (p *ServerStreamingTestArgs) IsSetReq() bool { method GetFirstArgument (line 449) | func (p *ServerStreamingTestArgs) GetFirstArgument() interface{} { type ServerStreamingTestResult (line 453) | type ServerStreamingTestResult struct method Marshal (line 459) | func (p *ServerStreamingTestResult) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 466) | func (p *ServerStreamingTestResult) Unmarshal(in []byte) error { method GetSuccess (line 475) | func (p *ServerStreamingTestResult) GetSuccess() *MockResp { method SetSuccess (line 482) | func (p *ServerStreamingTestResult) SetSuccess(x interface{}) { method IsSetSuccess (line 486) | func (p *ServerStreamingTestResult) IsSetSuccess() bool { method GetResult (line 490) | func (p *ServerStreamingTestResult) GetResult() interface{} { function bidirectionalStreamingTestHandler (line 494) | func bidirectionalStreamingTestHandler(ctx context.Context, handler inte... type mockBidirectionalStreamingTestClient (line 504) | type mockBidirectionalStreamingTestClient struct method DoFinish (line 508) | func (x *mockBidirectionalStreamingTestClient) DoFinish(err error) { method Send (line 515) | func (x *mockBidirectionalStreamingTestClient) Send(m *MockReq) error { method Recv (line 518) | func (x *mockBidirectionalStreamingTestClient) Recv() (*MockResp, erro... type mockBidirectionalStreamingTestServer (line 523) | type mockBidirectionalStreamingTestServer struct method Send (line 527) | func (x *mockBidirectionalStreamingTestServer) Send(m *MockResp) error { method Recv (line 531) | func (x *mockBidirectionalStreamingTestServer) Recv() (*MockReq, error) { function newBidirectionalStreamingTestArgs (line 536) | func newBidirectionalStreamingTestArgs() interface{} { function newBidirectionalStreamingTestResult (line 540) | func newBidirectionalStreamingTestResult() interface{} { type BidirectionalStreamingTestArgs (line 544) | type BidirectionalStreamingTestArgs struct method Marshal (line 548) | func (p *BidirectionalStreamingTestArgs) Marshal(out []byte) ([]byte, ... method Unmarshal (line 555) | func (p *BidirectionalStreamingTestArgs) Unmarshal(in []byte) error { method GetReq (line 566) | func (p *BidirectionalStreamingTestArgs) GetReq() *MockReq { method IsSetReq (line 573) | func (p *BidirectionalStreamingTestArgs) IsSetReq() bool { method GetFirstArgument (line 577) | func (p *BidirectionalStreamingTestArgs) GetFirstArgument() interface{} { type BidirectionalStreamingTestResult (line 581) | type BidirectionalStreamingTestResult struct method Marshal (line 587) | func (p *BidirectionalStreamingTestResult) Marshal(out []byte) ([]byte... method Unmarshal (line 594) | func (p *BidirectionalStreamingTestResult) Unmarshal(in []byte) error { method GetSuccess (line 603) | func (p *BidirectionalStreamingTestResult) GetSuccess() *MockResp { method SetSuccess (line 610) | func (p *BidirectionalStreamingTestResult) SetSuccess(x interface{}) { method IsSetSuccess (line 614) | func (p *BidirectionalStreamingTestResult) IsSetSuccess() bool { method GetResult (line 618) | func (p *BidirectionalStreamingTestResult) GetResult() interface{} { type kClient (line 622) | type kClient struct method UnaryTest (line 632) | func (p *kClient) UnaryTest(ctx context.Context, Req *MockReq) (r *Moc... method ClientStreamingTest (line 642) | func (p *kClient) ClientStreamingTest(ctx context.Context) (Mock_Clien... method ServerStreamingTest (line 656) | func (p *kClient) ServerStreamingTest(ctx context.Context, req *MockRe... method BidirectionalStreamingTest (line 677) | func (p *kClient) BidirectionalStreamingTest(ctx context.Context) (Moc... function newServiceClient (line 626) | func newServiceClient(c client.Client) *kClient { FILE: internal/mocks/proto/kitex_gen/pbapi/mock/pbapi.pb.go constant _ (line 36) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 38) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type MockReq (line 41) | type MockReq struct method Reset (line 49) | func (x *MockReq) Reset() { method String (line 58) | func (x *MockReq) String() string { method ProtoMessage (line 62) | func (*MockReq) ProtoMessage() {} method ProtoReflect (line 64) | func (x *MockReq) ProtoReflect() protoreflect.Message { method Descriptor (line 77) | func (*MockReq) Descriptor() ([]byte, []int) { method GetMessage (line 81) | func (x *MockReq) GetMessage() string { type MockResp (line 88) | type MockResp struct method Reset (line 96) | func (x *MockResp) Reset() { method String (line 105) | func (x *MockResp) String() string { method ProtoMessage (line 109) | func (*MockResp) ProtoMessage() {} method ProtoReflect (line 111) | func (x *MockResp) ProtoReflect() protoreflect.Message { method Descriptor (line 124) | func (*MockResp) Descriptor() ([]byte, []int) { method GetMessage (line 128) | func (x *MockResp) GetMessage() string { function file_pbapi_proto_rawDescGZIP (line 171) | func file_pbapi_proto_rawDescGZIP() []byte { function init (line 199) | func init() { file_pbapi_proto_init() } function file_pbapi_proto_init (line 200) | func file_pbapi_proto_init() { type Mock (line 254) | type Mock interface type Mock_ClientStreamingTestServer (line 261) | type Mock_ClientStreamingTestServer interface type Mock_ServerStreamingTestServer (line 267) | type Mock_ServerStreamingTestServer interface type Mock_BidirectionalStreamingTestServer (line 272) | type Mock_BidirectionalStreamingTestServer interface FILE: internal/mocks/proto/kitex_gen/pbapi/mock/server.go function NewServer (line 25) | func NewServer(handler Mock, opts ...server.Option) server.Server { function RegisterService (line 37) | func RegisterService(svr server.Server, handler Mock, opts ...server.Reg... FILE: internal/mocks/proxy/proxy.go type MockForwardProxy (line 35) | type MockForwardProxy struct method EXPECT (line 53) | func (m *MockForwardProxy) EXPECT() *MockForwardProxyMockRecorder { method Configure (line 58) | func (m *MockForwardProxy) Configure(arg0 *proxy.Config) error { method ResolveProxyInstance (line 72) | func (m *MockForwardProxy) ResolveProxyInstance(ctx context.Context) e... type MockForwardProxyMockRecorder (line 41) | type MockForwardProxyMockRecorder struct method Configure (line 66) | func (mr *MockForwardProxyMockRecorder) Configure(arg0 interface{}) *g... method ResolveProxyInstance (line 80) | func (mr *MockForwardProxyMockRecorder) ResolveProxyInstance(ctx inter... function NewMockForwardProxy (line 46) | func NewMockForwardProxy(ctrl *gomock.Controller) *MockForwardProxy { type MockWithMiddleware (line 86) | type MockWithMiddleware struct method EXPECT (line 104) | func (m *MockWithMiddleware) EXPECT() *MockWithMiddlewareMockRecorder { method ProxyMiddleware (line 109) | func (m *MockWithMiddleware) ProxyMiddleware() endpoint.Middleware { type MockWithMiddlewareMockRecorder (line 92) | type MockWithMiddlewareMockRecorder struct method ProxyMiddleware (line 117) | func (mr *MockWithMiddlewareMockRecorder) ProxyMiddleware() *gomock.Ca... function NewMockWithMiddleware (line 97) | func NewMockWithMiddleware(ctrl *gomock.Controller) *MockWithMiddleware { type MockReverseProxy (line 123) | type MockReverseProxy struct method EXPECT (line 141) | func (m *MockReverseProxy) EXPECT() *MockReverseProxyMockRecorder { method Replace (line 146) | func (m *MockReverseProxy) Replace(arg0 net.Addr) (net.Addr, error) { type MockReverseProxyMockRecorder (line 129) | type MockReverseProxyMockRecorder struct method Replace (line 155) | func (mr *MockReverseProxyMockRecorder) Replace(arg0 interface{}) *gom... function NewMockReverseProxy (line 134) | func NewMockReverseProxy(ctrl *gomock.Controller) *MockReverseProxy { type MockContextHandler (line 161) | type MockContextHandler struct method EXPECT (line 179) | func (m *MockContextHandler) EXPECT() *MockContextHandlerMockRecorder { method HandleContext (line 184) | func (m *MockContextHandler) HandleContext(arg0 context.Context) conte... type MockContextHandlerMockRecorder (line 167) | type MockContextHandlerMockRecorder struct method HandleContext (line 192) | func (mr *MockContextHandlerMockRecorder) HandleContext(arg0 interface... function NewMockContextHandler (line 172) | func NewMockContextHandler(ctrl *gomock.Controller) *MockContextHandler { FILE: internal/mocks/remote/bytebuf.go type MockByteBufferFactory (line 33) | type MockByteBufferFactory struct method EXPECT (line 51) | func (m *MockByteBufferFactory) EXPECT() *MockByteBufferFactoryMockRec... method NewByteBuffer (line 56) | func (m *MockByteBufferFactory) NewByteBuffer(conn net.Conn) (remote.B... type MockByteBufferFactoryMockRecorder (line 39) | type MockByteBufferFactoryMockRecorder struct method NewByteBuffer (line 65) | func (mr *MockByteBufferFactoryMockRecorder) NewByteBuffer(conn interf... function NewMockByteBufferFactory (line 44) | func NewMockByteBufferFactory(ctrl *gomock.Controller) *MockByteBufferFa... type MockNocopyWrite (line 71) | type MockNocopyWrite struct method EXPECT (line 89) | func (m *MockNocopyWrite) EXPECT() *MockNocopyWriteMockRecorder { method MallocAck (line 94) | func (m *MockNocopyWrite) MallocAck(n int) error { method WriteDirect (line 108) | func (m *MockNocopyWrite) WriteDirect(buf []byte, remainCap int) error { type MockNocopyWriteMockRecorder (line 77) | type MockNocopyWriteMockRecorder struct method MallocAck (line 102) | func (mr *MockNocopyWriteMockRecorder) MallocAck(n interface{}) *gomoc... method WriteDirect (line 116) | func (mr *MockNocopyWriteMockRecorder) WriteDirect(buf, remainCap inte... function NewMockNocopyWrite (line 82) | func NewMockNocopyWrite(ctrl *gomock.Controller) *MockNocopyWrite { type MockFrameWrite (line 122) | type MockFrameWrite struct method EXPECT (line 140) | func (m *MockFrameWrite) EXPECT() *MockFrameWriteMockRecorder { method WriteData (line 145) | func (m *MockFrameWrite) WriteData(buf []byte) error { method WriteHeader (line 159) | func (m *MockFrameWrite) WriteHeader(buf []byte) error { type MockFrameWriteMockRecorder (line 128) | type MockFrameWriteMockRecorder struct method WriteData (line 153) | func (mr *MockFrameWriteMockRecorder) WriteData(buf interface{}) *gomo... method WriteHeader (line 167) | func (mr *MockFrameWriteMockRecorder) WriteHeader(buf interface{}) *go... function NewMockFrameWrite (line 133) | func NewMockFrameWrite(ctrl *gomock.Controller) *MockFrameWrite { type MockByteBuffer (line 173) | type MockByteBuffer struct method EXPECT (line 191) | func (m *MockByteBuffer) EXPECT() *MockByteBufferMockRecorder { method AppendBuffer (line 196) | func (m *MockByteBuffer) AppendBuffer(buf remote.ByteBuffer) error { method Bytes (line 210) | func (m *MockByteBuffer) Bytes() ([]byte, error) { method Flush (line 225) | func (m *MockByteBuffer) Flush() error { method Malloc (line 239) | func (m *MockByteBuffer) Malloc(n int) ([]byte, error) { method NewBuffer (line 254) | func (m *MockByteBuffer) NewBuffer() remote.ByteBuffer { method Next (line 268) | func (m *MockByteBuffer) Next(n int) ([]byte, error) { method Peek (line 283) | func (m *MockByteBuffer) Peek(n int) ([]byte, error) { method Read (line 298) | func (m *MockByteBuffer) Read(p []byte) (int, error) { method ReadBinary (line 313) | func (m *MockByteBuffer) ReadBinary(p []byte) (int, error) { method ReadLen (line 328) | func (m *MockByteBuffer) ReadLen() int { method ReadString (line 342) | func (m *MockByteBuffer) ReadString(n int) (string, error) { method ReadableLen (line 357) | func (m *MockByteBuffer) ReadableLen() int { method Release (line 371) | func (m *MockByteBuffer) Release(e error) error { method Skip (line 385) | func (m *MockByteBuffer) Skip(n int) error { method Write (line 399) | func (m *MockByteBuffer) Write(p []byte) (int, error) { method WriteBinary (line 414) | func (m *MockByteBuffer) WriteBinary(b []byte) (int, error) { method WriteString (line 429) | func (m *MockByteBuffer) WriteString(s string) (int, error) { method WrittenLen (line 444) | func (m *MockByteBuffer) WrittenLen() int { type MockByteBufferMockRecorder (line 179) | type MockByteBufferMockRecorder struct method AppendBuffer (line 204) | func (mr *MockByteBufferMockRecorder) AppendBuffer(buf interface{}) *g... method Bytes (line 219) | func (mr *MockByteBufferMockRecorder) Bytes() *gomock.Call { method Flush (line 233) | func (mr *MockByteBufferMockRecorder) Flush() *gomock.Call { method Malloc (line 248) | func (mr *MockByteBufferMockRecorder) Malloc(n interface{}) *gomock.Ca... method NewBuffer (line 262) | func (mr *MockByteBufferMockRecorder) NewBuffer() *gomock.Call { method Next (line 277) | func (mr *MockByteBufferMockRecorder) Next(n interface{}) *gomock.Call { method Peek (line 292) | func (mr *MockByteBufferMockRecorder) Peek(n interface{}) *gomock.Call { method Read (line 307) | func (mr *MockByteBufferMockRecorder) Read(p interface{}) *gomock.Call { method ReadBinary (line 322) | func (mr *MockByteBufferMockRecorder) ReadBinary(p interface{}) *gomoc... method ReadLen (line 336) | func (mr *MockByteBufferMockRecorder) ReadLen() *gomock.Call { method ReadString (line 351) | func (mr *MockByteBufferMockRecorder) ReadString(n interface{}) *gomoc... method ReadableLen (line 365) | func (mr *MockByteBufferMockRecorder) ReadableLen() *gomock.Call { method Release (line 379) | func (mr *MockByteBufferMockRecorder) Release(e interface{}) *gomock.C... method Skip (line 393) | func (mr *MockByteBufferMockRecorder) Skip(n interface{}) *gomock.Call { method Write (line 408) | func (mr *MockByteBufferMockRecorder) Write(p interface{}) *gomock.Call { method WriteBinary (line 423) | func (mr *MockByteBufferMockRecorder) WriteBinary(b interface{}) *gomo... method WriteString (line 438) | func (mr *MockByteBufferMockRecorder) WriteString(s interface{}) *gomo... method WrittenLen (line 452) | func (mr *MockByteBufferMockRecorder) WrittenLen() *gomock.Call { function NewMockByteBuffer (line 184) | func NewMockByteBuffer(ctrl *gomock.Controller) *MockByteBuffer { FILE: internal/mocks/remote/codec.go type MockCodec (line 33) | type MockCodec struct method EXPECT (line 51) | func (m *MockCodec) EXPECT() *MockCodecMockRecorder { method Decode (line 56) | func (m *MockCodec) Decode(ctx context.Context, msg remote.Message, in... method Encode (line 70) | func (m *MockCodec) Encode(ctx context.Context, msg remote.Message, ou... method Name (line 84) | func (m *MockCodec) Name() string { type MockCodecMockRecorder (line 39) | type MockCodecMockRecorder struct method Decode (line 64) | func (mr *MockCodecMockRecorder) Decode(ctx, msg, in interface{}) *gom... method Encode (line 78) | func (mr *MockCodecMockRecorder) Encode(ctx, msg, out interface{}) *go... method Name (line 92) | func (mr *MockCodecMockRecorder) Name() *gomock.Call { function NewMockCodec (line 44) | func NewMockCodec(ctrl *gomock.Controller) *MockCodec { type MockMetaEncoder (line 98) | type MockMetaEncoder struct method EXPECT (line 116) | func (m *MockMetaEncoder) EXPECT() *MockMetaEncoderMockRecorder { method EncodeMetaAndPayload (line 121) | func (m *MockMetaEncoder) EncodeMetaAndPayload(ctx context.Context, ms... method EncodePayload (line 135) | func (m *MockMetaEncoder) EncodePayload(ctx context.Context, msg remot... type MockMetaEncoderMockRecorder (line 104) | type MockMetaEncoderMockRecorder struct method EncodeMetaAndPayload (line 129) | func (mr *MockMetaEncoderMockRecorder) EncodeMetaAndPayload(ctx, msg, ... method EncodePayload (line 143) | func (mr *MockMetaEncoderMockRecorder) EncodePayload(ctx, msg, out int... function NewMockMetaEncoder (line 109) | func NewMockMetaEncoder(ctrl *gomock.Controller) *MockMetaEncoder { type MockMetaDecoder (line 149) | type MockMetaDecoder struct method EXPECT (line 167) | func (m *MockMetaDecoder) EXPECT() *MockMetaDecoderMockRecorder { method DecodeMeta (line 172) | func (m *MockMetaDecoder) DecodeMeta(ctx context.Context, msg remote.M... method DecodePayload (line 186) | func (m *MockMetaDecoder) DecodePayload(ctx context.Context, msg remot... type MockMetaDecoderMockRecorder (line 155) | type MockMetaDecoderMockRecorder struct method DecodeMeta (line 180) | func (mr *MockMetaDecoderMockRecorder) DecodeMeta(ctx, msg, in interfa... method DecodePayload (line 194) | func (mr *MockMetaDecoderMockRecorder) DecodePayload(ctx, msg, in inte... function NewMockMetaDecoder (line 160) | func NewMockMetaDecoder(ctrl *gomock.Controller) *MockMetaDecoder { FILE: internal/mocks/remote/conn_wrapper.go type MockConnReleaser (line 32) | type MockConnReleaser struct method EXPECT (line 50) | func (m *MockConnReleaser) EXPECT() *MockConnReleaserMockRecorder { method ReleaseConn (line 55) | func (m *MockConnReleaser) ReleaseConn(err error, ri rpcinfo.RPCInfo) { type MockConnReleaserMockRecorder (line 38) | type MockConnReleaserMockRecorder struct method ReleaseConn (line 61) | func (mr *MockConnReleaserMockRecorder) ReleaseConn(err, ri interface{... function NewMockConnReleaser (line 43) | func NewMockConnReleaser(ctrl *gomock.Controller) *MockConnReleaser { FILE: internal/mocks/remote/connpool.go type MockConnPool (line 34) | type MockConnPool struct method EXPECT (line 52) | func (m *MockConnPool) EXPECT() *MockConnPoolMockRecorder { method Close (line 57) | func (m *MockConnPool) Close() error { method Discard (line 71) | func (m *MockConnPool) Discard(conn net.Conn) error { method Get (line 85) | func (m *MockConnPool) Get(ctx context.Context, network, address strin... method Put (line 100) | func (m *MockConnPool) Put(conn net.Conn) error { type MockConnPoolMockRecorder (line 40) | type MockConnPoolMockRecorder struct method Close (line 65) | func (mr *MockConnPoolMockRecorder) Close() *gomock.Call { method Discard (line 79) | func (mr *MockConnPoolMockRecorder) Discard(conn interface{}) *gomock.... method Get (line 94) | func (mr *MockConnPoolMockRecorder) Get(ctx, network, address, opt int... method Put (line 108) | func (mr *MockConnPoolMockRecorder) Put(conn interface{}) *gomock.Call { function NewMockConnPool (line 45) | func NewMockConnPool(ctrl *gomock.Controller) *MockConnPool { type MockLongConnPool (line 114) | type MockLongConnPool struct method EXPECT (line 132) | func (m *MockLongConnPool) EXPECT() *MockLongConnPoolMockRecorder { method Clean (line 137) | func (m *MockLongConnPool) Clean(network, address string) { method Close (line 149) | func (m *MockLongConnPool) Close() error { method Discard (line 163) | func (m *MockLongConnPool) Discard(conn net.Conn) error { method Get (line 177) | func (m *MockLongConnPool) Get(ctx context.Context, network, address s... method Put (line 192) | func (m *MockLongConnPool) Put(conn net.Conn) error { type MockLongConnPoolMockRecorder (line 120) | type MockLongConnPoolMockRecorder struct method Clean (line 143) | func (mr *MockLongConnPoolMockRecorder) Clean(network, address interfa... method Close (line 157) | func (mr *MockLongConnPoolMockRecorder) Close() *gomock.Call { method Discard (line 171) | func (mr *MockLongConnPoolMockRecorder) Discard(conn interface{}) *gom... method Get (line 186) | func (mr *MockLongConnPoolMockRecorder) Get(ctx, network, address, opt... method Put (line 200) | func (mr *MockLongConnPoolMockRecorder) Put(conn interface{}) *gomock.... function NewMockLongConnPool (line 125) | func NewMockLongConnPool(ctrl *gomock.Controller) *MockLongConnPool { type MockConnPoolReporter (line 206) | type MockConnPoolReporter struct method EXPECT (line 224) | func (m *MockConnPoolReporter) EXPECT() *MockConnPoolReporterMockRecor... method EnableReporter (line 229) | func (m *MockConnPoolReporter) EnableReporter() { type MockConnPoolReporterMockRecorder (line 212) | type MockConnPoolReporterMockRecorder struct method EnableReporter (line 235) | func (mr *MockConnPoolReporterMockRecorder) EnableReporter() *gomock.C... function NewMockConnPoolReporter (line 217) | func NewMockConnPoolReporter(ctrl *gomock.Controller) *MockConnPoolRepor... type MockRawConn (line 241) | type MockRawConn struct method EXPECT (line 259) | func (m *MockRawConn) EXPECT() *MockRawConnMockRecorder { method RawConn (line 264) | func (m *MockRawConn) RawConn() net.Conn { type MockRawConnMockRecorder (line 247) | type MockRawConnMockRecorder struct method RawConn (line 272) | func (mr *MockRawConnMockRecorder) RawConn() *gomock.Call { function NewMockRawConn (line 252) | func NewMockRawConn(ctrl *gomock.Controller) *MockRawConn { type MockIsActive (line 278) | type MockIsActive struct method EXPECT (line 296) | func (m *MockIsActive) EXPECT() *MockIsActiveMockRecorder { method IsActive (line 301) | func (m *MockIsActive) IsActive() bool { type MockIsActiveMockRecorder (line 284) | type MockIsActiveMockRecorder struct method IsActive (line 309) | func (mr *MockIsActiveMockRecorder) IsActive() *gomock.Call { function NewMockIsActive (line 289) | func NewMockIsActive(ctrl *gomock.Controller) *MockIsActive { FILE: internal/mocks/remote/dialer.go type MockDialer (line 33) | type MockDialer struct method EXPECT (line 51) | func (m *MockDialer) EXPECT() *MockDialerMockRecorder { method DialTimeout (line 56) | func (m *MockDialer) DialTimeout(network, address string, timeout time... type MockDialerMockRecorder (line 39) | type MockDialerMockRecorder struct method DialTimeout (line 65) | func (mr *MockDialerMockRecorder) DialTimeout(network, address, timeou... function NewMockDialer (line 44) | func NewMockDialer(ctrl *gomock.Controller) *MockDialer { FILE: internal/mocks/remote/payload_codec.go type MockPayloadCodec (line 33) | type MockPayloadCodec struct method EXPECT (line 51) | func (m *MockPayloadCodec) EXPECT() *MockPayloadCodecMockRecorder { method Marshal (line 56) | func (m *MockPayloadCodec) Marshal(ctx context.Context, message remote... method Name (line 70) | func (m *MockPayloadCodec) Name() string { method Unmarshal (line 84) | func (m *MockPayloadCodec) Unmarshal(ctx context.Context, message remo... type MockPayloadCodecMockRecorder (line 39) | type MockPayloadCodecMockRecorder struct method Marshal (line 64) | func (mr *MockPayloadCodecMockRecorder) Marshal(ctx, message, out inte... method Name (line 78) | func (mr *MockPayloadCodecMockRecorder) Name() *gomock.Call { method Unmarshal (line 92) | func (mr *MockPayloadCodecMockRecorder) Unmarshal(ctx, message, in int... function NewMockPayloadCodec (line 44) | func NewMockPayloadCodec(ctrl *gomock.Controller) *MockPayloadCodec { FILE: internal/mocks/remote/servicesearcher.go type MockSvcSearcher (line 24) | type MockSvcSearcher struct method SearchService (line 62) | func (s *MockSvcSearcher) SearchService(svcName, methodName string, st... function NewMockSvcSearcher (line 30) | func NewMockSvcSearcher(svcMap map[string]*serviceinfo.ServiceInfo) *Moc... function NewDefaultSvcSearcher (line 47) | func NewDefaultSvcSearcher() *MockSvcSearcher { FILE: internal/mocks/remote/trans_handler.go type MockClientTransHandlerFactory (line 35) | type MockClientTransHandlerFactory struct method EXPECT (line 53) | func (m *MockClientTransHandlerFactory) EXPECT() *MockClientTransHandl... method NewTransHandler (line 58) | func (m *MockClientTransHandlerFactory) NewTransHandler(opt *remote.Cl... type MockClientTransHandlerFactoryMockRecorder (line 41) | type MockClientTransHandlerFactoryMockRecorder struct method NewTransHandler (line 67) | func (mr *MockClientTransHandlerFactoryMockRecorder) NewTransHandler(o... function NewMockClientTransHandlerFactory (line 46) | func NewMockClientTransHandlerFactory(ctrl *gomock.Controller) *MockClie... type MockServerTransHandlerFactory (line 73) | type MockServerTransHandlerFactory struct method EXPECT (line 91) | func (m *MockServerTransHandlerFactory) EXPECT() *MockServerTransHandl... method NewTransHandler (line 96) | func (m *MockServerTransHandlerFactory) NewTransHandler(opt *remote.Se... type MockServerTransHandlerFactoryMockRecorder (line 79) | type MockServerTransHandlerFactoryMockRecorder struct method NewTransHandler (line 105) | func (mr *MockServerTransHandlerFactoryMockRecorder) NewTransHandler(o... function NewMockServerTransHandlerFactory (line 84) | func NewMockServerTransHandlerFactory(ctrl *gomock.Controller) *MockServ... type MockTransReadWriter (line 111) | type MockTransReadWriter struct method EXPECT (line 129) | func (m *MockTransReadWriter) EXPECT() *MockTransReadWriterMockRecorder { method Read (line 134) | func (m *MockTransReadWriter) Read(ctx context.Context, conn net.Conn,... method Write (line 149) | func (m *MockTransReadWriter) Write(ctx context.Context, conn net.Conn... type MockTransReadWriterMockRecorder (line 117) | type MockTransReadWriterMockRecorder struct method Read (line 143) | func (mr *MockTransReadWriterMockRecorder) Read(ctx, conn, msg interfa... method Write (line 158) | func (mr *MockTransReadWriterMockRecorder) Write(ctx, conn, send inter... function NewMockTransReadWriter (line 122) | func NewMockTransReadWriter(ctrl *gomock.Controller) *MockTransReadWriter { type MockTransHandler (line 164) | type MockTransHandler struct method EXPECT (line 182) | func (m *MockTransHandler) EXPECT() *MockTransHandlerMockRecorder { method OnError (line 187) | func (m *MockTransHandler) OnError(ctx context.Context, err error, con... method OnInactive (line 199) | func (m *MockTransHandler) OnInactive(ctx context.Context, conn net.Co... method OnMessage (line 211) | func (m *MockTransHandler) OnMessage(ctx context.Context, args, result... method Read (line 226) | func (m *MockTransHandler) Read(ctx context.Context, conn net.Conn, ms... method SetPipeline (line 241) | func (m *MockTransHandler) SetPipeline(pipeline *remote.TransPipeline) { method Write (line 253) | func (m *MockTransHandler) Write(ctx context.Context, conn net.Conn, s... type MockTransHandlerMockRecorder (line 170) | type MockTransHandlerMockRecorder struct method OnError (line 193) | func (mr *MockTransHandlerMockRecorder) OnError(ctx, err, conn interfa... method OnInactive (line 205) | func (mr *MockTransHandlerMockRecorder) OnInactive(ctx, conn interface... method OnMessage (line 220) | func (mr *MockTransHandlerMockRecorder) OnMessage(ctx, args, result in... method Read (line 235) | func (mr *MockTransHandlerMockRecorder) Read(ctx, conn, msg interface{... method SetPipeline (line 247) | func (mr *MockTransHandlerMockRecorder) SetPipeline(pipeline interface... method Write (line 262) | func (mr *MockTransHandlerMockRecorder) Write(ctx, conn, send interfac... function NewMockTransHandler (line 175) | func NewMockTransHandler(ctrl *gomock.Controller) *MockTransHandler { type MockClientTransHandler (line 268) | type MockClientTransHandler struct method EXPECT (line 286) | func (m *MockClientTransHandler) EXPECT() *MockClientTransHandlerMockR... method OnError (line 291) | func (m *MockClientTransHandler) OnError(ctx context.Context, err erro... method OnInactive (line 303) | func (m *MockClientTransHandler) OnInactive(ctx context.Context, conn ... method OnMessage (line 315) | func (m *MockClientTransHandler) OnMessage(ctx context.Context, args, ... method Read (line 330) | func (m *MockClientTransHandler) Read(ctx context.Context, conn net.Co... method SetPipeline (line 345) | func (m *MockClientTransHandler) SetPipeline(pipeline *remote.TransPip... method Write (line 357) | func (m *MockClientTransHandler) Write(ctx context.Context, conn net.C... type MockClientTransHandlerMockRecorder (line 274) | type MockClientTransHandlerMockRecorder struct method OnError (line 297) | func (mr *MockClientTransHandlerMockRecorder) OnError(ctx, err, conn i... method OnInactive (line 309) | func (mr *MockClientTransHandlerMockRecorder) OnInactive(ctx, conn int... method OnMessage (line 324) | func (mr *MockClientTransHandlerMockRecorder) OnMessage(ctx, args, res... method Read (line 339) | func (mr *MockClientTransHandlerMockRecorder) Read(ctx, conn, msg inte... method SetPipeline (line 351) | func (mr *MockClientTransHandlerMockRecorder) SetPipeline(pipeline int... method Write (line 366) | func (mr *MockClientTransHandlerMockRecorder) Write(ctx, conn, send in... function NewMockClientTransHandler (line 279) | func NewMockClientTransHandler(ctrl *gomock.Controller) *MockClientTrans... type MockServerTransHandler (line 372) | type MockServerTransHandler struct method EXPECT (line 390) | func (m *MockServerTransHandler) EXPECT() *MockServerTransHandlerMockR... method OnActive (line 395) | func (m *MockServerTransHandler) OnActive(ctx context.Context, conn ne... method OnError (line 410) | func (m *MockServerTransHandler) OnError(ctx context.Context, err erro... method OnInactive (line 422) | func (m *MockServerTransHandler) OnInactive(ctx context.Context, conn ... method OnMessage (line 434) | func (m *MockServerTransHandler) OnMessage(ctx context.Context, args, ... method OnRead (line 449) | func (m *MockServerTransHandler) OnRead(ctx context.Context, conn net.... method Read (line 463) | func (m *MockServerTransHandler) Read(ctx context.Context, conn net.Co... method SetPipeline (line 478) | func (m *MockServerTransHandler) SetPipeline(pipeline *remote.TransPip... method Write (line 490) | func (m *MockServerTransHandler) Write(ctx context.Context, conn net.C... type MockServerTransHandlerMockRecorder (line 378) | type MockServerTransHandlerMockRecorder struct method OnActive (line 404) | func (mr *MockServerTransHandlerMockRecorder) OnActive(ctx, conn inter... method OnError (line 416) | func (mr *MockServerTransHandlerMockRecorder) OnError(ctx, err, conn i... method OnInactive (line 428) | func (mr *MockServerTransHandlerMockRecorder) OnInactive(ctx, conn int... method OnMessage (line 443) | func (mr *MockServerTransHandlerMockRecorder) OnMessage(ctx, args, res... method OnRead (line 457) | func (mr *MockServerTransHandlerMockRecorder) OnRead(ctx, conn interfa... method Read (line 472) | func (mr *MockServerTransHandlerMockRecorder) Read(ctx, conn, msg inte... method SetPipeline (line 484) | func (mr *MockServerTransHandlerMockRecorder) SetPipeline(pipeline int... method Write (line 499) | func (mr *MockServerTransHandlerMockRecorder) Write(ctx, conn, send in... function NewMockServerTransHandler (line 383) | func NewMockServerTransHandler(ctrl *gomock.Controller) *MockServerTrans... type MockInvokeHandleFuncSetter (line 505) | type MockInvokeHandleFuncSetter struct method EXPECT (line 523) | func (m *MockInvokeHandleFuncSetter) EXPECT() *MockInvokeHandleFuncSet... method SetInvokeHandleFunc (line 528) | func (m *MockInvokeHandleFuncSetter) SetInvokeHandleFunc(inkHdlFunc en... type MockInvokeHandleFuncSetterMockRecorder (line 511) | type MockInvokeHandleFuncSetterMockRecorder struct method SetInvokeHandleFunc (line 534) | func (mr *MockInvokeHandleFuncSetterMockRecorder) SetInvokeHandleFunc(... function NewMockInvokeHandleFuncSetter (line 516) | func NewMockInvokeHandleFuncSetter(ctrl *gomock.Controller) *MockInvokeH... type MockGracefulShutdown (line 540) | type MockGracefulShutdown struct method EXPECT (line 558) | func (m *MockGracefulShutdown) EXPECT() *MockGracefulShutdownMockRecor... method GracefulShutdown (line 563) | func (m *MockGracefulShutdown) GracefulShutdown(ctx context.Context) e... type MockGracefulShutdownMockRecorder (line 546) | type MockGracefulShutdownMockRecorder struct method GracefulShutdown (line 571) | func (mr *MockGracefulShutdownMockRecorder) GracefulShutdown(ctx inter... function NewMockGracefulShutdown (line 551) | func NewMockGracefulShutdown(ctrl *gomock.Controller) *MockGracefulShutd... FILE: internal/mocks/remote/trans_meta.go type MockMetaHandler (line 33) | type MockMetaHandler struct method EXPECT (line 51) | func (m *MockMetaHandler) EXPECT() *MockMetaHandlerMockRecorder { method ReadMeta (line 56) | func (m *MockMetaHandler) ReadMeta(ctx context.Context, msg remote.Mes... method WriteMeta (line 71) | func (m *MockMetaHandler) WriteMeta(ctx context.Context, msg remote.Me... type MockMetaHandlerMockRecorder (line 39) | type MockMetaHandlerMockRecorder struct method ReadMeta (line 65) | func (mr *MockMetaHandlerMockRecorder) ReadMeta(ctx, msg interface{}) ... method WriteMeta (line 80) | func (mr *MockMetaHandlerMockRecorder) WriteMeta(ctx, msg interface{})... function NewMockMetaHandler (line 44) | func NewMockMetaHandler(ctrl *gomock.Controller) *MockMetaHandler { type MockStreamingMetaHandler (line 86) | type MockStreamingMetaHandler struct method EXPECT (line 104) | func (m *MockStreamingMetaHandler) EXPECT() *MockStreamingMetaHandlerM... method OnConnectStream (line 109) | func (m *MockStreamingMetaHandler) OnConnectStream(ctx context.Context... method OnReadStream (line 124) | func (m *MockStreamingMetaHandler) OnReadStream(ctx context.Context) (... type MockStreamingMetaHandlerMockRecorder (line 92) | type MockStreamingMetaHandlerMockRecorder struct method OnConnectStream (line 118) | func (mr *MockStreamingMetaHandlerMockRecorder) OnConnectStream(ctx in... method OnReadStream (line 133) | func (mr *MockStreamingMetaHandlerMockRecorder) OnReadStream(ctx inter... function NewMockStreamingMetaHandler (line 97) | func NewMockStreamingMetaHandler(ctrl *gomock.Controller) *MockStreaming... FILE: internal/mocks/remote/trans_pipeline.go type MockBoundHandler (line 34) | type MockBoundHandler struct method EXPECT (line 52) | func (m *MockBoundHandler) EXPECT() *MockBoundHandlerMockRecorder { type MockBoundHandlerMockRecorder (line 40) | type MockBoundHandlerMockRecorder struct function NewMockBoundHandler (line 45) | func NewMockBoundHandler(ctrl *gomock.Controller) *MockBoundHandler { type MockOutboundHandler (line 57) | type MockOutboundHandler struct method EXPECT (line 75) | func (m *MockOutboundHandler) EXPECT() *MockOutboundHandlerMockRecorder { method Write (line 80) | func (m *MockOutboundHandler) Write(ctx context.Context, conn net.Conn... type MockOutboundHandlerMockRecorder (line 63) | type MockOutboundHandlerMockRecorder struct method Write (line 89) | func (mr *MockOutboundHandlerMockRecorder) Write(ctx, conn, send inter... function NewMockOutboundHandler (line 68) | func NewMockOutboundHandler(ctrl *gomock.Controller) *MockOutboundHandler { type MockInboundHandler (line 95) | type MockInboundHandler struct method EXPECT (line 113) | func (m *MockInboundHandler) EXPECT() *MockInboundHandlerMockRecorder { method OnActive (line 118) | func (m *MockInboundHandler) OnActive(ctx context.Context, conn net.Co... method OnInactive (line 133) | func (m *MockInboundHandler) OnInactive(ctx context.Context, conn net.... method OnMessage (line 147) | func (m *MockInboundHandler) OnMessage(ctx context.Context, args, resu... method OnRead (line 162) | func (m *MockInboundHandler) OnRead(ctx context.Context, conn net.Conn... type MockInboundHandlerMockRecorder (line 101) | type MockInboundHandlerMockRecorder struct method OnActive (line 127) | func (mr *MockInboundHandlerMockRecorder) OnActive(ctx, conn interface... method OnInactive (line 141) | func (mr *MockInboundHandlerMockRecorder) OnInactive(ctx, conn interfa... method OnMessage (line 156) | func (mr *MockInboundHandlerMockRecorder) OnMessage(ctx, args, result ... method OnRead (line 171) | func (mr *MockInboundHandlerMockRecorder) OnRead(ctx, conn interface{}... function NewMockInboundHandler (line 106) | func NewMockInboundHandler(ctrl *gomock.Controller) *MockInboundHandler { type MockDuplexBoundHandler (line 177) | type MockDuplexBoundHandler struct method EXPECT (line 195) | func (m *MockDuplexBoundHandler) EXPECT() *MockDuplexBoundHandlerMockR... method OnActive (line 200) | func (m *MockDuplexBoundHandler) OnActive(ctx context.Context, conn ne... method OnInactive (line 215) | func (m *MockDuplexBoundHandler) OnInactive(ctx context.Context, conn ... method OnMessage (line 229) | func (m *MockDuplexBoundHandler) OnMessage(ctx context.Context, args, ... method OnRead (line 244) | func (m *MockDuplexBoundHandler) OnRead(ctx context.Context, conn net.... method Write (line 259) | func (m *MockDuplexBoundHandler) Write(ctx context.Context, conn net.C... type MockDuplexBoundHandlerMockRecorder (line 183) | type MockDuplexBoundHandlerMockRecorder struct method OnActive (line 209) | func (mr *MockDuplexBoundHandlerMockRecorder) OnActive(ctx, conn inter... method OnInactive (line 223) | func (mr *MockDuplexBoundHandlerMockRecorder) OnInactive(ctx, conn int... method OnMessage (line 238) | func (mr *MockDuplexBoundHandlerMockRecorder) OnMessage(ctx, args, res... method OnRead (line 253) | func (mr *MockDuplexBoundHandlerMockRecorder) OnRead(ctx, conn interfa... method Write (line 268) | func (mr *MockDuplexBoundHandlerMockRecorder) Write(ctx, conn, send in... function NewMockDuplexBoundHandler (line 188) | func NewMockDuplexBoundHandler(ctrl *gomock.Controller) *MockDuplexBound... FILE: internal/mocks/rpc_info/timeout_provider.go type MockTimeoutProvider (line 32) | type MockTimeoutProvider struct method EXPECT (line 50) | func (m *MockTimeoutProvider) EXPECT() *MockTimeoutProviderMockRecorder { method Timeouts (line 55) | func (m *MockTimeoutProvider) Timeouts(arg0 rpcinfo.RPCInfo) rpcinfo.T... type MockTimeoutProviderMockRecorder (line 38) | type MockTimeoutProviderMockRecorder struct method Timeouts (line 63) | func (mr *MockTimeoutProviderMockRecorder) Timeouts(arg0 interface{}) ... function NewMockTimeoutProvider (line 43) | func NewMockTimeoutProvider(ctrl *gomock.Controller) *MockTimeoutProvider { FILE: internal/mocks/serviceinfo.go constant MockServiceName (line 31) | MockServiceName = "MockService" constant MockService2Name (line 32) | MockService2Name = "MockService2" constant MockService3Name (line 33) | MockService3Name = "MockService3" constant MockMethod (line 34) | MockMethod string = "mock" constant Mock2Method (line 35) | Mock2Method string = "mock2" constant MockExceptionMethod (line 36) | MockExceptionMethod string = "mockException" constant MockErrorMethod (line 37) | MockErrorMethod string = "mockError" constant MockOnewayMethod (line 38) | MockOnewayMethod string = "mockOneway" constant MockStreamingMethod (line 39) | MockStreamingMethod string = "mockStreaming" function ServiceInfo (line 43) | func ServiceInfo() *serviceinfo.ServiceInfo { function newServiceInfo (line 49) | func newServiceInfo() *serviceinfo.ServiceInfo { function Service2Info (line 72) | func Service2Info() *serviceinfo.ServiceInfo { function newService2Info (line 78) | func newService2Info() *serviceinfo.ServiceInfo { function Service3Info (line 94) | func Service3Info() *serviceinfo.ServiceInfo { function newService3Info (line 100) | func newService3Info() *serviceinfo.ServiceInfo { function mockHandler (line 115) | func mockHandler(ctx context.Context, handler, args, result interface{})... function mock2Handler (line 126) | func mock2Handler(ctx context.Context, handler, args, result interface{}... function NewMockArgs (line 137) | func NewMockArgs() interface{} { function NewMockResult (line 141) | func NewMockResult() interface{} { function mockExceptionHandler (line 145) | func mockExceptionHandler(ctx context.Context, handler, args, result int... function mockErrorHandler (line 162) | func mockErrorHandler(ctx context.Context, handler, args, result interfa... function newMockExceptionResult (line 173) | func newMockExceptionResult() interface{} { function mockOnewayHandler (line 177) | func mockOnewayHandler(ctx context.Context, handler, args, result interf... type MyService (line 187) | type MyService interface type myServiceMockArgs (line 195) | type myServiceMockArgs struct method BLength (line 199) | func (p *myServiceMockArgs) BLength() int ... method FastWriteNocopy (line 200) | func (p *myServiceMockArgs) FastWriteNocopy(buf []byte, bw thrift.Noco... method FastRead (line 201) | func (p *myServiceMockArgs) FastRead(buf []byte) (int, error) ... type MyRequest (line 204) | type MyRequest struct type myServiceMockResult (line 208) | type myServiceMockResult struct method BLength (line 212) | func (p *myServiceMockResult) BLength() int ... method FastWriteNocopy (line 213) | func (p *myServiceMockResult) FastWriteNocopy(buf []byte, bw thrift.No... method FastRead (line 214) | func (p *myServiceMockResult) FastRead(buf []byte) (int, error) ... type MyResponse (line 217) | type MyResponse struct type myServiceMockExceptionResult (line 221) | type myServiceMockExceptionResult struct method BLength (line 226) | func (p *myServiceMockExceptionResult) BLength() int { return 1 } method FastWriteNocopy (line 227) | func (p *myServiceMockExceptionResult) FastWriteNocopy(buf []byte, bw ... method FastRead (line 230) | func (p *myServiceMockExceptionResult) FastRead(buf []byte) (int, erro... type MyException (line 233) | type MyException struct method Error (line 237) | func (p *MyException) Error() string { function MyServiceHandler (line 242) | func MyServiceHandler() interface{} { function MockFuncHandler (line 247) | func MockFuncHandler(mf func(ctx context.Context, req *MyRequest) (r *My... type myServiceHandler (line 251) | type myServiceHandler struct method Mock (line 255) | func (h *myServiceHandler) Mock(ctx context.Context, req *MyRequest) (... method Mock2 (line 262) | func (h *myServiceHandler) Mock2(ctx context.Context, req *MyRequest) ... method MockException (line 269) | func (h *myServiceHandler) MockException(ctx context.Context, req *MyR... method MockError (line 273) | func (h *myServiceHandler) MockError(ctx context.Context, req *MyReque... method MockOneway (line 277) | func (h *myServiceHandler) MockOneway(ctx context.Context, req *MyRequ... FILE: internal/mocks/stats/tracer.go type MockTracer (line 32) | type MockTracer struct method EXPECT (line 50) | func (m *MockTracer) EXPECT() *MockTracerMockRecorder { method Finish (line 55) | func (m *MockTracer) Finish(ctx context.Context) { method Start (line 67) | func (m *MockTracer) Start(ctx context.Context) context.Context { type MockTracerMockRecorder (line 38) | type MockTracerMockRecorder struct method Finish (line 61) | func (mr *MockTracerMockRecorder) Finish(ctx interface{}) *gomock.Call { method Start (line 75) | func (mr *MockTracerMockRecorder) Start(ctx interface{}) *gomock.Call { function NewMockTracer (line 43) | func NewMockTracer(ctrl *gomock.Controller) *MockTracer { FILE: internal/mocks/thrift/k-stream.go method FastRead (line 39) | func (p *Request) FastRead(buf []byte) (int, error) { method FastReadField1 (line 95) | func (p *Request) FastReadField1(buf []byte) (int, error) { method FastWrite (line 110) | func (p *Request) FastWrite(buf []byte) int { method FastWriteNocopy (line 114) | func (p *Request) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int { method BLength (line 123) | func (p *Request) BLength() int { method fastWriteField1 (line 132) | func (p *Request) fastWriteField1(buf []byte, w thrift.NocopyWriter) int { method field1Length (line 139) | func (p *Request) field1Length() int { method FastRead (line 146) | func (p *Response) FastRead(buf []byte) (int, error) { method FastReadField1 (line 202) | func (p *Response) FastReadField1(buf []byte) (int, error) { method FastWrite (line 217) | func (p *Response) FastWrite(buf []byte) int { method FastWriteNocopy (line 221) | func (p *Response) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int { method BLength (line 230) | func (p *Response) BLength() int { method fastWriteField1 (line 239) | func (p *Response) fastWriteField1(buf []byte, w thrift.NocopyWriter) int { method field1Length (line 246) | func (p *Response) field1Length() int { method FastRead (line 253) | func (p *TestServiceEchoArgs) FastRead(buf []byte) (int, error) { method FastReadField1 (line 301) | func (p *TestServiceEchoArgs) FastReadField1(buf []byte) (int, error) { method FastWrite (line 314) | func (p *TestServiceEchoArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 318) | func (p *TestServiceEchoArgs) FastWriteNocopy(buf []byte, w thrift.Nocop... method BLength (line 327) | func (p *TestServiceEchoArgs) BLength() int { method fastWriteField1 (line 336) | func (p *TestServiceEchoArgs) fastWriteField1(buf []byte, w thrift.Nocop... method field1Length (line 343) | func (p *TestServiceEchoArgs) field1Length() int { method FastRead (line 350) | func (p *TestServiceEchoResult) FastRead(buf []byte) (int, error) { method FastReadField0 (line 398) | func (p *TestServiceEchoResult) FastReadField0(buf []byte) (int, error) { method FastWrite (line 411) | func (p *TestServiceEchoResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 415) | func (p *TestServiceEchoResult) FastWriteNocopy(buf []byte, w thrift.Noc... method BLength (line 424) | func (p *TestServiceEchoResult) BLength() int { method fastWriteField0 (line 433) | func (p *TestServiceEchoResult) fastWriteField0(buf []byte, w thrift.Noc... method field0Length (line 442) | func (p *TestServiceEchoResult) field0Length() int { method FastRead (line 451) | func (p *TestServiceEchoClientArgs) FastRead(buf []byte) (int, error) { method FastReadField1 (line 499) | func (p *TestServiceEchoClientArgs) FastReadField1(buf []byte) (int, err... method FastWrite (line 512) | func (p *TestServiceEchoClientArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 516) | func (p *TestServiceEchoClientArgs) FastWriteNocopy(buf []byte, w thrift... method BLength (line 525) | func (p *TestServiceEchoClientArgs) BLength() int { method fastWriteField1 (line 534) | func (p *TestServiceEchoClientArgs) fastWriteField1(buf []byte, w thrift... method field1Length (line 541) | func (p *TestServiceEchoClientArgs) field1Length() int { method FastRead (line 548) | func (p *TestServiceEchoClientResult) FastRead(buf []byte) (int, error) { method FastReadField0 (line 596) | func (p *TestServiceEchoClientResult) FastReadField0(buf []byte) (int, e... method FastWrite (line 609) | func (p *TestServiceEchoClientResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 613) | func (p *TestServiceEchoClientResult) FastWriteNocopy(buf []byte, w thri... method BLength (line 622) | func (p *TestServiceEchoClientResult) BLength() int { method fastWriteField0 (line 631) | func (p *TestServiceEchoClientResult) fastWriteField0(buf []byte, w thri... method field0Length (line 640) | func (p *TestServiceEchoClientResult) field0Length() int { method FastRead (line 649) | func (p *TestServiceEchoServerArgs) FastRead(buf []byte) (int, error) { method FastReadField1 (line 697) | func (p *TestServiceEchoServerArgs) FastReadField1(buf []byte) (int, err... method FastWrite (line 710) | func (p *TestServiceEchoServerArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 714) | func (p *TestServiceEchoServerArgs) FastWriteNocopy(buf []byte, w thrift... method BLength (line 723) | func (p *TestServiceEchoServerArgs) BLength() int { method fastWriteField1 (line 732) | func (p *TestServiceEchoServerArgs) fastWriteField1(buf []byte, w thrift... method field1Length (line 739) | func (p *TestServiceEchoServerArgs) field1Length() int { method FastRead (line 746) | func (p *TestServiceEchoServerResult) FastRead(buf []byte) (int, error) { method FastReadField0 (line 794) | func (p *TestServiceEchoServerResult) FastReadField0(buf []byte) (int, e... method FastWrite (line 807) | func (p *TestServiceEchoServerResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 811) | func (p *TestServiceEchoServerResult) FastWriteNocopy(buf []byte, w thri... method BLength (line 820) | func (p *TestServiceEchoServerResult) BLength() int { method fastWriteField0 (line 829) | func (p *TestServiceEchoServerResult) fastWriteField0(buf []byte, w thri... method field0Length (line 838) | func (p *TestServiceEchoServerResult) field0Length() int { method FastRead (line 847) | func (p *TestServiceEchoUnaryArgs) FastRead(buf []byte) (int, error) { method FastReadField1 (line 895) | func (p *TestServiceEchoUnaryArgs) FastReadField1(buf []byte) (int, erro... method FastWrite (line 908) | func (p *TestServiceEchoUnaryArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 912) | func (p *TestServiceEchoUnaryArgs) FastWriteNocopy(buf []byte, w thrift.... method BLength (line 921) | func (p *TestServiceEchoUnaryArgs) BLength() int { method fastWriteField1 (line 930) | func (p *TestServiceEchoUnaryArgs) fastWriteField1(buf []byte, w thrift.... method field1Length (line 937) | func (p *TestServiceEchoUnaryArgs) field1Length() int { method FastRead (line 944) | func (p *TestServiceEchoUnaryResult) FastRead(buf []byte) (int, error) { method FastReadField0 (line 992) | func (p *TestServiceEchoUnaryResult) FastReadField0(buf []byte) (int, er... method FastWrite (line 1005) | func (p *TestServiceEchoUnaryResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 1009) | func (p *TestServiceEchoUnaryResult) FastWriteNocopy(buf []byte, w thrif... method BLength (line 1018) | func (p *TestServiceEchoUnaryResult) BLength() int { method fastWriteField0 (line 1027) | func (p *TestServiceEchoUnaryResult) fastWriteField0(buf []byte, w thrif... method field0Length (line 1036) | func (p *TestServiceEchoUnaryResult) field0Length() int { method FastRead (line 1045) | func (p *TestServiceEchoBizExceptionArgs) FastRead(buf []byte) (int, err... method FastReadField1 (line 1093) | func (p *TestServiceEchoBizExceptionArgs) FastReadField1(buf []byte) (in... method FastWrite (line 1106) | func (p *TestServiceEchoBizExceptionArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 1110) | func (p *TestServiceEchoBizExceptionArgs) FastWriteNocopy(buf []byte, w ... method BLength (line 1119) | func (p *TestServiceEchoBizExceptionArgs) BLength() int { method fastWriteField1 (line 1128) | func (p *TestServiceEchoBizExceptionArgs) fastWriteField1(buf []byte, w ... method field1Length (line 1135) | func (p *TestServiceEchoBizExceptionArgs) field1Length() int { method FastRead (line 1142) | func (p *TestServiceEchoBizExceptionResult) FastRead(buf []byte) (int, e... method FastReadField0 (line 1190) | func (p *TestServiceEchoBizExceptionResult) FastReadField0(buf []byte) (... method FastWrite (line 1203) | func (p *TestServiceEchoBizExceptionResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 1207) | func (p *TestServiceEchoBizExceptionResult) FastWriteNocopy(buf []byte, ... method BLength (line 1216) | func (p *TestServiceEchoBizExceptionResult) BLength() int { method fastWriteField0 (line 1225) | func (p *TestServiceEchoBizExceptionResult) fastWriteField0(buf []byte, ... method field0Length (line 1234) | func (p *TestServiceEchoBizExceptionResult) field0Length() int { method FastRead (line 1243) | func (p *TestServiceEchoPingPongArgs) FastRead(buf []byte) (int, error) { method FastReadField1 (line 1291) | func (p *TestServiceEchoPingPongArgs) FastReadField1(buf []byte) (int, e... method FastWrite (line 1304) | func (p *TestServiceEchoPingPongArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 1308) | func (p *TestServiceEchoPingPongArgs) FastWriteNocopy(buf []byte, w thri... method BLength (line 1317) | func (p *TestServiceEchoPingPongArgs) BLength() int { method fastWriteField1 (line 1326) | func (p *TestServiceEchoPingPongArgs) fastWriteField1(buf []byte, w thri... method field1Length (line 1333) | func (p *TestServiceEchoPingPongArgs) field1Length() int { method FastRead (line 1340) | func (p *TestServiceEchoPingPongResult) FastRead(buf []byte) (int, error) { method FastReadField0 (line 1388) | func (p *TestServiceEchoPingPongResult) FastReadField0(buf []byte) (int,... method FastWrite (line 1401) | func (p *TestServiceEchoPingPongResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 1405) | func (p *TestServiceEchoPingPongResult) FastWriteNocopy(buf []byte, w th... method BLength (line 1414) | func (p *TestServiceEchoPingPongResult) BLength() int { method fastWriteField0 (line 1423) | func (p *TestServiceEchoPingPongResult) fastWriteField0(buf []byte, w th... method field0Length (line 1432) | func (p *TestServiceEchoPingPongResult) field0Length() int { method GetFirstArgument (line 1441) | func (p *TestServiceEchoArgs) GetFirstArgument() interface{} { method GetResult (line 1445) | func (p *TestServiceEchoResult) GetResult() interface{} { method GetFirstArgument (line 1449) | func (p *TestServiceEchoClientArgs) GetFirstArgument() interface{} { method GetResult (line 1453) | func (p *TestServiceEchoClientResult) GetResult() interface{} { method GetFirstArgument (line 1457) | func (p *TestServiceEchoServerArgs) GetFirstArgument() interface{} { method GetResult (line 1461) | func (p *TestServiceEchoServerResult) GetResult() interface{} { method GetFirstArgument (line 1465) | func (p *TestServiceEchoUnaryArgs) GetFirstArgument() interface{} { method GetResult (line 1469) | func (p *TestServiceEchoUnaryResult) GetResult() interface{} { method GetFirstArgument (line 1473) | func (p *TestServiceEchoBizExceptionArgs) GetFirstArgument() interface{} { method GetResult (line 1477) | func (p *TestServiceEchoBizExceptionResult) GetResult() interface{} { method GetFirstArgument (line 1481) | func (p *TestServiceEchoPingPongArgs) GetFirstArgument() interface{} { method GetResult (line 1485) | func (p *TestServiceEchoPingPongResult) GetResult() interface{} { FILE: internal/mocks/thrift/k-test.go method FastRead (line 39) | func (p *MockReq) FastRead(buf []byte) (int, error) { method FastReadField1 (line 115) | func (p *MockReq) FastReadField1(buf []byte) (int, error) { method FastReadField2 (line 129) | func (p *MockReq) FastReadField2(buf []byte) (int, error) { method FastReadField3 (line 161) | func (p *MockReq) FastReadField3(buf []byte) (int, error) { method FastWrite (line 186) | func (p *MockReq) FastWrite(buf []byte) int { method FastWriteNocopy (line 190) | func (p *MockReq) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int { method BLength (line 201) | func (p *MockReq) BLength() int { method fastWriteField1 (line 212) | func (p *MockReq) fastWriteField1(buf []byte, w thrift.NocopyWriter) int { method fastWriteField2 (line 219) | func (p *MockReq) fastWriteField2(buf []byte, w thrift.NocopyWriter) int { method fastWriteField3 (line 234) | func (p *MockReq) fastWriteField3(buf []byte, w thrift.NocopyWriter) int { method field1Length (line 248) | func (p *MockReq) field1Length() int { method field2Length (line 255) | func (p *MockReq) field2Length() int { method field3Length (line 268) | func (p *MockReq) field3Length() int { method FastRead (line 279) | func (p *Exception) FastRead(buf []byte) (int, error) { method FastReadField1 (line 341) | func (p *Exception) FastReadField1(buf []byte) (int, error) { method FastReadField255 (line 355) | func (p *Exception) FastReadField255(buf []byte) (int, error) { method FastWrite (line 370) | func (p *Exception) FastWrite(buf []byte) int { method FastWriteNocopy (line 374) | func (p *Exception) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) i... method BLength (line 384) | func (p *Exception) BLength() int { method fastWriteField1 (line 394) | func (p *Exception) fastWriteField1(buf []byte, w thrift.NocopyWriter) i... method fastWriteField255 (line 401) | func (p *Exception) fastWriteField255(buf []byte, w thrift.NocopyWriter)... method field1Length (line 408) | func (p *Exception) field1Length() int { method field255Length (line 415) | func (p *Exception) field255Length() int { method FastRead (line 422) | func (p *MockTestArgs) FastRead(buf []byte) (int, error) { method FastReadField1 (line 470) | func (p *MockTestArgs) FastReadField1(buf []byte) (int, error) { method FastWrite (line 483) | func (p *MockTestArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 487) | func (p *MockTestArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter... method BLength (line 496) | func (p *MockTestArgs) BLength() int { method fastWriteField1 (line 505) | func (p *MockTestArgs) fastWriteField1(buf []byte, w thrift.NocopyWriter... method field1Length (line 512) | func (p *MockTestArgs) field1Length() int { method FastRead (line 519) | func (p *MockTestResult) FastRead(buf []byte) (int, error) { method FastReadField0 (line 567) | func (p *MockTestResult) FastReadField0(buf []byte) (int, error) { method FastWrite (line 582) | func (p *MockTestResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 586) | func (p *MockTestResult) FastWriteNocopy(buf []byte, w thrift.NocopyWrit... method BLength (line 595) | func (p *MockTestResult) BLength() int { method fastWriteField0 (line 604) | func (p *MockTestResult) fastWriteField0(buf []byte, w thrift.NocopyWrit... method field0Length (line 613) | func (p *MockTestResult) field0Length() int { method FastRead (line 622) | func (p *MockExceptionTestArgs) FastRead(buf []byte) (int, error) { method FastReadField1 (line 670) | func (p *MockExceptionTestArgs) FastReadField1(buf []byte) (int, error) { method FastWrite (line 683) | func (p *MockExceptionTestArgs) FastWrite(buf []byte) int { method FastWriteNocopy (line 687) | func (p *MockExceptionTestArgs) FastWriteNocopy(buf []byte, w thrift.Noc... method BLength (line 696) | func (p *MockExceptionTestArgs) BLength() int { method fastWriteField1 (line 705) | func (p *MockExceptionTestArgs) fastWriteField1(buf []byte, w thrift.Noc... method field1Length (line 712) | func (p *MockExceptionTestArgs) field1Length() int { method FastRead (line 719) | func (p *MockExceptionTestResult) FastRead(buf []byte) (int, error) { method FastReadField0 (line 781) | func (p *MockExceptionTestResult) FastReadField0(buf []byte) (int, error) { method FastReadField1 (line 795) | func (p *MockExceptionTestResult) FastReadField1(buf []byte) (int, error) { method FastWrite (line 808) | func (p *MockExceptionTestResult) FastWrite(buf []byte) int { method FastWriteNocopy (line 812) | func (p *MockExceptionTestResult) FastWriteNocopy(buf []byte, w thrift.N... method BLength (line 822) | func (p *MockExceptionTestResult) BLength() int { method fastWriteField0 (line 832) | func (p *MockExceptionTestResult) fastWriteField0(buf []byte, w thrift.N... method fastWriteField1 (line 841) | func (p *MockExceptionTestResult) fastWriteField1(buf []byte, w thrift.N... method field0Length (line 850) | func (p *MockExceptionTestResult) field0Length() int { method field1Length (line 859) | func (p *MockExceptionTestResult) field1Length() int { method GetFirstArgument (line 868) | func (p *MockTestArgs) GetFirstArgument() interface{} { method GetResult (line 872) | func (p *MockTestResult) GetResult() interface{} { method GetFirstArgument (line 876) | func (p *MockExceptionTestArgs) GetFirstArgument() interface{} { method GetResult (line 880) | func (p *MockExceptionTestResult) GetResult() interface{} { FILE: internal/mocks/thrift/stream.go type Request (line 28) | type Request struct method InitDefault (line 36) | func (p *Request) InitDefault() { method GetMessage (line 39) | func (p *Request) GetMessage() (v string) { method SetMessage (line 42) | func (p *Request) SetMessage(val string) { method String (line 46) | func (p *Request) String() string { method DeepEqual (line 53) | func (p *Request) DeepEqual(ano *Request) bool { method Field1DeepEqual (line 65) | func (p *Request) Field1DeepEqual(src string) bool { function NewRequest (line 32) | func NewRequest() *Request { type Response (line 77) | type Response struct method InitDefault (line 85) | func (p *Response) InitDefault() { method GetMessage (line 88) | func (p *Response) GetMessage() (v string) { method SetMessage (line 91) | func (p *Response) SetMessage(val string) { method String (line 95) | func (p *Response) String() string { method DeepEqual (line 102) | func (p *Response) DeepEqual(ano *Response) bool { method Field1DeepEqual (line 114) | func (p *Response) Field1DeepEqual(src string) bool { function NewResponse (line 81) | func NewResponse() *Response { type TestService (line 126) | type TestService interface type TestServiceEchoArgs (line 140) | type TestServiceEchoArgs struct method InitDefault (line 148) | func (p *TestServiceEchoArgs) InitDefault() { method GetReq (line 153) | func (p *TestServiceEchoArgs) GetReq() (v *Request) { method SetReq (line 159) | func (p *TestServiceEchoArgs) SetReq(val *Request) { method IsSetReq (line 163) | func (p *TestServiceEchoArgs) IsSetReq() bool { method String (line 167) | func (p *TestServiceEchoArgs) String() string { method DeepEqual (line 174) | func (p *TestServiceEchoArgs) DeepEqual(ano *TestServiceEchoArgs) bool { method Field1DeepEqual (line 186) | func (p *TestServiceEchoArgs) Field1DeepEqual(src *Request) bool { function NewTestServiceEchoArgs (line 144) | func NewTestServiceEchoArgs() *TestServiceEchoArgs { type TestServiceEchoResult (line 198) | type TestServiceEchoResult struct method InitDefault (line 206) | func (p *TestServiceEchoResult) InitDefault() { method GetSuccess (line 211) | func (p *TestServiceEchoResult) GetSuccess() (v *Response) { method SetSuccess (line 217) | func (p *TestServiceEchoResult) SetSuccess(x interface{}) { method IsSetSuccess (line 221) | func (p *TestServiceEchoResult) IsSetSuccess() bool { method String (line 225) | func (p *TestServiceEchoResult) String() string { method DeepEqual (line 232) | func (p *TestServiceEchoResult) DeepEqual(ano *TestServiceEchoResult) ... method Field0DeepEqual (line 244) | func (p *TestServiceEchoResult) Field0DeepEqual(src *Response) bool { function NewTestServiceEchoResult (line 202) | func NewTestServiceEchoResult() *TestServiceEchoResult { type TestService_EchoServer (line 256) | type TestService_EchoServer interface type TestServiceEchoClientArgs (line 264) | type TestServiceEchoClientArgs struct method InitDefault (line 272) | func (p *TestServiceEchoClientArgs) InitDefault() { method GetReq (line 277) | func (p *TestServiceEchoClientArgs) GetReq() (v *Request) { method SetReq (line 283) | func (p *TestServiceEchoClientArgs) SetReq(val *Request) { method IsSetReq (line 287) | func (p *TestServiceEchoClientArgs) IsSetReq() bool { method String (line 291) | func (p *TestServiceEchoClientArgs) String() string { method DeepEqual (line 298) | func (p *TestServiceEchoClientArgs) DeepEqual(ano *TestServiceEchoClie... method Field1DeepEqual (line 310) | func (p *TestServiceEchoClientArgs) Field1DeepEqual(src *Request) bool { function NewTestServiceEchoClientArgs (line 268) | func NewTestServiceEchoClientArgs() *TestServiceEchoClientArgs { type TestServiceEchoClientResult (line 322) | type TestServiceEchoClientResult struct method InitDefault (line 330) | func (p *TestServiceEchoClientResult) InitDefault() { method GetSuccess (line 335) | func (p *TestServiceEchoClientResult) GetSuccess() (v *Response) { method SetSuccess (line 341) | func (p *TestServiceEchoClientResult) SetSuccess(x interface{}) { method IsSetSuccess (line 345) | func (p *TestServiceEchoClientResult) IsSetSuccess() bool { method String (line 349) | func (p *TestServiceEchoClientResult) String() string { method DeepEqual (line 356) | func (p *TestServiceEchoClientResult) DeepEqual(ano *TestServiceEchoCl... method Field0DeepEqual (line 368) | func (p *TestServiceEchoClientResult) Field0DeepEqual(src *Response) b... function NewTestServiceEchoClientResult (line 326) | func NewTestServiceEchoClientResult() *TestServiceEchoClientResult { type TestService_EchoClientServer (line 380) | type TestService_EchoClientServer interface type TestServiceEchoServerArgs (line 388) | type TestServiceEchoServerArgs struct method InitDefault (line 396) | func (p *TestServiceEchoServerArgs) InitDefault() { method GetReq (line 401) | func (p *TestServiceEchoServerArgs) GetReq() (v *Request) { method SetReq (line 407) | func (p *TestServiceEchoServerArgs) SetReq(val *Request) { method IsSetReq (line 411) | func (p *TestServiceEchoServerArgs) IsSetReq() bool { method String (line 415) | func (p *TestServiceEchoServerArgs) String() string { method DeepEqual (line 422) | func (p *TestServiceEchoServerArgs) DeepEqual(ano *TestServiceEchoServ... method Field1DeepEqual (line 434) | func (p *TestServiceEchoServerArgs) Field1DeepEqual(src *Request) bool { function NewTestServiceEchoServerArgs (line 392) | func NewTestServiceEchoServerArgs() *TestServiceEchoServerArgs { type TestServiceEchoServerResult (line 446) | type TestServiceEchoServerResult struct method InitDefault (line 454) | func (p *TestServiceEchoServerResult) InitDefault() { method GetSuccess (line 459) | func (p *TestServiceEchoServerResult) GetSuccess() (v *Response) { method SetSuccess (line 465) | func (p *TestServiceEchoServerResult) SetSuccess(x interface{}) { method IsSetSuccess (line 469) | func (p *TestServiceEchoServerResult) IsSetSuccess() bool { method String (line 473) | func (p *TestServiceEchoServerResult) String() string { method DeepEqual (line 480) | func (p *TestServiceEchoServerResult) DeepEqual(ano *TestServiceEchoSe... method Field0DeepEqual (line 492) | func (p *TestServiceEchoServerResult) Field0DeepEqual(src *Response) b... function NewTestServiceEchoServerResult (line 450) | func NewTestServiceEchoServerResult() *TestServiceEchoServerResult { type TestService_EchoServerServer (line 504) | type TestService_EchoServerServer interface type TestServiceEchoUnaryArgs (line 510) | type TestServiceEchoUnaryArgs struct method InitDefault (line 518) | func (p *TestServiceEchoUnaryArgs) InitDefault() { method GetReq (line 523) | func (p *TestServiceEchoUnaryArgs) GetReq() (v *Request) { method SetReq (line 529) | func (p *TestServiceEchoUnaryArgs) SetReq(val *Request) { method IsSetReq (line 533) | func (p *TestServiceEchoUnaryArgs) IsSetReq() bool { method String (line 537) | func (p *TestServiceEchoUnaryArgs) String() string { method DeepEqual (line 544) | func (p *TestServiceEchoUnaryArgs) DeepEqual(ano *TestServiceEchoUnary... method Field1DeepEqual (line 556) | func (p *TestServiceEchoUnaryArgs) Field1DeepEqual(src *Request) bool { function NewTestServiceEchoUnaryArgs (line 514) | func NewTestServiceEchoUnaryArgs() *TestServiceEchoUnaryArgs { type TestServiceEchoUnaryResult (line 568) | type TestServiceEchoUnaryResult struct method InitDefault (line 576) | func (p *TestServiceEchoUnaryResult) InitDefault() { method GetSuccess (line 581) | func (p *TestServiceEchoUnaryResult) GetSuccess() (v *Response) { method SetSuccess (line 587) | func (p *TestServiceEchoUnaryResult) SetSuccess(x interface{}) { method IsSetSuccess (line 591) | func (p *TestServiceEchoUnaryResult) IsSetSuccess() bool { method String (line 595) | func (p *TestServiceEchoUnaryResult) String() string { method DeepEqual (line 602) | func (p *TestServiceEchoUnaryResult) DeepEqual(ano *TestServiceEchoUna... method Field0DeepEqual (line 614) | func (p *TestServiceEchoUnaryResult) Field0DeepEqual(src *Response) bo... function NewTestServiceEchoUnaryResult (line 572) | func NewTestServiceEchoUnaryResult() *TestServiceEchoUnaryResult { type TestServiceEchoBizExceptionArgs (line 626) | type TestServiceEchoBizExceptionArgs struct method InitDefault (line 634) | func (p *TestServiceEchoBizExceptionArgs) InitDefault() { method GetReq (line 639) | func (p *TestServiceEchoBizExceptionArgs) GetReq() (v *Request) { method SetReq (line 645) | func (p *TestServiceEchoBizExceptionArgs) SetReq(val *Request) { method IsSetReq (line 649) | func (p *TestServiceEchoBizExceptionArgs) IsSetReq() bool { method String (line 653) | func (p *TestServiceEchoBizExceptionArgs) String() string { method DeepEqual (line 660) | func (p *TestServiceEchoBizExceptionArgs) DeepEqual(ano *TestServiceEc... method Field1DeepEqual (line 672) | func (p *TestServiceEchoBizExceptionArgs) Field1DeepEqual(src *Request... function NewTestServiceEchoBizExceptionArgs (line 630) | func NewTestServiceEchoBizExceptionArgs() *TestServiceEchoBizExceptionAr... type TestServiceEchoBizExceptionResult (line 684) | type TestServiceEchoBizExceptionResult struct method InitDefault (line 692) | func (p *TestServiceEchoBizExceptionResult) InitDefault() { method GetSuccess (line 697) | func (p *TestServiceEchoBizExceptionResult) GetSuccess() (v *Response) { method SetSuccess (line 703) | func (p *TestServiceEchoBizExceptionResult) SetSuccess(x interface{}) { method IsSetSuccess (line 707) | func (p *TestServiceEchoBizExceptionResult) IsSetSuccess() bool { method String (line 711) | func (p *TestServiceEchoBizExceptionResult) String() string { method DeepEqual (line 718) | func (p *TestServiceEchoBizExceptionResult) DeepEqual(ano *TestService... method Field0DeepEqual (line 730) | func (p *TestServiceEchoBizExceptionResult) Field0DeepEqual(src *Respo... function NewTestServiceEchoBizExceptionResult (line 688) | func NewTestServiceEchoBizExceptionResult() *TestServiceEchoBizException... type TestService_EchoBizExceptionServer (line 742) | type TestService_EchoBizExceptionServer interface type TestServiceEchoPingPongArgs (line 750) | type TestServiceEchoPingPongArgs struct method InitDefault (line 758) | func (p *TestServiceEchoPingPongArgs) InitDefault() { method GetReq (line 763) | func (p *TestServiceEchoPingPongArgs) GetReq() (v *Request) { method SetReq (line 769) | func (p *TestServiceEchoPingPongArgs) SetReq(val *Request) { method IsSetReq (line 773) | func (p *TestServiceEchoPingPongArgs) IsSetReq() bool { method String (line 777) | func (p *TestServiceEchoPingPongArgs) String() string { method DeepEqual (line 784) | func (p *TestServiceEchoPingPongArgs) DeepEqual(ano *TestServiceEchoPi... method Field1DeepEqual (line 796) | func (p *TestServiceEchoPingPongArgs) Field1DeepEqual(src *Request) bo... function NewTestServiceEchoPingPongArgs (line 754) | func NewTestServiceEchoPingPongArgs() *TestServiceEchoPingPongArgs { type TestServiceEchoPingPongResult (line 808) | type TestServiceEchoPingPongResult struct method InitDefault (line 816) | func (p *TestServiceEchoPingPongResult) InitDefault() { method GetSuccess (line 821) | func (p *TestServiceEchoPingPongResult) GetSuccess() (v *Response) { method SetSuccess (line 827) | func (p *TestServiceEchoPingPongResult) SetSuccess(x interface{}) { method IsSetSuccess (line 831) | func (p *TestServiceEchoPingPongResult) IsSetSuccess() bool { method String (line 835) | func (p *TestServiceEchoPingPongResult) String() string { method DeepEqual (line 842) | func (p *TestServiceEchoPingPongResult) DeepEqual(ano *TestServiceEcho... method Field0DeepEqual (line 854) | func (p *TestServiceEchoPingPongResult) Field0DeepEqual(src *Response)... function NewTestServiceEchoPingPongResult (line 812) | func NewTestServiceEchoPingPongResult() *TestServiceEchoPingPongResult { FILE: internal/mocks/thrift/test.go type MockReq (line 27) | type MockReq struct method InitDefault (line 37) | func (p *MockReq) InitDefault() { method GetMsg (line 40) | func (p *MockReq) GetMsg() (v string) { method GetStrMap (line 44) | func (p *MockReq) GetStrMap() (v map[string]string) { method GetStrList (line 48) | func (p *MockReq) GetStrList() (v []string) { method SetMsg (line 51) | func (p *MockReq) SetMsg(val string) { method SetStrMap (line 54) | func (p *MockReq) SetStrMap(val map[string]string) { method SetStrList (line 57) | func (p *MockReq) SetStrList(val []string) { method String (line 61) | func (p *MockReq) String() string { method DeepEqual (line 68) | func (p *MockReq) DeepEqual(ano *MockReq) bool { method Field1DeepEqual (line 86) | func (p *MockReq) Field1DeepEqual(src string) bool { method Field2DeepEqual (line 93) | func (p *MockReq) Field2DeepEqual(src map[string]string) bool { method Field3DeepEqual (line 106) | func (p *MockReq) Field3DeepEqual(src []string) bool { function NewMockReq (line 33) | func NewMockReq() *MockReq { type Exception (line 126) | type Exception struct method InitDefault (line 135) | func (p *Exception) InitDefault() { method GetCode (line 138) | func (p *Exception) GetCode() (v int32) { method GetMsg (line 142) | func (p *Exception) GetMsg() (v string) { method SetCode (line 145) | func (p *Exception) SetCode(val int32) { method SetMsg (line 148) | func (p *Exception) SetMsg(val string) { method String (line 152) | func (p *Exception) String() string { method Error (line 158) | func (p *Exception) Error() string { method DeepEqual (line 162) | func (p *Exception) DeepEqual(ano *Exception) bool { method Field1DeepEqual (line 177) | func (p *Exception) Field1DeepEqual(src int32) bool { method Field255DeepEqual (line 184) | func (p *Exception) Field255DeepEqual(src string) bool { function NewException (line 131) | func NewException() *Exception { type Mock (line 197) | type Mock interface type MockTestArgs (line 203) | type MockTestArgs struct method InitDefault (line 211) | func (p *MockTestArgs) InitDefault() { method GetReq (line 216) | func (p *MockTestArgs) GetReq() (v *MockReq) { method SetReq (line 222) | func (p *MockTestArgs) SetReq(val *MockReq) { method IsSetReq (line 226) | func (p *MockTestArgs) IsSetReq() bool { method String (line 230) | func (p *MockTestArgs) String() string { method DeepEqual (line 237) | func (p *MockTestArgs) DeepEqual(ano *MockTestArgs) bool { method Field1DeepEqual (line 249) | func (p *MockTestArgs) Field1DeepEqual(src *MockReq) bool { function NewMockTestArgs (line 207) | func NewMockTestArgs() *MockTestArgs { type MockTestResult (line 261) | type MockTestResult struct method InitDefault (line 269) | func (p *MockTestResult) InitDefault() { method GetSuccess (line 274) | func (p *MockTestResult) GetSuccess() (v string) { method SetSuccess (line 280) | func (p *MockTestResult) SetSuccess(x interface{}) { method IsSetSuccess (line 284) | func (p *MockTestResult) IsSetSuccess() bool { method String (line 288) | func (p *MockTestResult) String() string { method DeepEqual (line 295) | func (p *MockTestResult) DeepEqual(ano *MockTestResult) bool { method Field0DeepEqual (line 307) | func (p *MockTestResult) Field0DeepEqual(src *string) bool { function NewMockTestResult (line 265) | func NewMockTestResult() *MockTestResult { type MockExceptionTestArgs (line 324) | type MockExceptionTestArgs struct method InitDefault (line 332) | func (p *MockExceptionTestArgs) InitDefault() { method GetReq (line 337) | func (p *MockExceptionTestArgs) GetReq() (v *MockReq) { method SetReq (line 343) | func (p *MockExceptionTestArgs) SetReq(val *MockReq) { method IsSetReq (line 347) | func (p *MockExceptionTestArgs) IsSetReq() bool { method String (line 351) | func (p *MockExceptionTestArgs) String() string { method DeepEqual (line 358) | func (p *MockExceptionTestArgs) DeepEqual(ano *MockExceptionTestArgs) ... method Field1DeepEqual (line 370) | func (p *MockExceptionTestArgs) Field1DeepEqual(src *MockReq) bool { function NewMockExceptionTestArgs (line 328) | func NewMockExceptionTestArgs() *MockExceptionTestArgs { type MockExceptionTestResult (line 382) | type MockExceptionTestResult struct method InitDefault (line 391) | func (p *MockExceptionTestResult) InitDefault() { method GetSuccess (line 396) | func (p *MockExceptionTestResult) GetSuccess() (v string) { method GetErr (line 405) | func (p *MockExceptionTestResult) GetErr() (v *Exception) { method SetSuccess (line 411) | func (p *MockExceptionTestResult) SetSuccess(x interface{}) { method SetErr (line 414) | func (p *MockExceptionTestResult) SetErr(val *Exception) { method IsSetSuccess (line 418) | func (p *MockExceptionTestResult) IsSetSuccess() bool { method IsSetErr (line 422) | func (p *MockExceptionTestResult) IsSetErr() bool { method String (line 426) | func (p *MockExceptionTestResult) String() string { method DeepEqual (line 433) | func (p *MockExceptionTestResult) DeepEqual(ano *MockExceptionTestResu... method Field0DeepEqual (line 448) | func (p *MockExceptionTestResult) Field0DeepEqual(src *string) bool { method Field1DeepEqual (line 460) | func (p *MockExceptionTestResult) Field1DeepEqual(src *Exception) bool { function NewMockExceptionTestResult (line 387) | func NewMockExceptionTestResult() *MockExceptionTestResult { FILE: internal/mocks/transhandlerclient.go type mockCliTransHandlerFactory (line 28) | type mockCliTransHandlerFactory struct method NewTransHandler (line 37) | func (f *mockCliTransHandlerFactory) NewTransHandler(opt *remote.Clien... function NewMockCliTransHandlerFactory (line 33) | func NewMockCliTransHandlerFactory(hdrl *MockCliTransHandler) remote.Cli... type MockCliTransHandler (line 43) | type MockCliTransHandler struct method Write (line 55) | func (t *MockCliTransHandler) Write(ctx context.Context, conn net.Conn... method Read (line 63) | func (t *MockCliTransHandler) Read(ctx context.Context, conn net.Conn,... method OnMessage (line 71) | func (t *MockCliTransHandler) OnMessage(ctx context.Context, args, res... method OnActive (line 79) | func (t *MockCliTransHandler) OnActive(ctx context.Context, conn net.C... method OnInactive (line 85) | func (t *MockCliTransHandler) OnInactive(ctx context.Context, conn net... method OnError (line 90) | func (t *MockCliTransHandler) OnError(ctx context.Context, err error, ... method SetPipeline (line 99) | func (t *MockCliTransHandler) SetPipeline(p *remote.TransPipeline) { FILE: internal/mocks/transhandlerserver.go type mockSvrTransHandlerFactory (line 29) | type mockSvrTransHandlerFactory struct method NewTransHandler (line 38) | func (f *mockSvrTransHandlerFactory) NewTransHandler(opt *remote.Serve... function NewMockSvrTransHandlerFactory (line 34) | func NewMockSvrTransHandlerFactory(hdrl *MockSvrTransHandler) remote.Ser... type MockSvrTransHandler (line 44) | type MockSvrTransHandler struct method OnRead (line 56) | func (t *MockSvrTransHandler) OnRead(ctx context.Context, conn net.Con... method Write (line 64) | func (t *MockSvrTransHandler) Write(ctx context.Context, conn net.Conn... method Read (line 72) | func (t *MockSvrTransHandler) Read(ctx context.Context, conn net.Conn,... method OnMessage (line 80) | func (t *MockSvrTransHandler) OnMessage(ctx context.Context, args, res... method OnActive (line 86) | func (t *MockSvrTransHandler) OnActive(ctx context.Context, conn net.C... method OnInactive (line 94) | func (t *MockSvrTransHandler) OnInactive(ctx context.Context, conn net... method OnError (line 99) | func (t *MockSvrTransHandler) OnError(ctx context.Context, err error, ... method GracefulShutdown (line 107) | func (t *MockSvrTransHandler) GracefulShutdown(ctx context.Context) (e... method SetPipeline (line 115) | func (t *MockSvrTransHandler) SetPipeline(p *remote.TransPipeline) { type MockTransServerFactory (line 120) | type MockTransServerFactory struct method NewTransServer (line 130) | func (t *MockTransServerFactory) NewTransServer(opt *remote.ServerOpti... function NewMockTransServerFactory (line 125) | func NewMockTransServerFactory(transSvr *MockTransServer) remote.TransSe... type MockTransServer (line 137) | type MockTransServer struct method CreateListener (line 148) | func (t *MockTransServer) CreateListener(addr net.Addr) (ln net.Listen... method BootstrapServer (line 156) | func (t *MockTransServer) BootstrapServer(ln net.Listener) (err error) { method Shutdown (line 164) | func (t *MockTransServer) Shutdown() (err error) { method ConnCount (line 172) | func (t *MockTransServer) ConnCount() (r utils.AtomicInt) { FILE: internal/mocks/utils/sharedticker.go type MockTickerTask (line 31) | type MockTickerTask struct method EXPECT (line 49) | func (m *MockTickerTask) EXPECT() *MockTickerTaskMockRecorder { method Tick (line 54) | func (m *MockTickerTask) Tick() { type MockTickerTaskMockRecorder (line 37) | type MockTickerTaskMockRecorder struct method Tick (line 60) | func (mr *MockTickerTaskMockRecorder) Tick() *gomock.Call { function NewMockTickerTask (line 42) | func NewMockTickerTask(ctrl *gomock.Controller) *MockTickerTask { FILE: internal/reusable.go type Reusable (line 20) | type Reusable interface FILE: internal/server/config.go constant defaultExitWaitTime (line 27) | defaultExitWaitTime = 5 * time.Second constant defaultAcceptFailedDelayTime (line 28) | defaultAcceptFailedDelayTime = 10 * time.Millisecond constant defaultConnectionIdleTime (line 29) | defaultConnectionIdleTime = 10 * time.Minute type Config (line 35) | type Config struct function NewConfig (line 49) | func NewConfig() *Config { FILE: internal/server/option.go function init (line 51) | func init() { type UnaryOption (line 56) | type UnaryOption struct type UnaryOptions (line 60) | type UnaryOptions struct method InitMiddlewares (line 65) | func (o *UnaryOptions) InitMiddlewares(ctx context.Context) { type StreamOption (line 75) | type StreamOption struct type StreamOptions (line 79) | type StreamOptions struct method InitMiddlewares (line 89) | func (o *StreamOptions) InitMiddlewares(ctx context.Context) { method BuildRecvChain (line 113) | func (o *StreamOptions) BuildRecvChain() sep.StreamRecvEndpoint { method BuildSendChain (line 119) | func (o *StreamOptions) BuildSendChain() sep.StreamSendEndpoint { type Option (line 126) | type Option struct type Options (line 131) | type Options struct method initTraceController (line 176) | func (o *Options) initTraceController() { type Limit (line 182) | type Limit struct function NewOptions (line 195) | func NewOptions(opts []Option) *Options { function ApplyOptions (line 227) | func ApplyOptions(opts []Option, o *Options) { function DefaultSysExitSignal (line 233) | func DefaultSysExitSignal() <-chan error { function SysExitSignal (line 244) | func SysExitSignal() chan os.Signal { FILE: internal/server/register_option.go type RegisterOption (line 20) | type RegisterOption struct function WithUnknownService (line 24) | func WithUnknownService() RegisterOption { type RegisterOptions (line 31) | type RegisterOptions struct function NewRegisterOptions (line 37) | func NewRegisterOptions(opts []RegisterOption) *RegisterOptions { function ApplyRegisterOptions (line 44) | func ApplyRegisterOptions(opts []RegisterOption, o *RegisterOptions) { FILE: internal/server/remote_option.go function newServerRemoteOption (line 34) | func newServerRemoteOption() *remote.ServerOption { FILE: internal/server/remote_option_windows.go function newServerRemoteOption (line 33) | func newServerRemoteOption() *remote.ServerOption { FILE: internal/stream/cancel.go type CancelableClientStream (line 21) | type CancelableClientStream interface FILE: internal/stream/stream_option.go type StreamingConfig (line 31) | type StreamingConfig struct method InitMiddlewares (line 39) | func (c *StreamingConfig) InitMiddlewares(ctx context.Context) { method BuildRecvInvokeChain (line 57) | func (c *StreamingConfig) BuildRecvInvokeChain() endpoint.RecvEndpoint { method BuildSendInvokeChain (line 63) | func (c *StreamingConfig) BuildSendInvokeChain() endpoint.SendEndpoint { FILE: internal/stream/stream_option_test.go function TestStreamingConfig_InitMiddlewares (line 29) | func TestStreamingConfig_InitMiddlewares(t *testing.T) { FILE: internal/test/assert.go type testingTB (line 22) | type testingTB interface function Assert (line 29) | func Assert(t testingTB, cond bool, val ...interface{}) { function Assertf (line 42) | func Assertf(t testingTB, cond bool, format string, val ...interface{}) { function DeepEqual (line 50) | func DeepEqual(t testingTB, a, b interface{}) { function Panic (line 58) | func Panic(t testingTB, fn func()) { function PanicAt (line 75) | func PanicAt(t testingTB, fn func(), expect func(err interface{}) bool) { FILE: internal/test/assert_test.go type mockTesting (line 24) | type mockTesting struct method Reset (line 33) | func (m *mockTesting) Reset() { method ExpectFatal (line 39) | func (m *mockTesting) ExpectFatal(args ...interface{}) { method ExpectFatalf (line 43) | func (m *mockTesting) ExpectFatalf(format string, args ...interface{}) { method Fatal (line 47) | func (m *mockTesting) Fatal(args ...interface{}) { method Fatalf (line 58) | func (m *mockTesting) Fatalf(format string, args ...interface{}) { method Helper (line 69) | func (m *mockTesting) Helper() { m.helper = true } function TestAssert (line 71) | func TestAssert(t *testing.T) { FILE: internal/test/port.go constant UnixUserPortStart (line 31) | UnixUserPortStart = 1023 constant UnixUserPortEnd (line 32) | UnixUserPortEnd = 49151 function hashInt (line 35) | func hashInt(n int) uint32 { function GetLocalAddress (line 46) | func GetLocalAddress() string { function IsAddressInUse (line 62) | func IsAddressInUse(address string) bool { function WaitServerStart (line 72) | func WaitServerStart(addr string) { FILE: internal/utils/safemcache/safemcache.go constant footerLen (line 28) | footerLen = 8 constant footerMagic (line 29) | footerMagic = uint64(0xBADC0DEBADC0DEFF) type sliceHeader (line 32) | type sliceHeader struct method Footer (line 38) | func (h *sliceHeader) Footer() uint64 { method SetFooter (line 42) | func (h *sliceHeader) SetFooter(v uint64) { function Malloc (line 50) | func Malloc(size int) []byte { function Cap (line 59) | func Cap(buf []byte) int { function Free (line 72) | func Free(buf []byte) { FILE: internal/utils/safemcache/safemcache_test.go function TestMallocFree (line 26) | func TestMallocFree(t *testing.T) { FILE: pkg/acl/acl.go type RejectFunc (line 30) | type RejectFunc function ApplyRules (line 32) | func ApplyRules(ctx context.Context, request interface{}, rules []Reject... function NewACLMiddleware (line 45) | func NewACLMiddleware(rules []RejectFunc) endpoint.Middleware { FILE: pkg/acl/acl_test.go function invoke (line 30) | func invoke(ctx context.Context, request, response interface{}) error { function TestNewACLMiddleware (line 34) | func TestNewACLMiddleware(t *testing.T) { FILE: pkg/circuitbreak/cbsuite.go constant serviceCBKey (line 38) | serviceCBKey = "service" constant instanceCBKey (line 39) | instanceCBKey = "instance" constant cbConfig (line 40) | cbConfig = "cb_config" function GetDefaultCBConfig (line 46) | func GetDefaultCBConfig() CBConfig { type CBConfig (line 52) | type CBConfig struct method DeepCopy (line 59) | func (c *CBConfig) DeepCopy() *CBConfig { method Equals (line 70) | func (c *CBConfig) Equals(other *CBConfig) bool { type GenServiceCBKeyFunc (line 82) | type GenServiceCBKeyFunc type instanceCBConfig (line 84) | type instanceCBConfig struct type CBSuite (line 94) | type CBSuite struct method ServiceCBMW (line 132) | func (s *CBSuite) ServiceCBMW() endpoint.Middleware { method StreamingServiceCBMW (line 141) | func (s *CBSuite) StreamingServiceCBMW() cep.StreamMiddleware { method InstanceCBMW (line 150) | func (s *CBSuite) InstanceCBMW() endpoint.Middleware { method ServicePanel (line 159) | func (s *CBSuite) ServicePanel() circuitbreaker.Panel { method ServiceControl (line 167) | func (s *CBSuite) ServiceControl() *Control { method UpdateServiceCBConfig (line 176) | func (s *CBSuite) UpdateServiceCBConfig(key string, cfg CBConfig) { method UpdateInstanceCBConfig (line 182) | func (s *CBSuite) UpdateInstanceCBConfig(cfg CBConfig) { method SetEventBusAndQueue (line 189) | func (s *CBSuite) SetEventBusAndQueue(bus event.Bus, events event.Queu... method Dump (line 197) | func (s *CBSuite) Dump() interface{} { method Close (line 206) | func (s *CBSuite) Close() error { method initServiceCB (line 220) | func (s *CBSuite) initServiceCB() { method initInstanceCB (line 248) | func (s *CBSuite) initInstanceCB() { method onStateChange (line 274) | func (s *CBSuite) onStateChange(level, key string, oldState, newState ... method onServiceStateChange (line 291) | func (s *CBSuite) onServiceStateChange(key string, oldState, newState ... method onInstanceStateChange (line 295) | func (s *CBSuite) onInstanceStateChange(key string, oldState, newState... method discoveryChangeHandler (line 299) | func (s *CBSuite) discoveryChangeHandler(e *event.Event) { method svcTripFunc (line 310) | func (s *CBSuite) svcTripFunc(key string) circuitbreaker.TripFunc { method insTripFunc (line 316) | func (s *CBSuite) insTripFunc(key string) circuitbreaker.TripFunc { method configInfo (line 351) | func (s *CBSuite) configInfo() map[string]interface{} { function NewCBSuite (line 113) | func NewCBSuite(genKey GenServiceCBKeyFunc, options ...CBSuiteOption) *C... function cbDebugInfo (line 324) | func cbDebugInfo(panel circuitbreaker.Panel) map[string]interface{} { function RPCInfo2Key (line 367) | func RPCInfo2Key(ri rpcinfo.RPCInfo) string { FILE: pkg/circuitbreak/cbsuite_option.go type CBSuiteConfig (line 21) | type CBSuiteConfig struct type CBSuiteOption (line 26) | type CBSuiteOption function WithServiceGetErrorType (line 32) | func WithServiceGetErrorType(customFunc GetErrorTypeFunc) CBSuiteOption { function WithWrappedServiceGetErrorType (line 42) | func WithWrappedServiceGetErrorType(customFunc GetErrorTypeFunc) CBSuite... function WithInstanceGetErrorType (line 52) | func WithInstanceGetErrorType(f GetErrorTypeFunc) CBSuiteOption { function WithWrappedInstanceGetErrorType (line 62) | func WithWrappedInstanceGetErrorType(f GetErrorTypeFunc) CBSuiteOption { function WrapErrorTypeFunc (line 70) | func WrapErrorTypeFunc(customFunc, originalFunc GetErrorTypeFunc) GetErr... FILE: pkg/circuitbreak/cbsuite_option_test.go function TestWrapErrorTypeFunc (line 27) | func TestWrapErrorTypeFunc(t *testing.T) { function TestWithWrappedServiceGetErrorType (line 52) | func TestWithWrappedServiceGetErrorType(t *testing.T) { function TestWithWrappedInstanceGetErrorType (line 65) | func TestWithWrappedInstanceGetErrorType(t *testing.T) { FILE: pkg/circuitbreak/cbsuite_test.go function sameFuncPointer (line 43) | func sameFuncPointer(f1, f2 interface{}) bool { function TestNewCBSuite (line 47) | func TestNewCBSuite(t *testing.T) { function TestGetServiceCB (line 80) | func TestGetServiceCB(t *testing.T) { function TestNewCBSuiteOptions (line 88) | func TestNewCBSuiteOptions(t *testing.T) { function TestServiceCB (line 118) | func TestServiceCB(t *testing.T) { function TestUpdateConfigErrRate (line 181) | func TestUpdateConfigErrRate(t *testing.T) { function TestUpdateConfigSamples (line 218) | func TestUpdateConfigSamples(t *testing.T) { function TestDisableCB (line 251) | func TestDisableCB(t *testing.T) { function TestInstanceCB (line 271) | func TestInstanceCB(t *testing.T) { function TestCBSuite_AddEvent4CB (line 305) | func TestCBSuite_AddEvent4CB(t *testing.T) { function TestRemoveInstBreaker (line 329) | func TestRemoveInstBreaker(t *testing.T) { function TestCBSuite_Dump (line 373) | func TestCBSuite_Dump(t *testing.T) { function prepareCtx (line 449) | func prepareCtx() context.Context { type mockInst (line 459) | type mockInst struct method Address (line 461) | func (m mockInst) Address() net.Addr { method Weight (line 465) | func (m mockInst) Weight() int { method Tag (line 469) | func (m mockInst) Tag(key string) (value string, exist bool) { function TestCBConfig_DeepCopy (line 473) | func TestCBConfig_DeepCopy(t *testing.T) { function TestCBConfig_Equals (line 514) | func TestCBConfig_Equals(t *testing.T) { function BenchmarkCBSuiteMW (line 665) | func BenchmarkCBSuiteMW(b *testing.B) { FILE: pkg/circuitbreak/circuitbreak.go type Parameter (line 32) | type Parameter struct type ErrorType (line 42) | type ErrorType constant TypeIgnorable (line 47) | TypeIgnorable ErrorType = iota constant TypeTimeout (line 49) | TypeTimeout constant TypeFailure (line 51) | TypeFailure constant TypeSuccess (line 53) | TypeSuccess function WrapErrorWithType (line 60) | func WrapErrorWithType(err error, errorType ErrorType) CircuitBreakerAwa... type GetErrorTypeFunc (line 64) | type GetErrorTypeFunc type Control (line 67) | type Control struct function NewCircuitBreakerMW (line 80) | func NewCircuitBreakerMW(control Control, panel circuitbreaker.Panel) en... function NewStreamCircuitBreakerMW (line 100) | func NewStreamCircuitBreakerMW(control Control, panel circuitbreaker.Pan... function RecordStat (line 120) | func RecordStat(ctx context.Context, request, response interface{}, err ... type CircuitBreakerAwareError (line 132) | type CircuitBreakerAwareError interface type errorWrapperWithType (line 137) | type errorWrapperWithType struct method TypeForCircuitBreaker (line 142) | func (e errorWrapperWithType) TypeForCircuitBreaker() ErrorType { method Error (line 146) | func (e errorWrapperWithType) Error() string { method Unwrap (line 150) | func (e errorWrapperWithType) Unwrap() error { method Is (line 154) | func (e errorWrapperWithType) Is(target error) bool { FILE: pkg/circuitbreak/circuitbreak_test.go type ctxKeyType (line 30) | type ctxKeyType constant ctxKey (line 33) | ctxKey ctxKeyType = iota constant ctxEnabled (line 34) | ctxEnabled constant ctxErrorType (line 35) | ctxErrorType function invoke (line 44) | func invoke(ctx context.Context, request, response interface{}) error { function mockGetKey (line 48) | func mockGetKey(ctx context.Context, request interface{}) (key string, e... function mockGetErrorType (line 54) | func mockGetErrorType(ctx context.Context, request, response interface{}... function mockDecorateError (line 62) | func mockDecorateError(ctx context.Context, request interface{}, err err... type mockPanel (line 66) | type mockPanel struct method IsAllowed (line 74) | func (m *mockPanel) IsAllowed(key string) bool { method Timeout (line 79) | func (m *mockPanel) Timeout(key string) { method Fail (line 83) | func (m *mockPanel) Fail(key string) { method Succeed (line 87) | func (m *mockPanel) Succeed(key string) { function TestNewCircuitBreakerMW (line 91) | func TestNewCircuitBreakerMW(t *testing.T) { function TestRecordStat (line 121) | func TestRecordStat(t *testing.T) { function TestErrorType (line 160) | func TestErrorType(t *testing.T) { FILE: pkg/circuitbreak/default.go function ErrorTypeOnServiceLevel (line 35) | func ErrorTypeOnServiceLevel(ctx context.Context, request, response inte... function ErrorTypeOnInstanceLevel (line 56) | func ErrorTypeOnInstanceLevel(ctx context.Context, request, response int... function FailIfError (line 64) | func FailIfError(ctx context.Context, request, response interface{}, err... function NoDecoration (line 72) | func NoDecoration(ctx context.Context, request interface{}, err error) e... FILE: pkg/circuitbreak/default_test.go function TestErrorTypeOnServiceLevel (line 28) | func TestErrorTypeOnServiceLevel(t *testing.T) { function TestErrorTypeOnInstanceLevel (line 33) | func TestErrorTypeOnInstanceLevel(t *testing.T) { function TestFailIfError (line 38) | func TestFailIfError(t *testing.T) { function TestNoDecoration (line 43) | func TestNoDecoration(t *testing.T) { FILE: pkg/circuitbreak/item_circuit_breaker.go constant TypeCircuitBreaker (line 27) | TypeCircuitBreaker iface.ItemType = "cb_config" type CBConfigItem (line 30) | type CBConfigItem method DeepCopy (line 44) | func (c *CBConfigItem) DeepCopy() iface.ConfigValueItem { method EqualsTo (line 50) | func (c *CBConfigItem) EqualsTo(other iface.ConfigValueItem) bool { function CopyDefaultCBConfig (line 33) | func CopyDefaultCBConfig() iface.ConfigValueItem { FILE: pkg/connpool/config.go type IdleConfig (line 22) | type IdleConfig struct constant defaultMaxIdleTimeout (line 30) | defaultMaxIdleTimeout = 30 * time.Second constant minMaxIdleTimeout (line 31) | minMaxIdleTimeout = 2 * time.Second constant maxMinIdlePerAddress (line 32) | maxMinIdlePerAddress = 5 constant defaultMaxIdleGlobal (line 33) | defaultMaxIdleGlobal = 1 << 20 function CheckPoolConfig (line 38) | func CheckPoolConfig(config IdleConfig) *IdleConfig { FILE: pkg/connpool/config_test.go function TestCheckPoolConfig (line 26) | func TestCheckPoolConfig(t *testing.T) { FILE: pkg/consts/ctx.go constant CtxKeyMethod (line 21) | CtxKeyMethod = "K_METHOD" constant CtxKeyLogID (line 22) | CtxKeyLogID = "K_LOGID" constant SERVICE_INLINE_RPCINFO_KEY (line 26) | SERVICE_INLINE_RPCINFO_KEY = "SERVICE_INLINE_RPCINFO_KEY" constant SERVICE_INLINE_SERVICE_NAME (line 27) | SERVICE_INLINE_SERVICE_NAME = "SERVICE_INLINE_SERVICE_NAME" constant SERVICE_INLINE_DATA_KEY (line 28) | SERVICE_INLINE_DATA_KEY = "SERVICE_INLINE_DATA_KEY" constant SERVICE_INLINE_CUSTOM_CTX_KEY (line 29) | SERVICE_INLINE_CUSTOM_CTX_KEY = "SERVICE_INLINE_CUSTOM_CTX_KEY" FILE: pkg/diagnosis/interface.go type ProbeName (line 21) | type ProbeName type ProbeFunc (line 24) | type ProbeFunc type Service (line 27) | type Service interface function RegisterProbeFunc (line 35) | func RegisterProbeFunc(svc Service, name ProbeName, pf ProbeFunc) { constant ChangeEventsKey (line 45) | ChangeEventsKey ProbeName = "events" constant ServiceInfosKey (line 46) | ServiceInfosKey ProbeName = "service_infos" constant FallbackServiceKey (line 47) | FallbackServiceKey ProbeName = "fallback_service" constant UnknownServiceKey (line 48) | UnknownServiceKey ProbeName = "unknown_service" constant OptionsKey (line 49) | OptionsKey ProbeName = "options" constant DestServiceKey (line 52) | DestServiceKey ProbeName = "dest_service" constant ConnPoolKey (line 53) | ConnPoolKey ProbeName = "conn_pool" constant RetryPolicyKey (line 54) | RetryPolicyKey ProbeName = "retry_policy" function WrapAsProbeFunc (line 58) | func WrapAsProbeFunc(data interface{}) ProbeFunc { type noopService (line 68) | type noopService struct method RegisterProbeFunc (line 70) | func (n noopService) RegisterProbeFunc(name ProbeName, probeFunc Probe... FILE: pkg/diagnosis/interface_test.go function newMockService (line 25) | func newMockService() *mockService { type mockService (line 29) | type mockService struct method RegisterProbeFunc (line 33) | func (m *mockService) RegisterProbeFunc(name ProbeName, probeFunc Prob... method ProbePairs (line 37) | func (m *mockService) ProbePairs() map[ProbeName]ProbeFunc { function TestAddProbeDumpData (line 41) | func TestAddProbeDumpData(t *testing.T) { function TestAddProbeProbeFunc (line 50) | func TestAddProbeProbeFunc(t *testing.T) { FILE: pkg/discovery/constants.go constant ChangeEventName (line 21) | ChangeEventName = "discovery_change" constant DeleteEventName (line 22) | DeleteEventName = "discovery_delete" FILE: pkg/discovery/discovery.go constant DefaultWeight (line 32) | DefaultWeight = 10 type Result (line 37) | type Result struct type Change (line 48) | type Change struct type Resolver (line 56) | type Resolver interface function DefaultDiff (line 73) | func DefaultDiff(cacheKey string, prev, next Result) (Change, bool) { type instance (line 107) | type instance struct method Address (line 113) | func (i *instance) Address() net.Addr { method Weight (line 117) | func (i *instance) Weight() int { method Tag (line 121) | func (i *instance) Tag(key string) (value string, exist bool) { method Tags (line 126) | func (i *instance) Tags() map[string]string { function NewInstance (line 131) | func NewInstance(network, address string, weight int, tags map[string]st... type SynthesizedResolver (line 140) | type SynthesizedResolver struct method Target (line 148) | func (sr SynthesizedResolver) Target(ctx context.Context, target rpcin... method Resolve (line 156) | func (sr SynthesizedResolver) Resolve(ctx context.Context, key string)... method Diff (line 161) | func (sr SynthesizedResolver) Diff(key string, prev, next Result) (Cha... method Name (line 169) | func (sr SynthesizedResolver) Name() string { type Instance (line 177) | type Instance interface FILE: pkg/discovery/discovery_test.go function TestDefaultDiff (line 25) | func TestDefaultDiff(t *testing.T) { FILE: pkg/endpoint/cep/endpoint.go type StreamEndpoint (line 28) | type StreamEndpoint type StreamMiddleware (line 31) | type StreamMiddleware type StreamMiddlewareBuilder (line 34) | type StreamMiddlewareBuilder type StreamRecvEndpoint (line 37) | type StreamRecvEndpoint method EqualsTo (line 39) | func (e StreamRecvEndpoint) EqualsTo(e2 StreamRecvEndpoint) bool { type StreamRecvMiddleware (line 44) | type StreamRecvMiddleware type StreamRecvMiddlewareBuilder (line 47) | type StreamRecvMiddlewareBuilder type StreamSendEndpoint (line 50) | type StreamSendEndpoint method EqualsTo (line 52) | func (e StreamSendEndpoint) EqualsTo(e2 StreamSendEndpoint) bool { type StreamSendMiddleware (line 57) | type StreamSendMiddleware type StreamSendMiddlewareBuilder (line 60) | type StreamSendMiddlewareBuilder function StreamChain (line 63) | func StreamChain(mws ...StreamMiddleware) StreamMiddleware { function StreamRecvChain (line 73) | func StreamRecvChain(mws ...StreamRecvMiddleware) StreamRecvMiddleware { function StreamSendChain (line 83) | func StreamSendChain(mws ...StreamSendMiddleware) StreamSendMiddleware { function DummyDummyMiddleware (line 93) | func DummyDummyMiddleware(next StreamEndpoint) StreamEndpoint { FILE: pkg/endpoint/deprecated.go type RecvEndpoint (line 26) | type RecvEndpoint type RecvMiddleware (line 29) | type RecvMiddleware type RecvMiddlewareBuilder (line 32) | type RecvMiddlewareBuilder function RecvChain (line 35) | func RecvChain(mws ...RecvMiddleware) RecvMiddleware { type SendEndpoint (line 45) | type SendEndpoint type SendMiddleware (line 48) | type SendMiddleware type SendMiddlewareBuilder (line 51) | type SendMiddlewareBuilder function SendChain (line 54) | func SendChain(mws ...SendMiddleware) SendMiddleware { FILE: pkg/endpoint/endpoint.go type Endpoint (line 22) | type Endpoint type Middleware (line 25) | type Middleware method ToUnaryMiddleware (line 50) | func (mw Middleware) ToUnaryMiddleware() UnaryMiddleware { type MiddlewareBuilder (line 28) | type MiddlewareBuilder function Chain (line 31) | func Chain(mws ...Middleware) Middleware { function Build (line 41) | func Build(mws []Middleware) Middleware { function DummyMiddleware (line 57) | func DummyMiddleware(next Endpoint) Endpoint { function DummyEndpoint (line 62) | func DummyEndpoint(ctx context.Context, req, resp interface{}) (err erro... type mwCtxKeyType (line 66) | type mwCtxKeyType constant CtxEventBusKey (line 70) | CtxEventBusKey mwCtxKeyType = iota constant CtxEventQueueKey (line 71) | CtxEventQueueKey FILE: pkg/endpoint/endpoint_test.go type val (line 26) | type val struct function invoke (line 38) | func invoke(ctx context.Context, req, resp interface{}) (err error) { function mockMW0 (line 46) | func mockMW0(next Endpoint) Endpoint { function mockMW1 (line 63) | func mockMW1(next Endpoint) Endpoint { function TestChain (line 80) | func TestChain(t *testing.T) { function TestBuild (line 88) | func TestBuild(t *testing.T) { FILE: pkg/endpoint/sep/endpoint.go type StreamEndpoint (line 27) | type StreamEndpoint type StreamMiddleware (line 30) | type StreamMiddleware type StreamMiddlewareBuilder (line 33) | type StreamMiddlewareBuilder type StreamRecvEndpoint (line 36) | type StreamRecvEndpoint type StreamRecvMiddleware (line 39) | type StreamRecvMiddleware type StreamRecvMiddlewareBuilder (line 42) | type StreamRecvMiddlewareBuilder type StreamSendEndpoint (line 45) | type StreamSendEndpoint type StreamSendMiddleware (line 48) | type StreamSendMiddleware type StreamSendMiddlewareBuilder (line 51) | type StreamSendMiddlewareBuilder function StreamChain (line 54) | func StreamChain(mws ...StreamMiddleware) StreamMiddleware { function StreamRecvChain (line 64) | func StreamRecvChain(mws ...StreamRecvMiddleware) StreamRecvMiddleware { function StreamSendChain (line 74) | func StreamSendChain(mws ...StreamSendMiddleware) StreamSendMiddleware { FILE: pkg/endpoint/unary_endpoint.go type UnaryEndpoint (line 21) | type UnaryEndpoint type UnaryMiddleware (line 23) | type UnaryMiddleware method ToMiddleware (line 36) | func (mw UnaryMiddleware) ToMiddleware() Middleware { type UnaryMiddlewareBuilder (line 25) | type UnaryMiddlewareBuilder function UnaryChain (line 27) | func UnaryChain(mws ...UnaryMiddleware) UnaryMiddleware { FILE: pkg/event/bus.go type Callback (line 28) | type Callback type Bus (line 31) | type Bus interface function NewEventBus (line 39) | func NewEventBus() Bus { type bus (line 43) | type bus struct method Watch (line 48) | func (b *bus) Watch(event string, callback Callback) { method Unwatch (line 58) | func (b *bus) Unwatch(event string, callback Callback) { method Dispatch (line 73) | func (b *bus) Dispatch(event *Event) { method DispatchAndWait (line 85) | func (b *bus) DispatchAndWait(event *Event) { FILE: pkg/event/bus_test.go function TestWatch (line 27) | func TestWatch(t *testing.T) { function TestUnWatch (line 54) | func TestUnWatch(t *testing.T) { function TestDispatchAndWait (line 83) | func TestDispatchAndWait(t *testing.T) { FILE: pkg/event/event.go type Event (line 22) | type Event struct FILE: pkg/event/queue.go constant MaxEventNum (line 25) | MaxEventNum = 200 type Queue (line 29) | type Queue interface type queue (line 35) | type queue struct method Push (line 56) | func (q *queue) Push(e *Event) { method Dump (line 69) | func (q *queue) Dump() interface{} { function NewQueue (line 43) | func NewQueue(cap int) Queue { FILE: pkg/event/queue_test.go function TestQueueInvalidCapacity (line 26) | func TestQueueInvalidCapacity(t *testing.T) { function TestQueue (line 34) | func TestQueue(t *testing.T) { function BenchmarkQueue (line 57) | func BenchmarkQueue(b *testing.B) { function BenchmarkQueueConcurrent (line 67) | func BenchmarkQueueConcurrent(b *testing.B) { FILE: pkg/exception/deprecated.go function MarshalError (line 26) | func MarshalError(method string, err error) []byte { function UnmarshalError (line 32) | func UnmarshalError(b []byte) error { FILE: pkg/exception/deprecated_test.go function TestException (line 26) | func TestException(t *testing.T) { FILE: pkg/fallback/fallback.go function ErrorFallback (line 32) | func ErrorFallback(ef Func) *Policy { function TimeoutAndCBFallback (line 43) | func TimeoutAndCBFallback(ef Func) *Policy { function NewFallbackPolicy (line 56) | func NewFallbackPolicy(fb Func) *Policy { type Policy (line 65) | type Policy struct method EnableReportAsFallback (line 70) | func (p *Policy) EnableReportAsFallback() *Policy { method DoIfNeeded (line 106) | func (p *Policy) DoIfNeeded(ctx context.Context, ri rpcinfo.RPCInfo, a... function IsPolicyValid (line 76) | func IsPolicyValid(p *Policy) bool { function UnwrapHelper (line 85) | func UnwrapHelper(userFB RealReqRespFunc) Func { type Func (line 99) | type Func type RealReqRespFunc (line 103) | type RealReqRespFunc function getBizErrIfExist (line 129) | func getBizErrIfExist(ri rpcinfo.RPCInfo, err error) (error, bool) { FILE: pkg/fallback/fallback_test.go function TestNewFallbackPolicy (line 32) | func TestNewFallbackPolicy(t *testing.T) { function TestErrorFallback (line 108) | func TestErrorFallback(t *testing.T) { function TestTimeoutAndCBFallback (line 133) | func TestTimeoutAndCBFallback(t *testing.T) { function genRPCInfo (line 174) | func genRPCInfo() rpcinfo.RPCInfo { FILE: pkg/generic/binary_test/generic_init.go function newGenericClient (line 48) | func newGenericClient(destService string, g generic.Generic, targetIPPor... function newGenericServer (line 54) | func newGenericServer(g generic.Generic, addr net.Addr, handler generic.... type GenericServiceImpl (line 69) | type GenericServiceImpl struct method GenericCall (line 72) | func (g *GenericServiceImpl) GenericCall(ctx context.Context, method s... type GenericServiceErrorImpl (line 81) | type GenericServiceErrorImpl struct method GenericCall (line 84) | func (g *GenericServiceErrorImpl) GenericCall(ctx context.Context, met... type GenericServiceBizErrorImpl (line 89) | type GenericServiceBizErrorImpl struct method GenericCall (line 92) | func (g *GenericServiceBizErrorImpl) GenericCall(ctx context.Context, ... type GenericServiceMockImpl (line 97) | type GenericServiceMockImpl struct method GenericCall (line 100) | func (g *GenericServiceMockImpl) GenericCall(ctx context.Context, meth... function NewMockServer (line 122) | func NewMockServer(handler kt.Mock, addr net.Addr, opts ...server.Option... function serviceInfo (line 141) | func serviceInfo() *serviceinfo.ServiceInfo { function newMockTestArgs (line 156) | func newMockTestArgs() interface{} { function newMockTestResult (line 160) | func newMockTestResult() interface{} { function testHandler (line 164) | func testHandler(ctx context.Context, handler, arg, result interface{}) ... type MockImpl (line 176) | type MockImpl struct method Test (line 179) | func (m *MockImpl) Test(ctx context.Context, req *kt.MockReq) (r strin... method ExceptionTest (line 187) | func (m *MockImpl) ExceptionTest(ctx context.Context, req *kt.MockReq)... function genBinaryResp (line 191) | func genBinaryResp(method string) []byte { FILE: pkg/generic/binary_test/generic_test.go function TestRun (line 39) | func TestRun(t *testing.T) { function rawThriftBinary (line 47) | func rawThriftBinary(t *testing.T) { function rawThriftBinaryError (line 63) | func rawThriftBinaryError(t *testing.T) { function rawThriftBinaryBizError (line 77) | func rawThriftBinaryBizError(t *testing.T) { function rawThriftBinaryMockReq (line 94) | func rawThriftBinaryMockReq(t *testing.T) { function rawThriftBinary2NormalServer (line 130) | func rawThriftBinary2NormalServer(t *testing.T) { function initRawThriftBinaryClient (line 163) | func initRawThriftBinaryClient() genericclient.Client { function initRawThriftBinaryServer (line 169) | func initRawThriftBinaryServer(handler generic.Service) server.Server { function initMockServer (line 176) | func initMockServer(handler kt.Mock) server.Server { function genBinaryReqBuf (line 182) | func genBinaryReqBuf(method string) []byte { FILE: pkg/generic/binarypb_codec.go type binaryPbCodec (line 23) | type binaryPbCodec struct method getMessageReaderWriter (line 38) | func (c *binaryPbCodec) getMessageReaderWriter() interface{} { method Name (line 42) | func (c *binaryPbCodec) Name() string { function newBinaryPbCodec (line 29) | func newBinaryPbCodec(svcName, packageName string) *binaryPbCodec { FILE: pkg/generic/binarypb_codec_test.go function TestNewBinaryPbCodec (line 26) | func TestNewBinaryPbCodec(t *testing.T) { function TestBinaryPbCodecGetMessageReaderWriter (line 31) | func TestBinaryPbCodecGetMessageReaderWriter(t *testing.T) { function TestBinaryPbFields (line 39) | func TestBinaryPbFields(t *testing.T) { function TestBinaryPbCodecReaderWriter (line 46) | func TestBinaryPbCodecReaderWriter(t *testing.T) { FILE: pkg/generic/binarythrift_codec.go type binaryThriftCodec (line 40) | type binaryThriftCodec struct method Marshal (line 44) | func (c *binaryThriftCodec) Marshal(ctx context.Context, msg remote.Me... method Unmarshal (line 83) | func (c *binaryThriftCodec) Unmarshal(ctx context.Context, msg remote.... method Name (line 117) | func (c *binaryThriftCodec) Name() string { function SetSeqID (line 127) | func SetSeqID(seqID int32, transBuff []byte) error { function GetSeqID (line 137) | func GetSeqID(transBuff []byte) (int32, error) { function getSeqID4Bytes (line 147) | func getSeqID4Bytes(transBuff []byte) ([]byte, error) { function readBinaryMethod (line 177) | func readBinaryMethod(ctx context.Context, buff []byte, msg remote.Messa... FILE: pkg/generic/binarythrift_codec_test.go function TestBinaryThriftCodec (line 36) | func TestBinaryThriftCodec(t *testing.T) { function TestBinaryThriftCodecExceptionError (line 112) | func TestBinaryThriftCodecExceptionError(t *testing.T) { function newMockRPCInfo (line 164) | func newMockRPCInfo() rpcinfo.RPCInfo { function newEmptyMethodRPCInfo (line 172) | func newEmptyMethodRPCInfo() rpcinfo.RPCInfo { FILE: pkg/generic/binarythrift_codec_v2.go type binaryThriftCodecV2 (line 23) | type binaryThriftCodecV2 struct method Name (line 35) | func (c *binaryThriftCodecV2) Name() string { method getMessageReaderWriter (line 39) | func (c *binaryThriftCodecV2) getMessageReaderWriter() interface{} { function newBinaryThriftCodecV2 (line 28) | func newBinaryThriftCodecV2(svcName string) *binaryThriftCodecV2 { FILE: pkg/generic/closer.go type Closer (line 20) | type Closer interface FILE: pkg/generic/descriptor/annotation.go type Annotation (line 20) | type Annotation interface function RegisterAnnotation (line 30) | func RegisterAnnotation(an Annotation) { function init (line 34) | func init() { function FindAnnotation (line 65) | func FindAnnotation(key, value string) (interface{}, bool) { type bamAnnotation (line 75) | type bamAnnotation struct method Equal (line 85) | func (a *bamAnnotation) Equal(key, value string) bool { method Handle (line 89) | func (a *bamAnnotation) Handle() interface{} { function NewBAMAnnotation (line 81) | func NewBAMAnnotation(key string, handle interface{}) Annotation { type noneAnnotation (line 93) | type noneAnnotation struct method Equal (line 102) | func (a *noneAnnotation) Equal(key, value string) bool { method Handle (line 106) | func (a *noneAnnotation) Handle() interface{} { function NewNoneAnnotation (line 98) | func NewNoneAnnotation(key string) Annotation { type noneWithValueAnnotation (line 121) | type noneWithValueAnnotation struct method Equal (line 130) | func (a *noneWithValueAnnotation) Equal(key, value string) bool { method Handle (line 134) | func (a *noneWithValueAnnotation) Handle() interface{} { function NewNoneWithValueAnnotation (line 126) | func NewNoneWithValueAnnotation(key, value string) Annotation { FILE: pkg/generic/descriptor/descriptor.go type FieldDescriptor (line 32) | type FieldDescriptor struct method FieldName (line 51) | func (d *FieldDescriptor) FieldName() string { type GoTagOption (line 46) | type GoTagOption struct type TypeDescriptor (line 64) | type TypeDescriptor struct type StructDescriptor (line 74) | type StructDescriptor struct method CheckRequired (line 83) | func (d *StructDescriptor) CheckRequired(rw map[int32]struct{}) error { type FunctionDescriptor (line 93) | type FunctionDescriptor struct type ServiceDescriptor (line 104) | type ServiceDescriptor struct method LookupFunctionByMethod (line 113) | func (s *ServiceDescriptor) LookupFunctionByMethod(method string) (*Fu... FILE: pkg/generic/descriptor/field_mapping.go type FiledMapping (line 28) | type FiledMapping interface type NewFieldMapping (line 33) | type NewFieldMapping type goTag (line 39) | type goTag struct method Handle (line 54) | func (m *goTag) Handle(field *FieldDescriptor) { FILE: pkg/generic/descriptor/field_mapping_test.go function Test_goTag_Handle (line 25) | func Test_goTag_Handle(t *testing.T) { FILE: pkg/generic/descriptor/http.go type MIMEType (line 31) | type MIMEType constant MIMEApplicationJson (line 34) | MIMEApplicationJson = "application/json" constant MIMEApplicationProtobuf (line 35) | MIMEApplicationProtobuf = "application/x-protobuf" type HTTPRequest (line 44) | type HTTPRequest struct method GetHeader (line 57) | func (req *HTTPRequest) GetHeader(key string) string { method GetCookie (line 62) | func (req *HTTPRequest) GetCookie(key string) string { method GetQuery (line 73) | func (req *HTTPRequest) GetQuery(key string) string { method GetBody (line 84) | func (req *HTTPRequest) GetBody() []byte { method GetMethod (line 89) | func (req *HTTPRequest) GetMethod() string { method GetPath (line 94) | func (req *HTTPRequest) GetPath() string { method GetHost (line 102) | func (req *HTTPRequest) GetHost() string { method GetParam (line 107) | func (req *HTTPRequest) GetParam(key string) string { method GetMapBody (line 115) | func (req *HTTPRequest) GetMapBody(key string) string { method GetPostForm (line 135) | func (req *HTTPRequest) GetPostForm(key string) string { method GetUri (line 140) | func (req *HTTPRequest) GetUri() string { method initializeBodyMap (line 147) | func (req *HTTPRequest) initializeBodyMap() error { type HTTPResponse (line 161) | type HTTPResponse struct method SetStatusCode (line 182) | func (resp *HTTPResponse) SetStatusCode(code int) error { method SetHeader (line 188) | func (resp *HTTPResponse) SetHeader(key, val string) error { method SetCookie (line 194) | func (resp *HTTPResponse) SetCookie(key, val string) error { method SetRawBody (line 200) | func (resp *HTTPResponse) SetRawBody(body []byte) error { method Write (line 225) | func (resp *HTTPResponse) Write(w http.ResponseWriter) error { function NewHTTPResponse (line 172) | func NewHTTPResponse() *HTTPResponse { function NewHTTPPbResponse (line 205) | func NewHTTPPbResponse(initBody interface{}) *HTTPResponse { function NewGeneralHTTPResponse (line 215) | func NewGeneralHTTPResponse(contentType MIMEType, initBody interface{}, ... type Param (line 241) | type Param struct type Params (line 247) | type Params struct method Recycle (line 254) | func (ps *Params) Recycle() { method ByName (line 263) | func (ps *Params) ByName(name string) string { FILE: pkg/generic/descriptor/http_mapping.go type HTTPMapping (line 27) | type HTTPMapping interface type NewHTTPMapping (line 36) | type NewHTTPMapping type apiQuery (line 61) | type apiQuery struct method Request (line 70) | func (m *apiQuery) Request(ctx context.Context, req *HTTPRequest, fiel... method Response (line 75) | func (*apiQuery) Response(ctx context.Context, resp *HTTPResponse, fie... type apiPath (line 80) | type apiPath struct method Request (line 89) | func (m *apiPath) Request(ctx context.Context, req *HTTPRequest, field... method Response (line 97) | func (*apiPath) Response(ctx context.Context, resp *HTTPResponse, fiel... type apiHeader (line 102) | type apiHeader struct method Request (line 111) | func (m *apiHeader) Request(ctx context.Context, req *HTTPRequest, fie... method Response (line 116) | func (m *apiHeader) Response(ctx context.Context, resp *HTTPResponse, ... type apiCookie (line 122) | type apiCookie struct method Request (line 131) | func (m *apiCookie) Request(ctx context.Context, req *HTTPRequest, fie... method Response (line 139) | func (m *apiCookie) Response(ctx context.Context, resp *HTTPResponse, ... type apiBody (line 144) | type apiBody struct method Request (line 153) | func (m *apiBody) Request(ctx context.Context, req *HTTPRequest, field... method Response (line 167) | func (m *apiBody) Response(ctx context.Context, resp *HTTPResponse, fi... type apiHTTPCode (line 180) | type apiHTTPCode struct method Request (line 187) | func (m *apiHTTPCode) Request(ctx context.Context, req *HTTPRequest, f... method Response (line 191) | func (m *apiHTTPCode) Response(ctx context.Context, resp *HTTPResponse... type apiNone (line 196) | type apiNone struct method Request (line 203) | func (m *apiNone) Request(ctx context.Context, req *HTTPRequest, field... method Response (line 207) | func (m *apiNone) Response(ctx context.Context, resp *HTTPResponse, fi... type apiRawBody (line 211) | type apiRawBody struct method Request (line 218) | func (m *apiRawBody) Request(ctx context.Context, req *HTTPRequest, fi... method Response (line 222) | func (m *apiRawBody) Response(ctx context.Context, resp *HTTPResponse,... FILE: pkg/generic/descriptor/http_test.go function TestJSONBody (line 29) | func TestJSONBody(t *testing.T) { function TestMapBody (line 59) | func TestMapBody(t *testing.T) { function TestGetQuery (line 79) | func TestGetQuery(t *testing.T) { function TestGetCookie (line 89) | func TestGetCookie(t *testing.T) { function TestNilURL (line 99) | func TestNilURL(t *testing.T) { function createHTTPRequestWithNoURL (line 110) | func createHTTPRequestWithNoURL(data []byte) (*HTTPRequest, error) { function createHTTPRequest (line 132) | func createHTTPRequest(data []byte) (*HTTPRequest, error) { FILE: pkg/generic/descriptor/render.go type Renderer (line 26) | type Renderer interface type JsonRenderer (line 31) | type JsonRenderer struct method Render (line 33) | func (j JsonRenderer) Render(w http.ResponseWriter, body interface{}) ... method WriteContentType (line 37) | func (j JsonRenderer) WriteContentType(w http.ResponseWriter) { type PbRenderer (line 41) | type PbRenderer struct method Render (line 43) | func (p PbRenderer) Render(w http.ResponseWriter, body interface{}) er... method WriteContentType (line 52) | func (p PbRenderer) WriteContentType(w http.ResponseWriter) { FILE: pkg/generic/descriptor/route.go type Route (line 22) | type Route interface type NewRoute (line 29) | type NewRoute type apiRoute (line 62) | type apiRoute struct method Method (line 68) | func (r *apiRoute) Method() string { method Path (line 72) | func (r *apiRoute) Path() string { method Function (line 76) | func (r *apiRoute) Function() *FunctionDescriptor { FILE: pkg/generic/descriptor/router.go type Router (line 25) | type Router interface type router (line 32) | type router struct method getParams (line 43) | func (r *router) getParams() *Params { method putParams (line 49) | func (r *router) putParams(ps *Params) { method Handle (line 55) | func (r *router) Handle(rt Route) { method Lookup (line 97) | func (r *router) Lookup(req *HTTPRequest) (*FunctionDescriptor, error) { function NewRouter (line 39) | func NewRouter() Router { FILE: pkg/generic/descriptor/tree.go function countParams (line 18) | func countParams(path string) uint16 { type nodeType (line 29) | type nodeType constant static (line 32) | static nodeType = iota constant param (line 33) | param constant catchAll (line 34) | catchAll constant paramLabel (line 35) | paramLabel = byte(':') constant anyLabel (line 36) | anyLabel = byte('*') constant slash (line 37) | slash = "/" constant nilString (line 38) | nilString = "" type node (line 42) | type node struct method addRoute (line 98) | func (n *node) addRoute(path string, function *FunctionDescriptor) { method insert (line 141) | func (n *node) insert(path string, function *FunctionDescriptor, t nod... method getValue (line 261) | func (n *node) getValue(path string, params func() *Params, unescape b... method findChild (line 425) | func (n *node) findChild(l byte) *node { method findChildWithLabel (line 434) | func (n *node) findChildWithLabel(l byte) *node { type children (line 58) | type children function checkPathValid (line 61) | func checkPathValid(path string) { function newNode (line 449) | func newNode(t nodeType, pre string, p *node, child children, f *Functio... FILE: pkg/generic/descriptor/tree_test.go function fakeHandler (line 18) | func fakeHandler(val string) *FunctionDescriptor { type testRequests (line 22) | type testRequests function getParams (line 29) | func getParams() *Params { function checkRequests (line 35) | func checkRequests(t *testing.T, tree *node, requests testRequests, unes... function TestCountParams (line 67) | func TestCountParams(t *testing.T) { function TestNoFunction (line 76) | func TestNoFunction(t *testing.T) { function TestEmptyPath (line 88) | func TestEmptyPath(t *testing.T) { function TestTreeAddAndGet (line 107) | func TestTreeAddAndGet(t *testing.T) { function TestTreeWildcard (line 144) | func TestTreeWildcard(t *testing.T) { function TestUnescapeParameters (line 192) | func TestUnescapeParameters(t *testing.T) { function catchPanic (line 227) | func catchPanic(testFunc func()) (recv interface{}) { type testRoute (line 236) | type testRoute struct function testRoutes (line 241) | func testRoutes(t *testing.T, routes []testRoute) { function TestTreeWildcardConflict (line 260) | func TestTreeWildcardConflict(t *testing.T) { function TestTreeChildConflict (line 281) | func TestTreeChildConflict(t *testing.T) { function TestTreeDuplicatePath (line 297) | func TestTreeDuplicatePath(t *testing.T) { function TestEmptyWildcardName (line 334) | func TestEmptyWildcardName(t *testing.T) { function TestTreeCatchAllConflict (line 354) | func TestTreeCatchAllConflict(t *testing.T) { function TestTreeCatchMaxParams (line 365) | func TestTreeCatchMaxParams(t *testing.T) { function TestTreeDoubleWildcard (line 371) | func TestTreeDoubleWildcard(t *testing.T) { function TestTreeTrailingSlashRedirect (line 393) | func TestTreeTrailingSlashRedirect(t *testing.T) { function TestTreeTrailingSlashRedirect2 (line 492) | func TestTreeTrailingSlashRedirect2(t *testing.T) { function TestTreeRootTrailingSlashRedirect (line 536) | func TestTreeRootTrailingSlashRedirect(t *testing.T) { FILE: pkg/generic/descriptor/type.go type Type (line 26) | type Type method String (line 70) | func (p Type) String() string { method ToThriftTType (line 80) | func (p Type) ToThriftTType() thrift.TType { constant STOP (line 30) | STOP Type = 0 constant VOID (line 31) | VOID Type = 1 constant BOOL (line 32) | BOOL Type = 2 constant BYTE (line 33) | BYTE Type = 3 constant I08 (line 34) | I08 Type = 3 constant DOUBLE (line 35) | DOUBLE Type = 4 constant I16 (line 36) | I16 Type = 6 constant I32 (line 37) | I32 Type = 8 constant I64 (line 38) | I64 Type = 10 constant STRING (line 39) | STRING Type = 11 constant UTF7 (line 40) | UTF7 Type = 11 constant STRUCT (line 41) | STRUCT Type = 12 constant MAP (line 42) | MAP Type = 13 constant SET (line 43) | SET Type = 14 constant LIST (line 44) | LIST Type = 15 constant UTF8 (line 45) | UTF8 Type = 16 constant UTF16 (line 46) | UTF16 Type = 17 constant JSON (line 48) | JSON Type = 19 function FromThriftTType (line 90) | func FromThriftTType(v interface{}) Type { type Void (line 102) | type Void struct FILE: pkg/generic/descriptor/type_test.go function TestFromThriftTType (line 25) | func TestFromThriftTType(t *testing.T) { FILE: pkg/generic/descriptor/util.go function convertToString (line 25) | func convertToString(val interface{}) string { function convertToInt32 (line 51) | func convertToInt32(val interface{}) int32 { FILE: pkg/generic/descriptor/value_mapping.go type ValueMapping (line 25) | type ValueMapping interface type NewValueMapping (line 31) | type NewValueMapping type apiJSConv (line 36) | type apiJSConv struct method Request (line 46) | func (m *apiJSConv) Request(ctx context.Context, val interface{}, fiel... method Response (line 86) | func (m *apiJSConv) Response(ctx context.Context, val interface{}, fie... FILE: pkg/generic/descriptor/value_mapping_test.go function Test_apiJSConv_Request (line 25) | func Test_apiJSConv_Request(t *testing.T) { function Test_apiJSConv_Response (line 62) | func Test_apiJSConv_Response(t *testing.T) { FILE: pkg/generic/descriptor_provider.go type DescriptorProvider (line 26) | type DescriptorProvider interface type GetProviderOption (line 33) | type GetProviderOption interface type ProviderOption (line 37) | type ProviderOption struct FILE: pkg/generic/generic.go type Generic (line 34) | type Generic interface type GetMethodNameByRequestFunc (line 47) | type GetMethodNameByRequestFunc type messageReaderWriterGetter (line 50) | type messageReaderWriterGetter interface type Method (line 55) | type Method struct function BinaryThriftGeneric (line 62) | func BinaryThriftGeneric() Generic { function BinaryThriftGenericV2 (line 80) | func BinaryThriftGenericV2(serviceName string) Generic { function BinaryPbGeneric (line 100) | func BinaryPbGeneric(svcName, packageName string) Generic { function MapThriftGeneric (line 126) | func MapThriftGeneric(p DescriptorProvider) (Generic, error) { function MapThriftGenericForJSON (line 146) | func MapThriftGenericForJSON(p DescriptorProvider) (Generic, error) { function HTTPThriftGeneric (line 167) | func HTTPThriftGeneric(p DescriptorProvider, opts ...Option) (Generic, e... function HTTPPbThriftGeneric (line 186) | func HTTPPbThriftGeneric(p DescriptorProvider, pbp PbDescriptorProvider)... function JSONThriftGeneric (line 207) | func JSONThriftGeneric(p DescriptorProvider, opts ...Option) (Generic, e... function JSONPbGeneric (line 227) | func JSONPbGeneric(p PbDescriptorProviderDynamicGo, opts ...Option) (Gen... function SetBinaryWithBase64 (line 234) | func SetBinaryWithBase64(g Generic, enable bool) error { function SetBinaryWithByteSlice (line 269) | func SetBinaryWithByteSlice(g Generic, enable bool) error { type SetFieldsForEmptyStructMode (line 283) | type SetFieldsForEmptyStructMode constant NotSetFields (line 287) | NotSetFields SetFieldsForEmptyStructMode = iota constant SetNonOptiontionalFields (line 289) | SetNonOptiontionalFields constant SetAllFields (line 291) | SetAllFields function EnableSetFieldsForEmptyStruct (line 300) | func EnableSetFieldsForEmptyStruct(g Generic, mode SetFieldsForEmptyStru... type binaryThriftGeneric (line 317) | type binaryThriftGeneric struct method PayloadCodecType (line 319) | func (g *binaryThriftGeneric) PayloadCodecType() serviceinfo.PayloadCo... method PayloadCodec (line 325) | func (g *binaryThriftGeneric) PayloadCodec() remote.PayloadCodec { method GenericMethod (line 330) | func (g *binaryThriftGeneric) GenericMethod() serviceinfo.GenericMetho... method GetExtra (line 339) | func (g *binaryThriftGeneric) GetExtra(key string) interface{} { method Close (line 347) | func (g *binaryThriftGeneric) Close() error { method IDLServiceName (line 351) | func (g *binaryThriftGeneric) IDLServiceName() string { type binaryThriftGenericV2 (line 355) | type binaryThriftGenericV2 struct method IDLServiceName (line 359) | func (b *binaryThriftGenericV2) IDLServiceName() string { method PayloadCodecType (line 363) | func (b *binaryThriftGenericV2) PayloadCodecType() serviceinfo.Payload... method GenericMethod (line 367) | func (b *binaryThriftGenericV2) GenericMethod() serviceinfo.GenericMet... method GetExtra (line 374) | func (b *binaryThriftGenericV2) GetExtra(key string) interface{} { method Close (line 382) | func (b *binaryThriftGenericV2) Close() error { type binaryPbGeneric (line 386) | type binaryPbGeneric struct method PayloadCodecType (line 390) | func (g *binaryPbGeneric) PayloadCodecType() serviceinfo.PayloadCodec { method GenericMethod (line 394) | func (g *binaryPbGeneric) GenericMethod() serviceinfo.GenericMethodFunc { method Close (line 401) | func (g *binaryPbGeneric) Close() error { method IDLServiceName (line 405) | func (g *binaryPbGeneric) IDLServiceName() string { method GetExtra (line 409) | func (g *binaryPbGeneric) GetExtra(key string) interface{} { type mapThriftGeneric (line 419) | type mapThriftGeneric struct method PayloadCodecType (line 423) | func (g *mapThriftGeneric) PayloadCodecType() serviceinfo.PayloadCodec { method GenericMethod (line 427) | func (g *mapThriftGeneric) GenericMethod() serviceinfo.GenericMethodFu... method Close (line 438) | func (g *mapThriftGeneric) Close() error { method IDLServiceName (line 442) | func (g *mapThriftGeneric) IDLServiceName() string { method GetExtra (line 447) | func (g *mapThriftGeneric) GetExtra(key string) interface{} { type jsonThriftGeneric (line 455) | type jsonThriftGeneric struct method PayloadCodecType (line 459) | func (g *jsonThriftGeneric) PayloadCodecType() serviceinfo.PayloadCodec { method GenericMethod (line 463) | func (g *jsonThriftGeneric) GenericMethod() serviceinfo.GenericMethodF... method Close (line 474) | func (g *jsonThriftGeneric) Close() error { method IDLServiceName (line 478) | func (g *jsonThriftGeneric) IDLServiceName() string { method GetExtra (line 483) | func (g *jsonThriftGeneric) GetExtra(key string) interface{} { type jsonPbGeneric (line 491) | type jsonPbGeneric struct method PayloadCodecType (line 495) | func (g *jsonPbGeneric) PayloadCodecType() serviceinfo.PayloadCodec { method GenericMethod (line 499) | func (g *jsonPbGeneric) GenericMethod() serviceinfo.GenericMethodFunc { method Close (line 510) | func (g *jsonPbGeneric) Close() error { method IDLServiceName (line 514) | func (g *jsonPbGeneric) IDLServiceName() string { method GetExtra (line 519) | func (g *jsonPbGeneric) GetExtra(key string) interface{} { type httpThriftGeneric (line 531) | type httpThriftGeneric struct method PayloadCodecType (line 535) | func (g *httpThriftGeneric) PayloadCodecType() serviceinfo.PayloadCodec { method GenericMethod (line 539) | func (g *httpThriftGeneric) GenericMethod() serviceinfo.GenericMethodF... method Close (line 550) | func (g *httpThriftGeneric) Close() error { method IDLServiceName (line 554) | func (g *httpThriftGeneric) IDLServiceName() string { method GetExtra (line 559) | func (g *httpThriftGeneric) GetExtra(key string) interface{} { type httpPbThriftGeneric (line 572) | type httpPbThriftGeneric struct method PayloadCodecType (line 576) | func (g *httpPbThriftGeneric) PayloadCodecType() serviceinfo.PayloadCo... method GenericMethod (line 580) | func (g *httpPbThriftGeneric) GenericMethod() serviceinfo.GenericMetho... method Close (line 591) | func (g *httpPbThriftGeneric) Close() error { method IDLServiceName (line 595) | func (g *httpPbThriftGeneric) IDLServiceName() string { method GetExtra (line 599) | func (g *httpPbThriftGeneric) GetExtra(key string) interface{} { function newMethodsFunc (line 612) | func newMethodsFunc(readWriterGetter messageReaderWriterGetter) func(sm ... function newMethodsMap (line 626) | func newMethodsMap(readWriterGetter messageReaderWriterGetter) map[servi... function newMethodInfo (line 637) | func newMethodInfo(readWriterGetter messageReaderWriterGetter, sm servic... type methodInfo (line 672) | type methodInfo struct method OneWay (line 677) | func (m *methodInfo) OneWay() bool { FILE: pkg/generic/generic_service.go type Service (line 38) | type Service interface type ServiceV2 (line 45) | type ServiceV2 struct function ServiceInfoWithGeneric (line 73) | func ServiceInfoWithGeneric(g Generic) *serviceinfo.ServiceInfo { function callHandler (line 97) | func callHandler(ctx context.Context, handler, arg, result interface{}) ... function newGenericServiceCallArgs (line 126) | func newGenericServiceCallArgs() interface{} { function newGenericServiceCallResult (line 130) | func newGenericServiceCallResult() interface{} { function clientStreamingHandlerGetter (line 134) | func clientStreamingHandlerGetter(mi serviceinfo.MethodInfo) serviceinfo... function serverStreamingHandlerGetter (line 155) | func serverStreamingHandlerGetter(mi serviceinfo.MethodInfo) serviceinfo... function bidiStreamingHandlerGetter (line 180) | func bidiStreamingHandlerGetter(mi serviceinfo.MethodInfo) serviceinfo.M... type WithCodec (line 206) | type WithCodec interface FILE: pkg/generic/generic_service_test.go function TestGenericService (line 34) | func TestGenericService(t *testing.T) { function TestServiceInfo (line 125) | func TestServiceInfo(t *testing.T) { function TestArgsResult (line 134) | func TestArgsResult(t *testing.T) { FILE: pkg/generic/generic_test.go function TestBinaryThriftGeneric (line 35) | func TestBinaryThriftGeneric(t *testing.T) { function TestMapThriftGeneric (line 45) | func TestMapThriftGeneric(t *testing.T) { function TestMapThriftGenericForJSON (line 75) | func TestMapThriftGenericForJSON(t *testing.T) { function TestHTTPThriftGeneric (line 101) | func TestHTTPThriftGeneric(t *testing.T) { function TestHTTPThriftGenericWithDynamicGo (line 151) | func TestHTTPThriftGenericWithDynamicGo(t *testing.T) { function TestJSONThriftGeneric (line 199) | func TestJSONThriftGeneric(t *testing.T) { function TestJSONThriftGenericWithDynamicGo (line 231) | func TestJSONThriftGenericWithDynamicGo(t *testing.T) { function TestJSONPbGeneric (line 263) | func TestJSONPbGeneric(t *testing.T) { function TestIsCombinedServices (line 295) | func TestIsCombinedServices(t *testing.T) { function TestBinaryPbGeneric (line 339) | func TestBinaryPbGeneric(t *testing.T) { function TestBinaryThriftGenericV2 (line 354) | func TestBinaryThriftGenericV2(t *testing.T) { FILE: pkg/generic/grpcjson_test/generic_init.go function newGenericStreamingClient (line 40) | func newGenericStreamingClient(g generic.Generic, targetIPPort string) g... function newGenericClient (line 51) | func newGenericClient(g generic.Generic, targetIPPort string) genericcli... type StreamingTestImpl (line 63) | type StreamingTestImpl struct method Echo (line 65) | func (s *StreamingTestImpl) Echo(stream kt.TestService_EchoServer) (er... method EchoClient (line 113) | func (s *StreamingTestImpl) EchoClient(stream kt.TestService_EchoClien... method EchoServer (line 131) | func (s *StreamingTestImpl) EchoServer(req *kt.Request, stream kt.Test... method EchoUnary (line 145) | func (s *StreamingTestImpl) EchoUnary(ctx context.Context, req *kt.Req... method EchoPingPong (line 152) | func (s *StreamingTestImpl) EchoPingPong(ctx context.Context, req *kt.... method EchoBizException (line 159) | func (s *StreamingTestImpl) EchoBizException(stream kt.TestService_Ech... function newMockServer (line 176) | func newMockServer(handler kt.TestService, addr net.Addr, opts ...server... function serviceInfo (line 241) | func serviceInfo() *kitex.ServiceInfo { function echoHandler (line 264) | func echoHandler(ctx context.Context, handler, arg, result interface{}) ... type testServiceEchoServer (line 273) | type testServiceEchoServer struct method Send (line 277) | func (x *testServiceEchoServer) Send(m *kt.Response) error { method Recv (line 281) | func (x *testServiceEchoServer) Recv() (*kt.Request, error) { function newTestServiceEchoArgs (line 286) | func newTestServiceEchoArgs() interface{} { function newTestServiceEchoResult (line 290) | func newTestServiceEchoResult() interface{} { function echoClientHandler (line 294) | func echoClientHandler(ctx context.Context, handler, arg, result interfa... type testServiceEchoClientServer (line 303) | type testServiceEchoClientServer struct method SendAndClose (line 307) | func (x *testServiceEchoClientServer) SendAndClose(m *kt.Response) err... method Recv (line 311) | func (x *testServiceEchoClientServer) Recv() (*kt.Request, error) { function newTestServiceEchoClientArgs (line 316) | func newTestServiceEchoClientArgs() interface{} { function newTestServiceEchoClientResult (line 320) | func newTestServiceEchoClientResult() interface{} { function echoServerHandler (line 324) | func echoServerHandler(ctx context.Context, handler, arg, result interfa... type testServiceEchoServerServer (line 337) | type testServiceEchoServerServer struct method Send (line 341) | func (x *testServiceEchoServerServer) Send(m *kt.Response) error { function newTestServiceEchoServerArgs (line 345) | func newTestServiceEchoServerArgs() interface{} { function newTestServiceEchoServerResult (line 349) | func newTestServiceEchoServerResult() interface{} { function echoUnaryHandler (line 353) | func echoUnaryHandler(ctx context.Context, handler, arg, result interfac... function newTestServiceEchoUnaryArgs (line 367) | func newTestServiceEchoUnaryArgs() interface{} { function newTestServiceEchoUnaryResult (line 371) | func newTestServiceEchoUnaryResult() interface{} { function echoBizExceptionHandler (line 375) | func echoBizExceptionHandler(ctx context.Context, handler, arg, result i... type testServiceEchoBizExceptionServer (line 384) | type testServiceEchoBizExceptionServer struct method SendAndClose (line 388) | func (x *testServiceEchoBizExceptionServer) SendAndClose(m *kt.Respons... method Recv (line 392) | func (x *testServiceEchoBizExceptionServer) Recv() (*kt.Request, error) { function newTestServiceEchoBizExceptionArgs (line 397) | func newTestServiceEchoBizExceptionArgs() interface{} { function newTestServiceEchoBizExceptionResult (line 401) | func newTestServiceEchoBizExceptionResult() interface{} { function echoPingPongHandler (line 405) | func echoPingPongHandler(ctx context.Context, handler, arg, result inter... function newTestServiceEchoPingPongArgs (line 416) | func newTestServiceEchoPingPongArgs() interface{} { function newTestServiceEchoPingPongResult (line 420) | func newTestServiceEchoPingPongResult() interface{} { FILE: pkg/generic/grpcjson_test/generic_test.go function TestClientStreaming (line 42) | func TestClientStreaming(t *testing.T) { function TestServerStreaming (line 57) | func TestServerStreaming(t *testing.T) { function TestBidirectionalStreaming (line 72) | func TestBidirectionalStreaming(t *testing.T) { function TestUnary (line 87) | func TestUnary(t *testing.T) { function TestBizException (line 102) | func TestBizException(t *testing.T) { function TestNoneStreaming (line 127) | func TestNoneStreaming(t *testing.T) { function initStreamingClient (line 142) | func initStreamingClient(t *testing.T, addr, idl string, enableDynamicgo... function initGenericClient (line 148) | func initGenericClient(t *testing.T, addr, idl string, enableDynamicgo b... function getJsonThriftGeneric (line 154) | func getJsonThriftGeneric(idl string, enableDynamicgo bool) (generic.Gen... function initMockTestServer (line 175) | func initMockTestServer(handler kt.TestService, address string) server.S... function testClientStreaming (line 182) | func testClientStreaming(t *testing.T, ctx context.Context, cli genericc... function testServerStreaming (line 200) | func testServerStreaming(t *testing.T, ctx context.Context, cli genericc... function testBidirectionalStreaming (line 219) | func testBidirectionalStreaming(t *testing.T, ctx context.Context, cli g... function testUnary (line 257) | func testUnary(t *testing.T, ctx context.Context, cli genericclient.Clie... function testNoneStreaming (line 265) | func testNoneStreaming(t *testing.T, ctx context.Context, cli genericcli... FILE: pkg/generic/grpcjsonpb_test/generic_init.go function init (line 37) | func init() { function newGenericClient (line 44) | func newGenericClient(g generic.Generic, targetIPPort string, cliOpts ..... function newMockTestServer (line 53) | func newMockTestServer(handler mock.Mock, addr net.Addr, opts ...server.... type StreamingTestImpl (line 69) | type StreamingTestImpl struct method UnaryTest (line 71) | func (s *StreamingTestImpl) UnaryTest(ctx context.Context, req *mock.M... method ClientStreamingTest (line 78) | func (s *StreamingTestImpl) ClientStreamingTest(stream mock.Mock_Clien... method ServerStreamingTest (line 95) | func (s *StreamingTestImpl) ServerStreamingTest(req *mock.MockReq, str... method BidirectionalStreamingTest (line 108) | func (s *StreamingTestImpl) BidirectionalStreamingTest(stream mock.Moc... FILE: pkg/generic/grpcjsonpb_test/generic_test.go function TestClientStreaming (line 43) | func TestClientStreaming(t *testing.T) { function TestServerStreaming (line 67) | func TestServerStreaming(t *testing.T) { function TestBidirectionalStreaming (line 92) | func TestBidirectionalStreaming(t *testing.T) { function TestUnary (line 136) | func TestUnary(t *testing.T) { function initStreamingClient (line 151) | func initStreamingClient(t *testing.T, ctx context.Context, addr, idl st... function initMockTestServer (line 160) | func initMockTestServer(handler mock.Mock, address string) server.Server { function Test_invocationContainsPackage (line 167) | func Test_invocationContainsPackage(t *testing.T) { type mockClientStream (line 186) | type mockClientStream struct method GetGRPCStream (line 191) | func (m mockClientStream) GetGRPCStream() streaming.Stream { method Context (line 195) | func (m mockClientStream) Context() context.Context { type mockGRPCStream (line 199) | type mockGRPCStream struct method Context (line 204) | func (m mockGRPCStream) Context() context.Context { FILE: pkg/generic/http_test/generic_init.go type Simple (line 46) | type Simple struct type Nesting (line 55) | type Nesting struct function getString (line 73) | func getString() string { function getBytes (line 77) | func getBytes() []byte { function getSimpleValue (line 81) | func getSimpleValue() *Simple { function getNestingValue (line 92) | func getNestingValue() *Nesting { function newGenericClient (line 128) | func newGenericClient(tp transport.Protocol, destService string, g gener... function newGenericServer (line 135) | func newGenericServer(g generic.Generic, addr net.Addr, handler generic.... type GenericServiceBinaryEchoImpl (line 150) | type GenericServiceBinaryEchoImpl struct method GenericCall (line 155) | func (g *GenericServiceBinaryEchoImpl) GenericCall(ctx context.Context... constant mockMyMsg (line 152) | mockMyMsg = "my msg" type GenericServiceBenchmarkImpl (line 173) | type GenericServiceBenchmarkImpl struct method GenericCall (line 176) | func (g *GenericServiceBenchmarkImpl) GenericCall(ctx context.Context,... type GenericServiceAnnotationImpl (line 181) | type GenericServiceAnnotationImpl struct method GenericCall (line 184) | func (g *GenericServiceAnnotationImpl) GenericCall(ctx context.Context... function assertErr (line 265) | func assertErr(field string, expected, actual interface{}) error { function newMockServer (line 275) | func newMockServer(handler kt.Mock, addr net.Addr, opts ...server.Option... function serviceInfo (line 294) | func serviceInfo() *serviceinfo.ServiceInfo { function newMockTestArgs (line 310) | func newMockTestArgs() interface{} { function newMockTestResult (line 314) | func newMockTestResult() interface{} { function testHandler (line 318) | func testHandler(ctx context.Context, handler, arg, result interface{}) ... function newMockExceptionTestArgs (line 329) | func newMockExceptionTestArgs() interface{} { function newMockExceptionTestResult (line 333) | func newMockExceptionTestResult() interface{} { function exceptionHandler (line 337) | func exceptionHandler(ctx context.Context, handler, args, result interfa... type mockImpl (line 354) | type mockImpl struct method Test (line 357) | func (m *mockImpl) Test(ctx context.Context, req *kt.MockReq) (r strin... method ExceptionTest (line 386) | func (m *mockImpl) ExceptionTest(ctx context.Context, req *kt.MockReq)... FILE: pkg/generic/http_test/generic_test.go function TestRun (line 53) | func TestRun(t *testing.T) { function initThriftClientByIDL (line 61) | func initThriftClientByIDL(t *testing.T, tp transport.Protocol, addr, id... function initThriftServer (line 79) | func initThriftServer(t *testing.T, address string, handler generic.Serv... function initMockServer (line 90) | func initMockServer(t *testing.T, handler kt.Mock, address string) serve... function testThriftNormalBinaryEcho (line 96) | func testThriftNormalBinaryEcho(t *testing.T) { function BenchmarkCompareDynamicgoAndOriginal_Small (line 227) | func BenchmarkCompareDynamicgoAndOriginal_Small(b *testing.B) { function BenchmarkCompareDynamicgoAndOriginal_Medium (line 294) | func BenchmarkCompareDynamicgoAndOriginal_Medium(b *testing.B) { function testThriftException (line 361) | func testThriftException(t *testing.T) { function testRegression (line 407) | func testRegression(t *testing.T) { function testThriftBase64BinaryEcho (line 479) | func testThriftBase64BinaryEcho(t *testing.T) { function testUseRawBodyAndBodyCompatibility (line 558) | func testUseRawBodyAndBodyCompatibility(t *testing.T) { function isEqual (line 599) | func isEqual(a, b interface{}) bool { function checkHeader (line 638) | func checkHeader(t *testing.T, resp *generic.HTTPResponse) { FILE: pkg/generic/httppb_test/generic_init.go function newGenericClient (line 32) | func newGenericClient(destService string, g generic.Generic, targetIPPor... function newGenericServer (line 39) | func newGenericServer(g generic.Generic, addr net.Addr, handler generic.... type GenericServiceEchoImpl (line 53) | type GenericServiceEchoImpl struct method GenericCall (line 56) | func (g *GenericServiceEchoImpl) GenericCall(ctx context.Context, meth... FILE: pkg/generic/httppb_test/generic_test.go function TestRun (line 41) | func TestRun(t *testing.T) { function initThriftClientByIDL (line 45) | func initThriftClientByIDL(t *testing.T, addr, idl, pbIdl string) generi... function initThriftServer (line 62) | func initThriftServer(t *testing.T, address string, handler generic.Serv... function testThriftNormalEcho (line 74) | func testThriftNormalEcho(t *testing.T) { FILE: pkg/generic/httppb_test/idl/echo.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type TestEnum (line 23) | type TestEnum method Enum (line 42) | func (x TestEnum) Enum() *TestEnum { method String (line 48) | func (x TestEnum) String() string { method Descriptor (line 52) | func (TestEnum) Descriptor() protoreflect.EnumDescriptor { method Type (line 56) | func (TestEnum) Type() protoreflect.EnumType { method Number (line 60) | func (x TestEnum) Number() protoreflect.EnumNumber { method EnumDescriptor (line 65) | func (TestEnum) EnumDescriptor() ([]byte, []int) { constant TestEnum_Zero (line 26) | TestEnum_Zero TestEnum = 0 constant TestEnum_First (line 27) | TestEnum_First TestEnum = 1 type Elem (line 69) | type Elem struct method Reset (line 77) | func (x *Elem) Reset() { method String (line 86) | func (x *Elem) String() string { method ProtoMessage (line 90) | func (*Elem) ProtoMessage() {} method ProtoReflect (line 92) | func (x *Elem) ProtoReflect() protoreflect.Message { method Descriptor (line 105) | func (*Elem) Descriptor() ([]byte, []int) { method GetOk (line 109) | func (x *Elem) GetOk() bool { type Message (line 116) | type Message struct method Reset (line 129) | func (x *Message) Reset() { method String (line 138) | func (x *Message) String() string { method ProtoMessage (line 142) | func (*Message) ProtoMessage() {} method ProtoReflect (line 144) | func (x *Message) ProtoReflect() protoreflect.Message { method Descriptor (line 157) | func (*Message) Descriptor() ([]byte, []int) { method GetTiny (line 161) | func (x *Message) GetTiny() int32 { method GetLarge (line 168) | func (x *Message) GetLarge() int64 { method GetTenum (line 175) | func (x *Message) GetTenum() TestEnum { method GetStr (line 182) | func (x *Message) GetStr() string { method GetElems (line 189) | func (x *Message) GetElems() map[string]*Elem { method GetEls (line 196) | func (x *Message) GetEls() []*Elem { function file_echo_proto_rawDescGZIP (line 241) | func file_echo_proto_rawDescGZIP() []byte { function init (line 270) | func init() { file_echo_proto_init() } function file_echo_proto_init (line 271) | func file_echo_proto_init() { FILE: pkg/generic/httppbthrift_codec.go type httpPbThriftCodec (line 33) | type httpPbThriftCodec struct method update (line 59) | func (c *httpPbThriftCodec) update() { method getMethodByReq (line 79) | func (c *httpPbThriftCodec) getMethodByReq(req interface{}) (methodNam... method getMethod (line 95) | func (c *httpPbThriftCodec) getMethod(name string) (Method, error) { method getMessageReaderWriter (line 107) | func (c *httpPbThriftCodec) getMessageReaderWriter() interface{} { method Name (line 116) | func (c *httpPbThriftCodec) Name() string { method Close (line 120) | func (c *httpPbThriftCodec) Close() error { function newHTTPPbThriftCodec (line 43) | func newHTTPPbThriftCodec(p DescriptorProvider, pbp PbDescriptorProvider... function FromHTTPPbRequest (line 137) | func FromHTTPPbRequest(req *http.Request) (*HTTPRequest, error) { FILE: pkg/generic/httppbthrift_codec_test.go function TestFromHTTPPbRequest (line 32) | func TestFromHTTPPbRequest(t *testing.T) { function TestHTTPPbThriftCodec (line 42) | func TestHTTPPbThriftCodec(t *testing.T) { FILE: pkg/generic/httpthrift_codec.go type httpThriftCodec (line 40) | type httpThriftCodec struct method update (line 78) | func (c *httpThriftCodec) update() { method updateMessageReaderWriter (line 91) | func (c *httpThriftCodec) updateMessageReaderWriter() (err error) { method configureMessageReaderWriter (line 100) | func (c *httpThriftCodec) configureMessageReaderWriter(svc *descriptor... method getMessageReaderWriter (line 107) | func (c *httpThriftCodec) getMessageReaderWriter() interface{} { method configureHTTPRequestWriter (line 116) | func (c *httpThriftCodec) configureHTTPRequestWriter(writer *thrift.Wr... method configureHTTPResponseReader (line 123) | func (c *httpThriftCodec) configureHTTPResponseReader(reader *thrift.R... method getMethodByReq (line 131) | func (c *httpThriftCodec) getMethodByReq(req interface{}) (methodName ... method getMethod (line 147) | func (c *httpThriftCodec) getMethod(name string) (Method, error) { method Name (line 159) | func (c *httpThriftCodec) Name() string { method Close (line 163) | func (c *httpThriftCodec) Close() error { function newHTTPThriftCodec (line 53) | func newHTTPThriftCodec(p DescriptorProvider, opts *Options) *httpThrift... function FromHTTPRequest (line 168) | func FromHTTPRequest(req *http.Request) (*HTTPRequest, error) { FILE: pkg/generic/httpthrift_codec_test.go function TestFromHTTPRequest (line 37) | func TestFromHTTPRequest(t *testing.T) { function TestHttpThriftCodec (line 46) | func TestHttpThriftCodec(t *testing.T) { function TestHttpThriftCodecWithDynamicGo (line 82) | func TestHttpThriftCodecWithDynamicGo(t *testing.T) { function getStdHttpRequest (line 116) | func getStdHttpRequest() *http.Request { FILE: pkg/generic/json_test/generic_init.go type Simple (line 59) | type Simple struct type Nesting (line 68) | type Nesting struct function getString (line 86) | func getString() string { function getBytes (line 90) | func getBytes() []byte { function getSimpleValue (line 94) | func getSimpleValue() *Simple { function getNestingValue (line 105) | func getNestingValue() *Nesting { function newGenericClient (line 141) | func newGenericClient(tp transport.Protocol, destService string, g gener... function newGenericServer (line 148) | func newGenericServer(g generic.Generic, addr net.Addr, handler generic.... type GenericServiceImpl (line 163) | type GenericServiceImpl struct method GenericCall (line 166) | func (g *GenericServiceImpl) GenericCall(ctx context.Context, method s... type GenericServiceErrorImpl (line 179) | type GenericServiceErrorImpl struct method GenericCall (line 182) | func (g *GenericServiceErrorImpl) GenericCall(ctx context.Context, met... type GenericServicePingImpl (line 187) | type GenericServicePingImpl struct method GenericCall (line 190) | func (g *GenericServicePingImpl) GenericCall(ctx context.Context, meth... type GenericServiceOnewayImpl (line 197) | type GenericServiceOnewayImpl struct method GenericCall (line 200) | func (g *GenericServiceOnewayImpl) GenericCall(ctx context.Context, me... type GenericServiceVoidImpl (line 207) | type GenericServiceVoidImpl struct method GenericCall (line 210) | func (g *GenericServiceVoidImpl) GenericCall(ctx context.Context, meth... type GenericServiceBinaryEchoImpl (line 226) | type GenericServiceBinaryEchoImpl struct method GenericCall (line 236) | func (g *GenericServiceBinaryEchoImpl) GenericCall(ctx context.Context... constant mockMyMsg (line 228) | mockMyMsg = "my msg" type BinaryEcho (line 230) | type BinaryEcho struct type GenericServiceBenchmarkImpl (line 250) | type GenericServiceBenchmarkImpl struct method GenericCall (line 253) | func (g *GenericServiceBenchmarkImpl) GenericCall(ctx context.Context,... function newMockServer (line 263) | func newMockServer(handler kt.Mock, addr net.Addr, opts ...server.Option... function serviceInfo (line 284) | func serviceInfo() *serviceinfo.ServiceInfo { function newMockTestArgs (line 300) | func newMockTestArgs() interface{} { function newMockTestResult (line 304) | func newMockTestResult() interface{} { function testHandler (line 308) | func testHandler(ctx context.Context, handler, arg, result interface{}) ... function newMockExceptionTestArgs (line 319) | func newMockExceptionTestArgs() interface{} { function newMockExceptionTestResult (line 323) | func newMockExceptionTestResult() interface{} { function exceptionHandler (line 327) | func exceptionHandler(ctx context.Context, handler, args, result interfa... type mockImpl (line 344) | type mockImpl struct method Test (line 347) | func (m *mockImpl) Test(ctx context.Context, req *kt.MockReq) (r strin... method ExceptionTest (line 376) | func (m *mockImpl) ExceptionTest(ctx context.Context, req *kt.MockReq)... type GenericRegressionImpl (line 405) | type GenericRegressionImpl struct method GenericCall (line 408) | func (g *GenericRegressionImpl) GenericCall(ctx context.Context, metho... FILE: pkg/generic/json_test/generic_test.go function TestRun (line 45) | func TestRun(t *testing.T) { function testThrift (line 63) | func testThrift(t *testing.T) { function testThriftWithDynamicGo (line 86) | func testThriftWithDynamicGo(t *testing.T) { function BenchmarkCompareDynamicGoAndOriginal_Small (line 125) | func BenchmarkCompareDynamicGoAndOriginal_Small(b *testing.B) { function BenchmarkCompareDynamicGoAndOriginal_Medium (line 174) | func BenchmarkCompareDynamicGoAndOriginal_Medium(b *testing.B) { function testThriftPingMethod (line 223) | func testThriftPingMethod(t *testing.T) { function testThriftPingMethodWithDynamicGo (line 238) | func testThriftPingMethodWithDynamicGo(t *testing.T) { function testThriftError (line 276) | func testThriftError(t *testing.T) { function testThriftOnewayMethod (line 313) | func testThriftOnewayMethod(t *testing.T) { function testThriftOnewayMethodWithDynamicGo (line 326) | func testThriftOnewayMethodWithDynamicGo(t *testing.T) { function testThriftVoidMethod (line 358) | func testThriftVoidMethod(t *testing.T) { function testThriftVoidMethodWithDynamicGo (line 375) | func testThriftVoidMethodWithDynamicGo(t *testing.T) { function testThrift2NormalServer (line 411) | func testThrift2NormalServer(t *testing.T) { function testThriftException (line 428) | func testThriftException(t *testing.T) { function testThriftRawBinaryEcho (line 449) | func testThriftRawBinaryEcho(t *testing.T) { function testThriftBase64BinaryEcho (line 478) | func testThriftBase64BinaryEcho(t *testing.T) { function testRegression (line 509) | func testRegression(t *testing.T) { function TestUnknownError (line 553) | func TestUnknownError(t *testing.T) { function initThriftMockClient (line 566) | func initThriftMockClient(t *testing.T, tp transport.Protocol, enableDyn... function initThriftClient (line 582) | func initThriftClient(tp transport.Protocol, t *testing.T, addr, idl str... function initThriftServer (line 601) | func initThriftServer(t *testing.T, address string, handler generic.Serv... function initMockServer (line 621) | func initMockServer(t *testing.T, handler kt.Mock, address string) serve... function testParseModeWithDynamicGo (line 628) | func testParseModeWithDynamicGo(t *testing.T) { FILE: pkg/generic/jsonpb_codec.go type jsonPbCodec (line 32) | type jsonPbCodec struct method update (line 62) | func (c *jsonPbCodec) update() { method getMessageReaderWriter (line 76) | func (c *jsonPbCodec) getMessageReaderWriter() interface{} { method getMethod (line 85) | func (c *jsonPbCodec) getMethod(method string) (Method, error) { method Name (line 95) | func (c *jsonPbCodec) Name() string { method Close (line 99) | func (c *jsonPbCodec) Close() error { function newJsonPbCodec (line 44) | func newJsonPbCodec(p PbDescriptorProviderDynamicGo, opts *Options) *jso... function getStreamingMode (line 103) | func getStreamingMode(fnSvc *dproto.MethodDescriptor) serviceinfo.Stream... FILE: pkg/generic/jsonpb_codec_test.go function TestRun (line 36) | func TestRun(t *testing.T) { function TestJsonPbCodec (line 40) | func TestJsonPbCodec(t *testing.T) { FILE: pkg/generic/jsonpb_test/generic_init.go function newGenericClient (line 42) | func newGenericClient(destService string, g generic.Generic, targetIPPor... function newGenericServer (line 49) | func newGenericServer(g generic.Generic, addr net.Addr, handler generic.... type TestEchoService (line 64) | type TestEchoService struct method GenericCall (line 67) | func (g *TestEchoService) GenericCall(ctx context.Context, method stri... type TestExampleMethodService (line 84) | type TestExampleMethodService struct method GenericCall (line 87) | func (g *TestExampleMethodService) GenericCall(ctx context.Context, me... type TestVoidService (line 101) | type TestVoidService struct method GenericCall (line 104) | func (g *TestVoidService) GenericCall(ctx context.Context, method stri... type TestExampleMethod2Service (line 118) | type TestExampleMethod2Service struct method GenericCall (line 121) | func (g *TestExampleMethod2Service) GenericCall(ctx context.Context, m... type TestInt2FloatMethodService (line 145) | type TestInt2FloatMethodService struct method GenericCall (line 156) | func (g *TestInt2FloatMethodService) GenericCall(ctx context.Context, ... type ExampleInt2Float (line 147) | type ExampleInt2Float struct type TestInt2FloatMethod2Service (line 171) | type TestInt2FloatMethod2Service struct method GenericCall (line 174) | func (g *TestInt2FloatMethod2Service) GenericCall(ctx context.Context,... function getEchoReq (line 188) | func getEchoReq() string { function getBizErrReq (line 192) | func getBizErrReq() string { function getEchoRes (line 196) | func getEchoRes() string { function getExampleMethodReq (line 200) | func getExampleMethodReq() string { function getExampleMethodRes (line 204) | func getExampleMethodRes() string { function getVoidReq (line 208) | func getVoidReq() string { function getVoidRes (line 212) | func getVoidRes() string { function getExampleMethod2Req (line 216) | func getExampleMethod2Req() string { function getExampleMethod2Res (line 220) | func getExampleMethod2Res() string { function getInt2FloatMethodReq (line 224) | func getInt2FloatMethodReq() string { function getInt2FloatMethodRes (line 228) | func getInt2FloatMethodRes() string { function getInt2FloatMethod2Res (line 232) | func getInt2FloatMethod2Res() string { function getInt2FloatMethod2Req (line 236) | func getInt2FloatMethod2Req() string { FILE: pkg/generic/jsonpb_test/generic_test.go function TestRun (line 36) | func TestRun(t *testing.T) { function initPbServerByIDLDynamicGo (line 45) | func initPbServerByIDLDynamicGo(t *testing.T, address string, handler ge... function initPbClientByIDLDynamicGo (line 60) | func initPbClientByIDLDynamicGo(t *testing.T, addr, destSvcName, pbIdl s... function TestEcho (line 74) | func TestEcho(t *testing.T) { function TestBizErr (line 94) | func TestBizErr(t *testing.T) { function TestExampleMethod (line 112) | func TestExampleMethod(t *testing.T) { function TestVoid (line 132) | func TestVoid(t *testing.T) { function TestExampleMethod2 (line 151) | func TestExampleMethod2(t *testing.T) { function TestInt2FloatMethod (line 176) | func TestInt2FloatMethod(t *testing.T) { function TestInt2FloatMethod2 (line 196) | func TestInt2FloatMethod2(t *testing.T) { function MapsEqual (line 215) | func MapsEqual(map1, map2 map[string]interface{}) bool { FILE: pkg/generic/jsonthrift_codec.go type jsonThriftCodec (line 32) | type jsonThriftCodec struct method update (line 75) | func (c *jsonThriftCodec) update() { method updateMessageReaderWriter (line 88) | func (c *jsonThriftCodec) updateMessageReaderWriter() (err error) { method configureMessageReaderWriter (line 97) | func (c *jsonThriftCodec) configureMessageReaderWriter(svc *descriptor... method getMessageReaderWriter (line 104) | func (c *jsonThriftCodec) getMessageReaderWriter() interface{} { method configureJSONWriter (line 113) | func (c *jsonThriftCodec) configureJSONWriter(writer *thrift.WriteJSON) { method configureJSONReader (line 120) | func (c *jsonThriftCodec) configureJSONReader(reader *thrift.ReadJSON) { method getMethod (line 127) | func (c *jsonThriftCodec) getMethod(method string) (Method, error) { method Name (line 135) | func (c *jsonThriftCodec) Name() string { method Close (line 139) | func (c *jsonThriftCodec) Close() error { function newJsonThriftCodec (line 45) | func newJsonThriftCodec(p DescriptorProvider, opts *Options) *jsonThrift... FILE: pkg/generic/jsonthrift_codec_test.go function TestJsonThriftCodec (line 32) | func TestJsonThriftCodec(t *testing.T) { function TestJsonThriftCodecWithDynamicGo (line 56) | func TestJsonThriftCodecWithDynamicGo(t *testing.T) { function assertDynamicgoOptions (line 84) | func assertDynamicgoOptions(t *testing.T, exp, act conv.Options) { function TestJsonThriftCodec_SelfRef (line 103) | func TestJsonThriftCodec_SelfRef(t *testing.T) { function TestJsonThriftGenericUpdateMethods (line 143) | func TestJsonThriftGenericUpdateMethods(t *testing.T) { function TestJsonThriftGenericUpdateStructs (line 177) | func TestJsonThriftGenericUpdateStructs(t *testing.T) { FILE: pkg/generic/map_test/generic_init.go function newGenericClient (line 56) | func newGenericClient(destService string, g generic.Generic, targetIPPor... function newGenericServer (line 62) | func newGenericServer(g generic.Generic, addr net.Addr, handler generic.... type GenericServiceImpl (line 77) | type GenericServiceImpl struct method GenericCall (line 80) | func (g *GenericServiceImpl) GenericCall(ctx context.Context, method s... type GenericServiceWithBase64Binary (line 89) | type GenericServiceWithBase64Binary struct method GenericCall (line 92) | func (g *GenericServiceWithBase64Binary) GenericCall(ctx context.Conte... type GenericServiceWithByteSliceImpl (line 104) | type GenericServiceWithByteSliceImpl struct method GenericCall (line 107) | func (g *GenericServiceWithByteSliceImpl) GenericCall(ctx context.Cont... type GenericServiceErrorImpl (line 120) | type GenericServiceErrorImpl struct method GenericCall (line 123) | func (g *GenericServiceErrorImpl) GenericCall(ctx context.Context, met... type GenericServicePingImpl (line 128) | type GenericServicePingImpl struct method GenericCall (line 131) | func (g *GenericServicePingImpl) GenericCall(ctx context.Context, meth... type GenericServiceOnewayImpl (line 138) | type GenericServiceOnewayImpl struct method GenericCall (line 141) | func (g *GenericServiceOnewayImpl) GenericCall(ctx context.Context, me... type GenericServiceVoidImpl (line 148) | type GenericServiceVoidImpl struct method GenericCall (line 151) | func (g *GenericServiceVoidImpl) GenericCall(ctx context.Context, meth... function newMockServer (line 172) | func newMockServer(handler kt.Mock, addr net.Addr, opts ...server.Option... function serviceInfo (line 191) | func serviceInfo() *serviceinfo.ServiceInfo { function newMockTestArgs (line 206) | func newMockTestArgs() interface{} { function newMockTestResult (line 210) | func newMockTestResult() interface{} { function testHandler (line 214) | func testHandler(ctx context.Context, handler, arg, result interface{}) ... type mockImpl (line 225) | type mockImpl struct method Test (line 228) | func (m *mockImpl) Test(ctx context.Context, req *kt.MockReq) (r strin... method ExceptionTest (line 254) | func (m *mockImpl) ExceptionTest(ctx context.Context, req *kt.MockReq)... FILE: pkg/generic/map_test/generic_test.go function TestThrift (line 41) | func TestThrift(t *testing.T) { function TestThriftPingMethod (line 269) | func TestThriftPingMethod(t *testing.T) { function TestThriftError (line 282) | func TestThriftError(t *testing.T) { function TestThriftOnewayMethod (line 293) | func TestThriftOnewayMethod(t *testing.T) { function TestThriftVoidMethod (line 304) | func TestThriftVoidMethod(t *testing.T) { function TestBase64Binary (line 315) | func TestBase64Binary(t *testing.T) { function TestSetSetFieldsForEmptyStruct (line 330) | func TestSetSetFieldsForEmptyStruct(t *testing.T) { function TestBinaryWithByteSlice (line 349) | func TestBinaryWithByteSlice(t *testing.T) { function TestBinaryWithBase64AndByteSlice (line 363) | func TestBinaryWithBase64AndByteSlice(t *testing.T) { function TestThrift2NormalServer (line 377) | func TestThrift2NormalServer(t *testing.T) { function initThriftMockClient (line 387) | func initThriftMockClient(t *testing.T, address string) genericclient.Cl... function initThriftClient (line 397) | func initThriftClient(t *testing.T, addr string, base64Binary, byteSlice... function initThriftClientByIDL (line 401) | func initThriftClientByIDL(t *testing.T, addr, idl string, base64Binary,... function initThriftServer (line 417) | func initThriftServer(t *testing.T, address string, handler generic.Serv... function initMockServer (line 432) | func initMockServer(t *testing.T, handler kt.Mock, address string) serve... type testGeneric (line 438) | type testGeneric struct method Close (line 443) | func (g *testGeneric) Close() error { function TestMapThriftGenericClientFinalizer (line 448) | func TestMapThriftGenericClientFinalizer(t *testing.T) { function mb (line 503) | func mb(byteSize uint64) float32 { FILE: pkg/generic/mapthrift_codec.go type mapThriftCodec (line 30) | type mapThriftCodec struct method update (line 58) | func (c *mapThriftCodec) update() { method updateMessageReaderWriter (line 71) | func (c *mapThriftCodec) updateMessageReaderWriter() (err error) { method configureMessageReaderWriter (line 80) | func (c *mapThriftCodec) configureMessageReaderWriter(svc *descriptor.... method getMessageReaderWriter (line 92) | func (c *mapThriftCodec) getMessageReaderWriter() interface{} { method configureStructWriter (line 101) | func (c *mapThriftCodec) configureStructWriter(writer *thrift.WriteStr... method configureStructReader (line 105) | func (c *mapThriftCodec) configureStructReader(reader *thrift.ReadStru... method getMethod (line 110) | func (c *mapThriftCodec) getMethod(method string) (Method, error) { method Name (line 118) | func (c *mapThriftCodec) Name() string { method Close (line 122) | func (c *mapThriftCodec) Close() error { function newMapThriftCodec (line 42) | func newMapThriftCodec(p DescriptorProvider, forJSON bool) *mapThriftCod... FILE: pkg/generic/mapthrift_codec_test.go function TestMapThriftCodec (line 30) | func TestMapThriftCodec(t *testing.T) { function TestMapThriftCodecSelfRef (line 65) | func TestMapThriftCodecSelfRef(t *testing.T) { function TestMapThriftCodecForJSON (line 82) | func TestMapThriftCodecForJSON(t *testing.T) { FILE: pkg/generic/option.go type Options (line 47) | type Options struct method apply (line 59) | func (o *Options) apply(opts []Option) { type Option (line 54) | type Option struct function WithCustomDynamicGoConvOpts (line 66) | func WithCustomDynamicGoConvOpts(opts *conv.Options) Option { function UseRawBodyForHTTPResp (line 74) | func UseRawBodyForHTTPResp(enable bool) Option { FILE: pkg/generic/option_test.go function TestWithCustomDynamicGoConvOpts (line 27) | func TestWithCustomDynamicGoConvOpts(t *testing.T) { function TestUseRawBodyForHTTPResp (line 36) | func TestUseRawBodyForHTTPResp(t *testing.T) { FILE: pkg/generic/pb_descriptor_provider.go type PbDescriptorProvider (line 26) | type PbDescriptorProvider interface type PbDescriptorProviderDynamicGo (line 33) | type PbDescriptorProviderDynamicGo interface FILE: pkg/generic/pbidl_provider.go type PbContentProvider (line 30) | type PbContentProvider struct method UpdateIDL (line 61) | func (p *PbContentProvider) UpdateIDL(main string, includes map[string... method Provide (line 103) | func (p *PbContentProvider) Provide() <-chan proto.ServiceDescriptor { method Close (line 107) | func (p *PbContentProvider) Close() error { type PbFileProviderWithDynamicGo (line 35) | type PbFileProviderWithDynamicGo struct method UpdateIDL (line 147) | func (p *PbFileProviderWithDynamicGo) UpdateIDL(ctx context.Context, o... method Provide (line 166) | func (p *PbFileProviderWithDynamicGo) Provide() <-chan *dproto.Service... method Close (line 170) | func (p *PbFileProviderWithDynamicGo) Close() error { function NewPbContentProvider (line 45) | func NewPbContentProvider(main string, includes map[string]string) (PbDe... function parseProto (line 80) | func parseProto(main string, includes map[string]string) (proto.ServiceD... function NewPbFileProviderWithDynamicGo (line 115) | func NewPbFileProviderWithDynamicGo(main string, ctx context.Context, op... function NewPbContentProviderWithDynamicGo (line 131) | func NewPbContentProviderWithDynamicGo(ctx context.Context, options dpro... FILE: pkg/generic/pbidl_provider_test.go function TestPbContentProvider (line 29) | func TestPbContentProvider(t *testing.T) { function TestPbContentProviderDynamicGo (line 53) | func TestPbContentProviderDynamicGo(t *testing.T) { function TestPbFileProviderWithDynamicGo (line 65) | func TestPbFileProviderWithDynamicGo(t *testing.T) { function TestPbContentProviderWithDynamicGo (line 77) | func TestPbContentProviderWithDynamicGo(t *testing.T) { FILE: pkg/generic/proto/json.go type JSONReaderWriter (line 32) | type JSONReaderWriter struct function NewJsonReaderWriter (line 37) | func NewJsonReaderWriter(svc *dproto.ServiceDescriptor, convOpts *conv.O... function NewWriteJSON (line 42) | func NewWriteJSON(svc *dproto.ServiceDescriptor, convOpts *conv.Options)... type WriteJSON (line 50) | type WriteJSON struct method Write (line 58) | func (m *WriteJSON) Write(ctx context.Context, msg interface{}, method... function NewReadJSON (line 93) | func NewReadJSON(svc *dproto.ServiceDescriptor, convOpts *conv.Options) ... type ReadJSON (line 102) | type ReadJSON struct method Read (line 110) | func (m *ReadJSON) Read(ctx context.Context, method string, isClient b... FILE: pkg/generic/proto/json_test.go function TestRun (line 40) | func TestRun(t *testing.T) { function makePBDynamicStruct (line 45) | func makePBDynamicStruct(idl, message string, includes ...string) (*dyna... function TestWrite (line 61) | func TestWrite(t *testing.T) { function deepEqual (line 92) | func deepEqual(t *testing.T, a, b interface{}) bool { function TestRead (line 105) | func TestRead(t *testing.T) { function getExampleReq (line 135) | func getExampleReq() string { function readExampleReqProtoBufData (line 140) | func readExampleReqProtoBufData() []byte { FILE: pkg/generic/proto/protobuf.go type MessageReader (line 24) | type MessageReader interface type MessageWriter (line 29) | type MessageWriter interface FILE: pkg/generic/proto/raw.go type RawReaderWriter (line 23) | type RawReaderWriter struct function NewRawReaderWriter (line 28) | func NewRawReaderWriter() *RawReaderWriter { function NewRawWriter (line 33) | func NewRawWriter() *RawWriter { type RawWriter (line 38) | type RawWriter struct method Write (line 43) | func (m *RawWriter) Write(ctx context.Context, msg interface{}, method... function NewRawReader (line 48) | func NewRawReader() *RawReader { type RawReader (line 53) | type RawReader struct method Read (line 58) | func (m *RawReader) Read(ctx context.Context, method string, isClient ... FILE: pkg/generic/proto/raw_test.go function TestWriteRaw_Write (line 27) | func TestWriteRaw_Write(t *testing.T) { function TestReadRaw_Read (line 39) | func TestReadRaw_Read(t *testing.T) { FILE: pkg/generic/proto/type.go type Message (line 30) | type Message interface function NewMessage (line 37) | func NewMessage(descriptor MessageDescriptor) Message { FILE: pkg/generic/reflect_test/map_test.go function TestThriftMapExample (line 39) | func TestThriftMapExample(t *testing.T) { function BenchmarkThriftMapExample (line 43) | func BenchmarkThriftMapExample(b *testing.B) { function testThriftMapExample (line 49) | func testThriftMapExample(t testing.TB) { function initThriftMapClient (line 73) | func initThriftMapClient(addr, idl string) genericclient.Client { function newGenericClient (line 89) | func newGenericClient(destService string, g generic.Generic, targetIPPor... function initThriftMapServer (line 96) | func initThriftMapServer(address, idl string, handler generic.Service) s... function newGenericServer (line 110) | func newGenericServer(g generic.Generic, addr net.Addr, handler generic.... type exampleServerImpl (line 124) | type exampleServerImpl struct method GenericCall (line 127) | func (g *exampleServerImpl) GenericCall(ctx context.Context, method st... function makeExampleRespMap (line 150) | func makeExampleRespMap(msg, require_field, logid string) (map[string]in... function makeExampleReqMap (line 160) | func makeExampleReqMap(B bool, A, logid string) map[string]interface{} { FILE: pkg/generic/reflect_test/reflect_test.go function TestMain (line 44) | func TestMain(m *testing.M) { function TestThriftReflectExample (line 73) | func TestThriftReflectExample(t *testing.T) { function BenchmarkThriftReflectExample_Node (line 78) | func BenchmarkThriftReflectExample_Node(b *testing.B) { function BenchmarkThriftReflectExample_DOM (line 84) | func BenchmarkThriftReflectExample_DOM(b *testing.B) { function testThriftReflectExample_Node (line 90) | func testThriftReflectExample_Node(t testing.TB) { function testThriftReflectExample_DOM (line 126) | func testThriftReflectExample_DOM(t testing.TB) { function initExampleDescriptor (line 168) | func initExampleDescriptor() { function initServer (line 179) | func initServer(addr string) server.Server { function initClient (line 197) | func initClient(addr string) genericclient.Client { function makeExampleRespBinary (line 205) | func makeExampleRespBinary(msg, require_field, logid string) ([]byte, er... function makeExampleReqBinary (line 234) | func makeExampleReqBinary(B bool, A, logid string) ([]byte, error) { constant method (line 353) | method = "ExampleMethod2" constant reqMsg (line 354) | reqMsg = "pending" constant respMsg (line 355) | respMsg = "ok" type ExampleValueServiceImpl (line 359) | type ExampleValueServiceImpl struct method GenericCall (line 362) | func (g *ExampleValueServiceImpl) GenericCall(ctx context.Context, met... function exampleServerHandler (line 383) | func exampleServerHandler(request []byte) (resp []byte, err error) { function exampleClientHandler_Node (line 417) | func exampleClientHandler_Node(response []byte, log_id string) error { function exampleClientHandler_DOM (line 440) | func exampleClientHandler_DOM(response []byte, log_id string) error { FILE: pkg/generic/streaming.go type ClientStreamingServer (line 27) | type ClientStreamingServer interface type clientStreamingServer (line 42) | type clientStreamingServer struct method Recv (line 47) | func (s *clientStreamingServer) Recv(ctx context.Context) (req interfa... method SendAndClose (line 56) | func (s *clientStreamingServer) SendAndClose(ctx context.Context, res ... method SetHeader (line 62) | func (s *clientStreamingServer) SetHeader(hd streaming.Header) error { method SendHeader (line 66) | func (s *clientStreamingServer) SendHeader(hd streaming.Header) error { method SetTrailer (line 70) | func (s *clientStreamingServer) SetTrailer(hd streaming.Trailer) error { method Streaming (line 74) | func (s *clientStreamingServer) Streaming() streaming.ServerStream { type ServerStreamingServer (line 79) | type ServerStreamingServer interface type serverStreamingServer (line 92) | type serverStreamingServer struct method Send (line 97) | func (s *serverStreamingServer) Send(ctx context.Context, res interfac... method SetHeader (line 103) | func (s *serverStreamingServer) SetHeader(hd streaming.Header) error { method SendHeader (line 107) | func (s *serverStreamingServer) SendHeader(hd streaming.Header) error { method SetTrailer (line 111) | func (s *serverStreamingServer) SetTrailer(hd streaming.Trailer) error { method Streaming (line 115) | func (s *serverStreamingServer) Streaming() streaming.ServerStream { type BidiStreamingServer (line 120) | type BidiStreamingServer interface type bidiStreamingServer (line 135) | type bidiStreamingServer struct method Recv (line 140) | func (s *bidiStreamingServer) Recv(ctx context.Context) (req interface... method Send (line 149) | func (s *bidiStreamingServer) Send(ctx context.Context, res interface{... method SetHeader (line 155) | func (s *bidiStreamingServer) SetHeader(hd streaming.Header) error { method SendHeader (line 159) | func (s *bidiStreamingServer) SendHeader(hd streaming.Header) error { method SetTrailer (line 163) | func (s *bidiStreamingServer) SetTrailer(hd streaming.Trailer) error { method Streaming (line 167) | func (s *bidiStreamingServer) Streaming() streaming.ServerStream { FILE: pkg/generic/thrift/base.go function NewBase (line 29) | func NewBase() *Base { function NewBaseResp (line 39) | func NewBaseResp() *BaseResp { function MergeBase (line 46) | func MergeBase(jsonBase, frameworkBase Base) Base { function mergeBaseAny (line 60) | func mergeBaseAny(jsonBase any, frkBase *Base) *Base { FILE: pkg/generic/thrift/base_test.go function TestMergeRequestBase (line 24) | func TestMergeRequestBase(t *testing.T) { function Test_mergeBaseAny (line 68) | func Test_mergeBaseAny(t *testing.T) { FILE: pkg/generic/thrift/binary.go type WriteBinary (line 28) | type WriteBinary struct method Write (line 34) | func (w *WriteBinary) Write(ctx context.Context, out bufiox.Writer, ms... function NewWriteBinary (line 30) | func NewWriteBinary() *WriteBinary { FILE: pkg/generic/thrift/http.go type HTTPReaderWriter (line 39) | type HTTPReaderWriter struct function NewHTTPReaderWriter (line 44) | func NewHTTPReaderWriter(svc *descriptor.ServiceDescriptor) *HTTPReaderW... type WriteHTTPRequest (line 49) | type WriteHTTPRequest struct method SetBinaryWithBase64 (line 74) | func (w *WriteHTTPRequest) SetBinaryWithBase64(enable bool) { method SetDynamicGo (line 79) | func (w *WriteHTTPRequest) SetDynamicGo(convOpts, convOptsWithThriftBa... method originalWrite (line 86) | func (w *WriteHTTPRequest) originalWrite(ctx context.Context, out bufi... method Write (line 211) | func (w *WriteHTTPRequest) Write(ctx context.Context, out bufiox.Write... function NewWriteHTTPRequest (line 68) | func NewWriteHTTPRequest(svc *descriptor.ServiceDescriptor) *WriteHTTPRe... type ReadHTTPResponse (line 107) | type ReadHTTPResponse struct method SetBase64Binary (line 125) | func (r *ReadHTTPResponse) SetBase64Binary(enable bool) { method SetUseRawBodyForHTTPResp (line 130) | func (r *ReadHTTPResponse) SetUseRawBodyForHTTPResp(useRawBodyForHTTPR... method SetDynamicGo (line 135) | func (r *ReadHTTPResponse) SetDynamicGo(convOpts *conv.Options) { method Read (line 141) | func (r *ReadHTTPResponse) Read(ctx context.Context, method string, is... method originalRead (line 189) | func (r *ReadHTTPResponse) originalRead(ctx context.Context, method st... function NewReadHTTPResponse (line 119) | func NewReadHTTPResponse(svc *descriptor.ServiceDescriptor) *ReadHTTPRes... FILE: pkg/generic/thrift/http_pb.go type HTTPPbReaderWriter (line 34) | type HTTPPbReaderWriter struct function NewHTTPPbReaderWriter (line 39) | func NewHTTPPbReaderWriter(svc *descriptor.ServiceDescriptor, pbsvc prot... type WriteHTTPPbRequest (line 44) | type WriteHTTPPbRequest struct method Write (line 58) | func (w *WriteHTTPPbRequest) Write(ctx context.Context, out bufiox.Wri... function NewWriteHTTPPbRequest (line 53) | func NewWriteHTTPPbRequest(svc *descriptor.ServiceDescriptor, pbSvc *des... type ReadHTTPPbResponse (line 87) | type ReadHTTPPbResponse struct method Read (line 101) | func (r *ReadHTTPPbResponse) Read(ctx context.Context, method string, ... function NewReadHTTPPbResponse (line 96) | func NewReadHTTPPbResponse(svc *descriptor.ServiceDescriptor, pbSvc prot... FILE: pkg/generic/thrift/json.go type JSONReaderWriter (line 43) | type JSONReaderWriter struct function NewJsonReaderWriter (line 48) | func NewJsonReaderWriter(svc *descriptor.ServiceDescriptor) *JSONReaderW... function NewWriteJSON (line 53) | func NewWriteJSON(svc *descriptor.ServiceDescriptor) *WriteJSON { constant voidWholeLen (line 61) | voidWholeLen = 5 type WriteJSON (line 66) | type WriteJSON struct method SetBase64Binary (line 78) | func (m *WriteJSON) SetBase64Binary(enable bool) { method SetDynamicGo (line 83) | func (m *WriteJSON) SetDynamicGo(convOpts, convOptsWithThriftBase *con... method originalWrite (line 89) | func (m *WriteJSON) originalWrite(ctx context.Context, out bufiox.Writ... method Write (line 304) | func (m *WriteJSON) Write(ctx context.Context, out bufiox.Writer, msg ... function NewReadJSON (line 141) | func NewReadJSON(svc *descriptor.ServiceDescriptor) *ReadJSON { type ReadJSON (line 150) | type ReadJSON struct method SetBinaryWithBase64 (line 162) | func (m *ReadJSON) SetBinaryWithBase64(enable bool) { method SetDynamicGo (line 167) | func (m *ReadJSON) SetDynamicGo(convOpts, convOptsWithException *conv.... method Read (line 174) | func (m *ReadJSON) Read(ctx context.Context, method string, isClient b... method originalRead (line 230) | func (m *ReadJSON) originalRead(ctx context.Context, method string, is... function removePrefixAndSuffix (line 272) | func removePrefixAndSuffix(buf []byte) []byte { function jsonWriter (line 279) | func jsonWriter(ctx context.Context, body *gjson.Result, typeDsc *descri... function structReader (line 290) | func structReader(ctx context.Context, typeDesc *descriptor.TypeDescript... type MsgType (line 352) | type MsgType function writeFields (line 354) | func writeFields(ctx context.Context, out bufiox.Writer, dynamicgoTypeDs... function writeUnwrappedFields (line 394) | func writeUnwrappedFields(ctx context.Context, out bufiox.Writer, dynami... FILE: pkg/generic/thrift/parse.go constant initRecursionDepth (line 36) | initRecursionDepth = 0 type ParseMode (line 40) | type ParseMode constant LastServiceOnly (line 44) | LastServiceOnly ParseMode = iota constant FirstServiceOnly (line 47) | FirstServiceOnly constant CombineServices (line 51) | CombineServices function DefaultParseMode (line 57) | func DefaultParseMode() ParseMode { function SetDefaultParseMode (line 62) | func SetDefaultParseMode(m ParseMode) { function Parse (line 67) | func Parse(tree *parser.Thrift, mode ParseMode, opts ...ParseOption) (*d... function getTargetService (line 123) | func getTargetService(svcs []*parser.Service, serviceName string) ([]*pa... type pair (line 132) | type pair struct function getAllSvcs (line 137) | func getAllSvcs(svc *parser.Service, tree *parser.Thrift, visitedSvcs ma... function addFunction (line 162) | func addFunction(fn *parser.Function, tree *parser.Thrift, sDsc *descrip... function streamingMode (line 217) | func streamingMode(st *streaming.Streaming) serviceinfo.StreamingMode { function parseRequest (line 233) | func parseRequest(isStream bool, field *parser.Field, tree *parser.Thrif... function parseResponse (line 271) | func parseResponse(isStream bool, fn *parser.Function, tree *parser.Thri... function parseType (line 335) | func parseType(t *parser.Type, tree *parser.Thrift, cache map[string]*de... function parse (line 466) | func parse(tree *parser.Thrift, name string, t *parser.Type, v *parser.C... function onBool (line 512) | func onBool(tree *parser.Thrift, name string, t *parser.Type, v *parser.... function onInt (line 541) | func onInt(tree *parser.Thrift, name string, t *parser.Type, v *parser.C... function onDouble (line 573) | func onDouble(tree *parser.Thrift, name string, t *parser.Type, v *parse... function onStr (line 604) | func onStr(tree *parser.Thrift, name string, t *parser.Type, v *parser.C... function onEnum (line 626) | func onEnum(tree *parser.Thrift, name string, t *parser.Type, v *parser.... function onSetOrList (line 644) | func onSetOrList(tree *parser.Thrift, name string, t *parser.Type, v *pa... function onMap (line 671) | func onMap(tree *parser.Thrift, name string, t *parser.Type, v *parser.C... function onStructLike (line 705) | func onStructLike(tree *parser.Thrift, name string, t *parser.Type, v *p... function getStructLike (line 752) | func getStructLike(tree *parser.Thrift, t *parser.Type) (ast *parser.Thr... function getIDValue (line 773) | func getIDValue(tree *parser.Thrift, name string, t *parser.Type, extra ... function bin2str (line 803) | func bin2str(t *parser.Type) *parser.Type { FILE: pkg/generic/thrift/parse_option.go type parseOptions (line 21) | type parseOptions struct method apply (line 30) | func (o *parseOptions) apply(opts []ParseOption) { type ParseOption (line 26) | type ParseOption struct function WithGoTagDisabled (line 36) | func WithGoTagDisabled(disable bool) ParseOption { function WithIDLServiceName (line 46) | func WithIDLServiceName(serviceName string) ParseOption { FILE: pkg/generic/thrift/parse_test.go function TestParseHttpIDL (line 87) | func TestParseHttpIDL(t *testing.T) { function TestPanicRecover (line 120) | func TestPanicRecover(t *testing.T) { function TestSelfReferenceParse (line 141) | func TestSelfReferenceParse(t *testing.T) { type notSupportAnnotation (line 167) | type notSupportAnnotation struct method Equal (line 169) | func (notSupportAnnotation) Equal(key, value string) bool { method Handle (line 173) | func (notSupportAnnotation) Handle() interface{} { function TestNotSupportAnnotation (line 177) | func TestNotSupportAnnotation(t *testing.T) { function TestCombineService (line 197) | func TestCombineService(t *testing.T) { constant baseIDL (line 221) | baseIDL = ` constant demoIDL (line 235) | demoIDL = ` function TestExtends (line 268) | func TestExtends(t *testing.T) { constant defaultValueBaseIDL (line 302) | defaultValueBaseIDL = ` constant defaultValueDemoIDL (line 368) | defaultValueDemoIDL = ` constant streamingIDL (line 411) | streamingIDL = ` function TestDefaultValue (line 430) | func TestDefaultValue(t *testing.T) { function TestStreamingMode (line 463) | func TestStreamingMode(t *testing.T) { function defaultValueDeepEqual (line 487) | func defaultValueDeepEqual(t *testing.T, defaultValue func(name string) ... function TestParseWithIDLServiceName (line 514) | func TestParseWithIDLServiceName(t *testing.T) { FILE: pkg/generic/thrift/raw.go type RawReaderWriter (line 31) | type RawReaderWriter struct function NewRawReaderWriter (line 36) | func NewRawReaderWriter() *RawReaderWriter { function NewRawWriter (line 41) | func NewRawWriter() *RawWriter { type RawWriter (line 46) | type RawWriter struct method Write (line 51) | func (m *RawWriter) Write(ctx context.Context, out bufiox.Writer, msg ... function NewRawReader (line 69) | func NewRawReader() *RawReader { type RawReader (line 74) | type RawReader struct method Read (line 79) | func (m *RawReader) Read(ctx context.Context, method string, isClient ... FILE: pkg/generic/thrift/raw_test.go function TestRawReader_Read (line 30) | func TestRawReader_Read(t *testing.T) { function TestRawWriter_Write (line 52) | func TestRawWriter_Write(t *testing.T) { FILE: pkg/generic/thrift/read.go type readerOption (line 34) | type readerOption struct type reader (line 51) | type reader type fieldSetter (line 53) | type fieldSetter function getMapFieldSetter (line 55) | func getMapFieldSetter(st map[string]interface{}) fieldSetter { function getPbFieldSetter (line 62) | func getPbFieldSetter(st proto.Message) fieldSetter { function nextReader (line 68) | func nextReader(tt descriptor.Type, t *descriptor.TypeDescriptor, opt *r... function skipStructReader (line 112) | func skipStructReader(ctx context.Context, in *thrift.BufferReader, t *d... function readVoid (line 155) | func readVoid(ctx context.Context, in *thrift.BufferReader, t *descripto... function readDouble (line 160) | func readDouble(ctx context.Context, in *thrift.BufferReader, t *descrip... function readBool (line 164) | func readBool(ctx context.Context, in *thrift.BufferReader, t *descripto... function readByte (line 168) | func readByte(ctx context.Context, in *thrift.BufferReader, t *descripto... function readInt16 (line 179) | func readInt16(ctx context.Context, in *thrift.BufferReader, t *descript... function readInt32 (line 190) | func readInt32(ctx context.Context, in *thrift.BufferReader, t *descript... function readInt64 (line 194) | func readInt64(ctx context.Context, in *thrift.BufferReader, t *descript... function readString (line 198) | func readString(ctx context.Context, in *thrift.BufferReader, t *descrip... function readBinary (line 202) | func readBinary(ctx context.Context, in *thrift.BufferReader, t *descrip... function readBase64Binary (line 210) | func readBase64Binary(ctx context.Context, in *thrift.BufferReader, t *d... function readList (line 218) | func readList(ctx context.Context, in *thrift.BufferReader, t *descripto... function readMap (line 239) | func readMap(ctx context.Context, in *thrift.BufferReader, t *descriptor... function readInterfaceMap (line 246) | func readInterfaceMap(ctx context.Context, in *thrift.BufferReader, t *d... function readStringMap (line 283) | func readStringMap(ctx context.Context, in *thrift.BufferReader, t *desc... function readStruct (line 316) | func readStruct(ctx context.Context, in *thrift.BufferReader, t *descrip... function readHTTPResponse (line 414) | func readHTTPResponse(ctx context.Context, in *thrift.BufferReader, t *d... function unnestPb (line 486) | func unnestPb(opt *readerOption, fieldId int32) func() { function readEmptyValue (line 501) | func readEmptyValue(t *descriptor.TypeDescriptor) interface{} { function getRType (line 535) | func getRType(t *descriptor.TypeDescriptor) reflect.Type { FILE: pkg/generic/thrift/read_test.go function Test_nextReader (line 40) | func Test_nextReader(t *testing.T) { function TestReadSimple (line 69) | func TestReadSimple(t *testing.T) { function TestReadStruct (line 135) | func TestReadStruct(t *testing.T) { function Test_readHTTPResponse (line 302) | func Test_readHTTPResponse(t *testing.T) { function Test_readHTTPResponseWithPbBody (line 356) | func Test_readHTTPResponseWithPbBody(t *testing.T) { function getRespPbDesc (line 427) | func getRespPbDesc() (proto.MessageDescriptor, error) { FILE: pkg/generic/thrift/struct.go type StructReaderWriter (line 29) | type StructReaderWriter struct function NewStructReaderWriter (line 34) | func NewStructReaderWriter(svc *descriptor.ServiceDescriptor) *StructRea... function NewStructReaderWriterForJSON (line 38) | func NewStructReaderWriterForJSON(svc *descriptor.ServiceDescriptor) *St... function NewWriteStruct (line 43) | func NewWriteStruct(svc *descriptor.ServiceDescriptor) *WriteStruct { type WriteStruct (line 48) | type WriteStruct struct method SetBinaryWithBase64 (line 57) | func (m *WriteStruct) SetBinaryWithBase64(enable bool) { method Write (line 62) | func (m *WriteStruct) Write(ctx context.Context, out bufiox.Writer, ms... function NewReadStruct (line 87) | func NewReadStruct(svc *descriptor.ServiceDescriptor) *ReadStruct { function NewReadStructForJSON (line 91) | func NewReadStructForJSON(svc *descriptor.ServiceDescriptor) *ReadStruct { type ReadStruct (line 99) | type ReadStruct struct method SetBinaryOption (line 111) | func (m *ReadStruct) SetBinaryOption(base64, byteSlice bool) { method SetSetFieldsForEmptyStruct (line 121) | func (m *ReadStruct) SetSetFieldsForEmptyStruct(mode uint8) { method Read (line 126) | func (m *ReadStruct) Read(ctx context.Context, method string, isClient... FILE: pkg/generic/thrift/thrift.go constant structWrapLen (line 28) | structWrapLen = 4 type MessageReader (line 32) | type MessageReader interface type MessageWriter (line 37) | type MessageWriter interface FILE: pkg/generic/thrift/util.go function assertType (line 29) | func assertType(expected, but descriptor.Type) error { function splitType (line 36) | func splitType(t string) (pkg, name string) { function requestMappingValue (line 44) | func requestMappingValue(ctx context.Context, req *descriptor.HTTPReques... function buildinTypeFromString (line 70) | func buildinTypeFromString(s string, t *descriptor.TypeDescriptor) (inte... function buildinTypeIntoString (line 126) | func buildinTypeIntoString(val interface{}) string { FILE: pkg/generic/thrift/util_test.go function TestSplitType (line 28) | func TestSplitType(t *testing.T) { function TestRequestMappingValue (line 46) | func TestRequestMappingValue(t *testing.T) { FILE: pkg/generic/thrift/write.go type writerOption (line 35) | type writerOption struct type writer (line 41) | type writer type fieldGetter (line 43) | type fieldGetter function typeOf (line 57) | func typeOf(sample interface{}, t *descriptor.TypeDescriptor, opt *write... function typeJSONOf (line 130) | func typeJSONOf(data *gjson.Result, t *descriptor.TypeDescriptor, opt *w... function getWriterAndWrite (line 192) | func getWriterAndWrite(ctx context.Context, elem interface{}, out *thrif... function nextWriter (line 200) | func nextWriter(sample interface{}, t *descriptor.TypeDescriptor, opt *w... function nextJSONWriter (line 211) | func nextJSONWriter(data *gjson.Result, t *descriptor.TypeDescriptor, op... function writeEmptyValue (line 219) | func writeEmptyValue(out *thrift.BufferWriter, t *descriptor.TypeDescrip... function wrapStructWriter (line 252) | func wrapStructWriter(ctx context.Context, val interface{}, out *thrift.... function structWriter (line 278) | func structWriter(ctx context.Context, val interface{}, out *thrift.Buff... function wrapJSONWriter (line 290) | func wrapJSONWriter(ctx context.Context, val *gjson.Result, out *thrift.... function writeVoid (line 314) | func writeVoid(ctx context.Context, val interface{}, out *thrift.BufferW... function writeBool (line 318) | func writeBool(ctx context.Context, val interface{}, out *thrift.BufferW... function writeInt8 (line 322) | func writeInt8(ctx context.Context, val interface{}, out *thrift.BufferW... function writeInt16 (line 346) | func writeInt16(ctx context.Context, val interface{}, out *thrift.Buffer... function writeInt32 (line 365) | func writeInt32(ctx context.Context, val interface{}, out *thrift.Buffer... function writeInt64 (line 387) | func writeInt64(ctx context.Context, val interface{}, out *thrift.Buffer... function writeJSONNumber (line 412) | func writeJSONNumber(ctx context.Context, val interface{}, out *thrift.B... function writeJSONFloat64 (line 449) | func writeJSONFloat64(ctx context.Context, val interface{}, out *thrift.... function writeFloat64 (line 466) | func writeFloat64(ctx context.Context, val interface{}, out *thrift.Buff... function writeString (line 470) | func writeString(ctx context.Context, val interface{}, out *thrift.Buffe... function writeBase64Binary (line 474) | func writeBase64Binary(ctx context.Context, val interface{}, out *thrift... function writeBinary (line 482) | func writeBinary(ctx context.Context, val interface{}, out *thrift.Buffe... function writeBinaryList (line 486) | func writeBinaryList(ctx context.Context, val interface{}, out *thrift.B... function writeList (line 500) | func writeList(ctx context.Context, val interface{}, out *thrift.BufferW... function writeJSONList (line 523) | func writeJSONList(ctx context.Context, val interface{}, out *thrift.Buf... function writeInterfaceMap (line 544) | func writeInterfaceMap(ctx context.Context, val interface{}, out *thrift... function writeStringMap (line 569) | func writeStringMap(ctx context.Context, val interface{}, out *thrift.Bu... function writeStringJSONMap (line 598) | func writeStringJSONMap(ctx context.Context, val interface{}, out *thrif... function writeRequestBase (line 639) | func writeRequestBase(ctx context.Context, val interface{}, out *thrift.... function writeStruct (line 656) | func writeStruct(ctx context.Context, val interface{}, out *thrift.Buffe... function writeHTTPRequest (line 709) | func writeHTTPRequest(ctx context.Context, val interface{}, out *thrift.... function writeJSON (line 760) | func writeJSON(ctx context.Context, val interface{}, out *thrift.BufferW... FILE: pkg/generic/thrift/write_test.go function Test_nextWriter (line 37) | func Test_nextWriter(t *testing.T) { function Test_writeInt8 (line 238) | func Test_writeInt8(t *testing.T) { function Test_writeJSONNumber (line 337) | func Test_writeJSONNumber(t *testing.T) { function Test_writeJSONFloat64 (line 370) | func Test_writeJSONFloat64(t *testing.T) { function Test_writeInt16 (line 414) | func Test_writeInt16(t *testing.T) { function Test_writeInt32 (line 513) | func Test_writeInt32(t *testing.T) { function Test_writeInt64 (line 635) | func Test_writeInt64(t *testing.T) { function Test_writeFloat64 (line 778) | func Test_writeFloat64(t *testing.T) { function Test_writeString (line 811) | func Test_writeString(t *testing.T) { function Test_writeBase64String (line 844) | func Test_writeBase64String(t *testing.T) { function Test_writeBinary (line 881) | func Test_writeBinary(t *testing.T) { function Test_writeBinaryList (line 916) | func Test_writeBinaryList(t *testing.T) { function Test_writeList (line 970) | func Test_writeList(t *testing.T) { function Test_writeInterfaceMap (line 1090) | func Test_writeInterfaceMap(t *testing.T) { function Test_writeStringMap (line 1245) | func Test_writeStringMap(t *testing.T) { function Test_writeStruct (line 1372) | func Test_writeStruct(t *testing.T) { function Test_writeHTTPRequest (line 1477) | func Test_writeHTTPRequest(t *testing.T) { function Test_writeHTTPRequestWithPbBody (line 1607) | func Test_writeHTTPRequestWithPbBody(t *testing.T) { function getReqPbBody (line 1669) | func getReqPbBody() (proto.Message, error) { function Test_writeRequestBase (line 1700) | func Test_writeRequestBase(t *testing.T) { function Test_writeJSON (line 1738) | func Test_writeJSON(t *testing.T) { function Test_writeJSONBase (line 1826) | func Test_writeJSONBase(t *testing.T) { function Test_getDefaultValueAndWriter (line 1882) | func Test_getDefaultValueAndWriter(t *testing.T) { function getBufferWriter (line 2092) | func getBufferWriter(bs []byte) *thrift.BufferWriter { FILE: pkg/generic/thriftidl_provider.go type thriftFileProvider (line 43) | type thriftFileProvider struct method Provide (line 131) | func (p *thriftFileProvider) Provide() <-chan *descriptor.ServiceDescr... method Close (line 136) | func (p *thriftFileProvider) Close() error { method Option (line 143) | func (p *thriftFileProvider) Option() ProviderOption { function NewThriftFileProvider (line 50) | func NewThriftFileProvider(path string, includeDirs ...string) (Descript... function NewThriftFileProviderWithOption (line 54) | func NewThriftFileProviderWithOption(path string, opts []ThriftIDLProvid... function NewThriftFileProviderWithDynamicGo (line 70) | func NewThriftFileProviderWithDynamicGo(path string, includeDirs ...stri... function NewThriftFileProviderWithDynamicgoWithOption (line 74) | func NewThriftFileProviderWithDynamicgoWithOption(path string, opts []Th... function newServiceDescriptorFromPath (line 108) | func newServiceDescriptorFromPath(path string, parseMode thrift.ParseMod... type ThriftContentProvider (line 148) | type ThriftContentProvider struct method UpdateIDL (line 222) | func (p *ThriftContentProvider) UpdateIDL(main string, includes map[st... method Provide (line 256) | func (p *ThriftContentProvider) Provide() <-chan *descriptor.ServiceDe... method Close (line 261) | func (p *ThriftContentProvider) Close() error { method Option (line 269) | func (p *ThriftContentProvider) Option() ProviderOption { method newDynamicGoDsc (line 273) | func (p *ThriftContentProvider) newDynamicGoDsc(svc *descriptor.Servic... constant defaultMainIDLPath (line 159) | defaultMainIDLPath = "main.thrift" function NewThriftContentProvider (line 166) | func NewThriftContentProvider(mainIDLContent string, includes map[string... function NewThriftContentProviderWithDynamicGo (line 192) | func NewThriftContentProviderWithDynamicGo(mainIDLContent string, includ... function parseIncludes (line 279) | func parseIncludes(tree *parser.Thrift, parsed map[string]*parser.Thrift... function absPath (line 318) | func absPath(path, includePath string) string { function ParseContent (line 326) | func ParseContent(path, content string, includes map[string]string, isAb... type ThriftContentWithAbsIncludePathProvider (line 346) | type ThriftContentWithAbsIncludePathProvider struct method UpdateIDL (line 417) | func (p *ThriftContentWithAbsIncludePathProvider) UpdateIDL(mainIDLPat... method Provide (line 456) | func (p *ThriftContentWithAbsIncludePathProvider) Provide() <-chan *de... method Close (line 461) | func (p *ThriftContentWithAbsIncludePathProvider) Close() error { method Option (line 469) | func (p *ThriftContentWithAbsIncludePathProvider) Option() ProviderOpt... method newDynamicGoDsc (line 473) | func (p *ThriftContentWithAbsIncludePathProvider) newDynamicGoDsc(svc ... function NewThriftContentWithAbsIncludePathProvider (line 359) | func NewThriftContentWithAbsIncludePathProvider(mainIDLPath string, incl... function NewThriftContentWithAbsIncludePathProviderWithDynamicGo (line 387) | func NewThriftContentWithAbsIncludePathProviderWithDynamicGo(mainIDLPath... function getParseMode (line 479) | func getParseMode(opt *thriftIDLProviderOptions) thrift.ParseMode { function getDynamicGoParseMode (line 487) | func getDynamicGoParseMode(parseMode thrift.ParseMode) (meta.ParseServic... function newServiceDescriptorFromContent (line 500) | func newServiceDescriptorFromContent(path, content string, includes map[... function mergeDynamicgoOptions (line 519) | func mergeDynamicgoOptions(dOpts *dthrift.Options, dParseMode meta.Parse... function newDynamicGoDscFromContent (line 531) | func newDynamicGoDscFromContent(svc *descriptor.ServiceDescriptor, path,... function handleGoTagForDynamicGo (line 548) | func handleGoTagForDynamicGo(goTagOpt *goTagOption) { FILE: pkg/generic/thriftidl_provider_option.go type thriftIDLProviderOptions (line 25) | type thriftIDLProviderOptions struct method apply (line 40) | func (o *thriftIDLProviderOptions) apply(opts []ThriftIDLProviderOptio... type goTagOption (line 32) | type goTagOption struct type ThriftIDLProviderOption (line 36) | type ThriftIDLProviderOption struct function WithParseMode (line 48) | func WithParseMode(parseMode thrift.ParseMode) ThriftIDLProviderOption { function WithGoTagDisabled (line 54) | func WithGoTagDisabled(disable bool) ThriftIDLProviderOption { function WithIDLServiceName (line 64) | func WithIDLServiceName(serviceName string) ThriftIDLProviderOption { function WithDynamicGoOptions (line 71) | func WithDynamicGoOptions(opts *dthrift.Options) ThriftIDLProviderOption { FILE: pkg/generic/thriftidl_provider_test.go function TestAbsPath (line 70) | func TestAbsPath(t *testing.T) { function TestThriftFileProvider (line 87) | func TestThriftFileProvider(t *testing.T) { function TestThriftContentWithAbsIncludePathProvider (line 110) | func TestThriftContentWithAbsIncludePathProvider(t *testing.T) { function TestCircularDependency (line 186) | func TestCircularDependency(t *testing.T) { function TestThriftContentProvider (line 210) | func TestThriftContentProvider(t *testing.T) { function TestFallback (line 269) | func TestFallback(t *testing.T) { function TestDisableGoTag (line 283) | func TestDisableGoTag(t *testing.T) { function TestDisableGoTagForDynamicGo (line 339) | func TestDisableGoTagForDynamicGo(t *testing.T) { function TestFileProviderParseMode (line 410) | func TestFileProviderParseMode(t *testing.T) { function TestFileProviderParseModeWithDynamicGo (line 431) | func TestFileProviderParseModeWithDynamicGo(t *testing.T) { function TestContentProviderParseMode (line 454) | func TestContentProviderParseMode(t *testing.T) { function TestContentProviderParseModeWithDynamicGo (line 473) | func TestContentProviderParseModeWithDynamicGo(t *testing.T) { function TestContentWithAbsIncludePathProviderParseMode (line 494) | func TestContentWithAbsIncludePathProviderParseMode(t *testing.T) { function TestContentWithAbsIncludePathProviderParseModeWithDynamicGo (line 515) | func TestContentWithAbsIncludePathProviderParseModeWithDynamicGo(t *test... function TestDefaultValue (line 538) | func TestDefaultValue(t *testing.T) { function TestParseWithIDLServiceName (line 578) | func TestParseWithIDLServiceName(t *testing.T) { function TestDynamicGoOptions (line 686) | func TestDynamicGoOptions(t *testing.T) { FILE: pkg/gofunc/go.go type GoTask (line 31) | type GoTask function init (line 36) | func init() { function RecoverGoFuncWithInfo (line 48) | func RecoverGoFuncWithInfo(ctx context.Context, task func(), info *Info) { function SetPanicHandler (line 76) | func SetPanicHandler(hdlr func(info *Info, panicErr interface{}, panicSt... function NewBasicInfo (line 83) | func NewBasicInfo(remoteService, remoteAddr string) *Info { type Info (line 91) | type Info struct FILE: pkg/gofunc/go_test.go function TestRecoverGoFuncWithInfo (line 25) | func TestRecoverGoFuncWithInfo(t *testing.T) { FILE: pkg/http/resolver.go constant tcp (line 27) | tcp = "tcp" constant tcp4 (line 28) | tcp4 = "tcp4" constant tcp6 (line 29) | tcp6 = "tcp6" type Resolver (line 33) | type Resolver interface type ResolverOption (line 37) | type ResolverOption function WithIPv4 (line 40) | func WithIPv4() ResolverOption { function WithIPv6 (line 47) | func WithIPv6() ResolverOption { type resolverConfig (line 53) | type resolverConfig struct type defaultResolver (line 57) | type defaultResolver struct method Resolve (line 71) | func (p *defaultResolver) Resolve(URL string) (string, error) { function NewDefaultResolver (line 62) | func NewDefaultResolver(options ...ResolverOption) Resolver { FILE: pkg/http/resolver_test.go function TestResolve (line 26) | func TestResolve(t *testing.T) { function TestResolverWithIPPolicy (line 39) | func TestResolverWithIPPolicy(t *testing.T) { function parseIPPort (line 76) | func parseIPPort(ipPort string) (net.IP, error) { function isV6 (line 85) | func isV6(ip net.IP) bool { function isV4 (line 89) | func isV4(ip net.IP) bool { FILE: pkg/kerrors/bizerrors.go type BizStatusErrorIface (line 66) | type BizStatusErrorIface interface type GRPCStatusIface (line 103) | type GRPCStatusIface interface type BizStatusError (line 108) | type BizStatusError struct method BizStatusCode (line 133) | func (e *BizStatusError) BizStatusCode() int32 { method BizMessage (line 137) | func (e *BizStatusError) BizMessage() string { method AppendBizMessage (line 141) | func (e *BizStatusError) AppendBizMessage(extraMsg string) { method BizExtra (line 147) | func (e *BizStatusError) BizExtra() map[string]string { method SetBizExtra (line 151) | func (e *BizStatusError) SetBizExtra(key, value string) { method Error (line 158) | func (e *BizStatusError) Error() string { function FromBizStatusError (line 115) | func FromBizStatusError(err error) (bizErr BizStatusErrorIface, ok bool) { function NewBizStatusError (line 124) | func NewBizStatusError(code int32, msg string) BizStatusErrorIface { function NewBizStatusErrorWithExtra (line 129) | func NewBizStatusErrorWithExtra(code int32, msg string, extra map[string... function NewGRPCBizStatusError (line 165) | func NewGRPCBizStatusError(code int32, msg string) BizStatusErrorIface { function NewGRPCBizStatusErrorWithExtra (line 172) | func NewGRPCBizStatusErrorWithExtra(code int32, msg string, extra map[st... type GRPCBizStatusError (line 176) | type GRPCBizStatusError struct method GRPCStatus (line 183) | func (e *GRPCBizStatusError) GRPCStatus() *status.Status { method SetGRPCStatus (line 190) | func (e *GRPCBizStatusError) SetGRPCStatus(status *status.Status) { FILE: pkg/kerrors/bizerrors_test.go function TestBizStatusErrors (line 27) | func TestBizStatusErrors(t *testing.T) { FILE: pkg/kerrors/kerrors.go function ErrNonExistentMethod (line 67) | func ErrNonExistentMethod(svcName, method string) error { function ErrNotStreamingMethod (line 72) | func ErrNotStreamingMethod(svcName, method string) error { function ErrNotUnaryMethod (line 77) | func ErrNotUnaryMethod(svcName, method string) error { type basicError (line 81) | type basicError struct method Error (line 86) | func (be *basicError) Error() string { method WithCause (line 91) | func (be *basicError) WithCause(cause error) error { method WithCauseAndStack (line 96) | func (be *basicError) WithCauseAndStack(cause error, stack string) err... method WithCauseAndExtraMsg (line 101) | func (be *basicError) WithCauseAndExtraMsg(cause error, extraMsg strin... method Timeout (line 106) | func (be *basicError) Timeout() bool { type DetailedError (line 111) | type DetailedError struct method Error (line 119) | func (de *DetailedError) Error() string { method Format (line 128) | func (de *DetailedError) Format(s fmt.State, verb rune) { method ErrorType (line 146) | func (de *DetailedError) ErrorType() error { method Unwrap (line 151) | func (de *DetailedError) Unwrap() error { method Is (line 156) | func (de *DetailedError) Is(target error) bool { method As (line 162) | func (de *DetailedError) As(target interface{}) bool { method Timeout (line 170) | func (de *DetailedError) Timeout() bool { method Stack (line 175) | func (de *DetailedError) Stack() string { method WithExtraMsg (line 180) | func (de *DetailedError) WithExtraMsg(extraMsg string) { function appendErrMsg (line 184) | func appendErrMsg(errMsg, extra string) string { function IsKitexError (line 198) | func IsKitexError(err error) bool { function IsTimeoutError (line 213) | func IsTimeoutError(err error) bool { FILE: pkg/kerrors/kerrors_test.go function TestIsKitexError (line 31) | func TestIsKitexError(t *testing.T) { function TestIs (line 66) | func TestIs(t *testing.T) { function TestError (line 80) | func TestError(t *testing.T) { function TestWithCause (line 89) | func TestWithCause(t *testing.T) { function TestWithCauseAndStack (line 107) | func TestWithCauseAndStack(t *testing.T) { type timeoutError (line 130) | type timeoutError struct method Error (line 132) | func (te *timeoutError) Error() string { return "timeout" } method Timeout (line 133) | func (te *timeoutError) Timeout() bool { return true } function TestTimeout (line 135) | func TestTimeout(t *testing.T) { function TestWithCause1 (line 179) | func TestWithCause1(t *testing.T) { type _err (line 188) | type _err struct method Format (line 193) | func (de *_err) Format(s fmt.State, verb rune) { function TestFormat (line 206) | func TestFormat(t *testing.T) { function BenchmarkWithCause3 (line 221) | func BenchmarkWithCause3(b *testing.B) { FILE: pkg/klog/default.go function SetOutput (line 33) | func SetOutput(w io.Writer) { function SetLevel (line 40) | func SetLevel(lv Level) { function DefaultLogger (line 45) | func DefaultLogger() FullLogger { function SetLogger (line 52) | func SetLogger(v FullLogger) { function Fatal (line 57) | func Fatal(v ...interface{}) { function Error (line 62) | func Error(v ...interface{}) { function Warn (line 67) | func Warn(v ...interface{}) { function Notice (line 72) | func Notice(v ...interface{}) { function Info (line 77) | func Info(v ...interface{}) { function Debug (line 82) | func Debug(v ...interface{}) { function Trace (line 87) | func Trace(v ...interface{}) { function Fatalf (line 92) | func Fatalf(format string, v ...interface{}) { function Errorf (line 97) | func Errorf(format string, v ...interface{}) { function Warnf (line 102) | func Warnf(format string, v ...interface{}) { function Noticef (line 107) | func Noticef(format string, v ...interface{}) { function Infof (line 112) | func Infof(format string, v ...interface{}) { function Debugf (line 117) | func Debugf(format string, v ...interface{}) { function Tracef (line 122) | func Tracef(format string, v ...interface{}) { function CtxFatalf (line 127) | func CtxFatalf(ctx context.Context, format string, v ...interface{}) { function CtxErrorf (line 132) | func CtxErrorf(ctx context.Context, format string, v ...interface{}) { function CtxWarnf (line 137) | func CtxWarnf(ctx context.Context, format string, v ...interface{}) { function CtxNoticef (line 142) | func CtxNoticef(ctx context.Context, format string, v ...interface{}) { function CtxInfof (line 147) | func CtxInfof(ctx context.Context, format string, v ...interface{}) { function CtxDebugf (line 152) | func CtxDebugf(ctx context.Context, format string, v ...interface{}) { function CtxTracef (line 157) | func CtxTracef(ctx context.Context, format string, v ...interface{}) { type defaultLogger (line 161) | type defaultLogger struct method SetOutput (line 166) | func (ll *defaultLogger) SetOutput(w io.Writer) { method SetLevel (line 170) | func (ll *defaultLogger) SetLevel(lv Level) { method logf (line 174) | func (ll *defaultLogger) logf(lv Level, format *string, v ...interface... method Fatal (line 190) | func (ll *defaultLogger) Fatal(v ...interface{}) { method Error (line 194) | func (ll *defaultLogger) Error(v ...interface{}) { method Warn (line 198) | func (ll *defaultLogger) Warn(v ...interface{}) { method Notice (line 202) | func (ll *defaultLogger) Notice(v ...interface{}) { method Info (line 206) | func (ll *defaultLogger) Info(v ...interface{}) { method Debug (line 210) | func (ll *defaultLogger) Debug(v ...interface{}) { method Trace (line 214) | func (ll *defaultLogger) Trace(v ...interface{}) { method Fatalf (line 218) | func (ll *defaultLogger) Fatalf(format string, v ...interface{}) { method Errorf (line 222) | func (ll *defaultLogger) Errorf(format string, v ...interface{}) { method Warnf (line 226) | func (ll *defaultLogger) Warnf(format string, v ...interface{}) { method Noticef (line 230) | func (ll *defaultLogger) Noticef(format string, v ...interface{}) { method Infof (line 234) | func (ll *defaultLogger) Infof(format string, v ...interface{}) { method Debugf (line 238) | func (ll *defaultLogger) Debugf(format string, v ...interface{}) { method Tracef (line 242) | func (ll *defaultLogger) Tracef(format string, v ...interface{}) { method CtxFatalf (line 246) | func (ll *defaultLogger) CtxFatalf(ctx context.Context, format string,... method CtxErrorf (line 250) | func (ll *defaultLogger) CtxErrorf(ctx context.Context, format string,... method CtxWarnf (line 254) | func (ll *defaultLogger) CtxWarnf(ctx context.Context, format string, ... method CtxNoticef (line 258) | func (ll *defaultLogger) CtxNoticef(ctx context.Context, format string... method CtxInfof (line 262) | func (ll *defaultLogger) CtxInfof(ctx context.Context, format string, ... method CtxDebugf (line 266) | func (ll *defaultLogger) CtxDebugf(ctx context.Context, format string,... method CtxTracef (line 270) | func (ll *defaultLogger) CtxTracef(ctx context.Context, format string,... FILE: pkg/klog/default_test.go function normalOutput (line 29) | func normalOutput(t *testing.T, testLevel Level, want string, args ...in... function ctxOutput (line 60) | func ctxOutput(t *testing.T, testLevel Level, want, format string, args ... function formatOutput (line 95) | func formatOutput(t *testing.T, testLevel Level, want, format string, ar... function TestOutput (line 125) | func TestOutput(t *testing.T) { FILE: pkg/klog/log.go type FormatLogger (line 26) | type FormatLogger interface type Logger (line 37) | type Logger interface type CtxLogger (line 49) | type CtxLogger interface type Control (line 60) | type Control interface type FullLogger (line 66) | type FullLogger interface type Level (line 76) | type Level method toString (line 99) | func (lv Level) toString() string { constant LevelTrace (line 80) | LevelTrace Level = iota constant LevelDebug (line 81) | LevelDebug constant LevelInfo (line 82) | LevelInfo constant LevelNotice (line 83) | LevelNotice constant LevelWarn (line 84) | LevelWarn constant LevelError (line 85) | LevelError constant LevelFatal (line 86) | LevelFatal FILE: pkg/limit/limit.go type Updater (line 20) | type Updater interface type Option (line 25) | type Option struct method Valid (line 35) | func (lo *Option) Valid() bool { FILE: pkg/limit/limit_test.go function TestValid (line 25) | func TestValid(t *testing.T) { FILE: pkg/limiter/connection_limiter.go type connectionLimiter (line 25) | type connectionLimiter struct method Acquire (line 44) | func (ml *connectionLimiter) Acquire(ctx context.Context) bool { method Release (line 51) | func (ml *connectionLimiter) Release(ctx context.Context) { method UpdateLimit (line 56) | func (ml *connectionLimiter) UpdateLimit(lim int) { method Status (line 61) | func (ml *connectionLimiter) Status(ctx context.Context) (limit, occup... function NewConnectionLimiter (line 31) | func NewConnectionLimiter(lim int) ConcurrencyLimiter { function NewConcurrencyLimiter (line 36) | func NewConcurrencyLimiter(lim int) ConcurrencyLimiter { FILE: pkg/limiter/connection_limiter_test.go function TestConnectionLimiter (line 29) | func TestConnectionLimiter(t *testing.T) { FILE: pkg/limiter/dummy.go type DummyConcurrencyLimiter (line 25) | type DummyConcurrencyLimiter struct method Acquire (line 28) | func (dcl *DummyConcurrencyLimiter) Acquire(ctx context.Context) bool { method Release (line 33) | func (dcl *DummyConcurrencyLimiter) Release(ctx context.Context) {} method Status (line 36) | func (dcl *DummyConcurrencyLimiter) Status(ctx context.Context) (limit... type DummyRateLimiter (line 41) | type DummyRateLimiter struct method Acquire (line 44) | func (drl *DummyRateLimiter) Acquire(ctx context.Context) bool { retur... method Status (line 47) | func (drl *DummyRateLimiter) Status(ctx context.Context) (max, current... FILE: pkg/limiter/item_limiter.go constant TypeLimiter (line 27) | TypeLimiter iface.ItemType = "limiter_config" type LimiterConfig (line 33) | type LimiterConfig struct method DeepCopy (line 49) | func (l *LimiterConfig) DeepCopy() iface.ConfigValueItem { method EqualsTo (line 57) | func (l *LimiterConfig) EqualsTo(item iface.ConfigValueItem) bool { function CopyDefaultLimitConfig (line 44) | func CopyDefaultLimitConfig() iface.ConfigValueItem { FILE: pkg/limiter/limiter.go type ConcurrencyLimiter (line 28) | type ConcurrencyLimiter interface type RateLimiter (line 40) | type RateLimiter interface type Updatable (line 50) | type Updatable interface type LimitReporter (line 55) | type LimitReporter interface function NewLimiterWrapper (line 61) | func NewLimiterWrapper(conLimit ConcurrencyLimiter, qpsLimit RateLimiter... type limitWrapper (line 68) | type limitWrapper struct method UpdateLimit (line 73) | func (l *limitWrapper) UpdateLimit(opt *limit.Option) (updated bool) { FILE: pkg/limiter/limiter_test.go function TestLimiterWrapper (line 27) | func TestLimiterWrapper(t *testing.T) { FILE: pkg/limiter/qps_limiter.go type qpsLimiter (line 28) | type qpsLimiter struct method UpdateLimit (line 51) | func (l *qpsLimiter) UpdateLimit(limit int) { method UpdateQPSLimit (line 59) | func (l *qpsLimiter) UpdateQPSLimit(interval time.Duration, limit int) { method Acquire (line 72) | func (l *qpsLimiter) Acquire(ctx context.Context) bool { method Status (line 83) | func (l *qpsLimiter) Status(ctx context.Context) (max, cur int, interv... method startTicker (line 90) | func (l *qpsLimiter) startTicker(interval time.Duration) { method stopTicker (line 107) | func (l *qpsLimiter) stopTicker() { method updateToken (line 118) | func (l *qpsLimiter) updateToken() { method resetTokens (line 148) | func (l *qpsLimiter) resetTokens(once int32) { function NewQPSLimiter (line 38) | func NewQPSLimiter(interval time.Duration, limit int) RateLimiter { function calcOnce (line 137) | func calcOnce(interval time.Duration, limit int) int32 { FILE: pkg/limiter/qps_limiter_test.go function TestQPSLimiter (line 33) | func TestQPSLimiter(t *testing.T) { function TestCalcOnce (line 161) | func TestCalcOnce(t *testing.T) { FILE: pkg/loadbalance/consist.go type KeyFunc (line 41) | type KeyFunc type ConsistentHashOption (line 44) | type ConsistentHashOption struct function NewConsistentHashOption (line 77) | func NewConsistentHashOption(f KeyFunc) ConsistentHashOption { function init (line 88) | func init() { type virtualNode (line 92) | type virtualNode struct type realNode (line 97) | type realNode struct type consistResult (line 101) | type consistResult struct type consistInfo (line 106) | type consistInfo struct type vNodeType (line 111) | type vNodeType struct method Len (line 115) | func (v *vNodeType) Len() int { method Less (line 119) | func (v *vNodeType) Less(i, j int) bool { method Swap (line 123) | func (v *vNodeType) Swap(i, j int) { type consistPicker (line 127) | type consistPicker struct method zero (line 138) | func (cp *consistPicker) zero() { method Recycle (line 145) | func (cp *consistPicker) Recycle() { method Next (line 151) | func (cp *consistPicker) Next(ctx context.Context, request interface{}... function newConsistPicker (line 134) | func newConsistPicker() interface{} { function buildConsistResult (line 181) | func buildConsistResult(info *consistInfo, key uint64) *consistResult { type consistBalancer (line 226) | type consistBalancer struct method GetPicker (line 247) | func (cb *consistBalancer) GetPicker(e discovery.Result) Picker { method newConsistInfo (line 267) | func (cb *consistBalancer) newConsistInfo(e discovery.Result) *consist... method buildNodes (line 273) | func (cb *consistBalancer) buildNodes(ins []discovery.Instance) ([]rea... method buildVirtualNodes (line 281) | func (cb *consistBalancer) buildVirtualNodes(rNodes []realNode) []virt... method getVirtualNodeLen (line 340) | func (cb *consistBalancer) getVirtualNodeLen(rNode realNode) int { method updateConsistInfo (line 347) | func (cb *consistBalancer) updateConsistInfo(e discovery.Result) { method Rebalance (line 353) | func (cb *consistBalancer) Rebalance(change discovery.Change) { method Delete (line 363) | func (cb *consistBalancer) Delete(change discovery.Change) { method Name (line 372) | func (cb *consistBalancer) Name() string { function NewConsistBalancer (line 233) | func NewConsistBalancer(opt ConsistentHashOption) Loadbalancer { FILE: pkg/loadbalance/consist_test.go type testCtxKey (line 34) | type testCtxKey constant keyCtxKey (line 37) | keyCtxKey testCtxKey = iota function getKey (line 40) | func getKey(ctx context.Context, request interface{}) string { function getRandomKey (line 47) | func getRandomKey(ctx context.Context, request interface{}) string { function randRead (line 55) | func randRead(b []byte) { function newTestConsistentHashOption (line 74) | func newTestConsistentHashOption() ConsistentHashOption { function TestNewConsistHashOption (line 79) | func TestNewConsistHashOption(t *testing.T) { function TestNewConsistBalancer (line 86) | func TestNewConsistBalancer(t *testing.T) { function TestConsistPicker_Next_Nil (line 91) | func TestConsistPicker_Next_Nil(t *testing.T) { function TestConsistPicker_Next_NoCache_Consist (line 162) | func TestConsistPicker_Next_NoCache_Consist(t *testing.T) { function TestConsistPicker_Next_Cache (line 195) | func TestConsistPicker_Next_Cache(t *testing.T) { function TestConsistPicker_Next_Cache_Consist (line 212) | func TestConsistPicker_Next_Cache_Consist(t *testing.T) { function TestConsistBalance (line 246) | func TestConsistBalance(t *testing.T) { function TestWeightedConsistBalance (line 275) | func TestWeightedConsistBalance(t *testing.T) { function TestConsistPicker_Reblance (line 301) | func TestConsistPicker_Reblance(t *testing.T) { function BenchmarkNewConsistPicker_NoCache (line 332) | func BenchmarkNewConsistPicker_NoCache(bb *testing.B) { function BenchmarkNewConsistPicker (line 362) | func BenchmarkNewConsistPicker(bb *testing.B) { function BenchmarkConsistPicker_RandomDistributionKey (line 392) | func BenchmarkConsistPicker_RandomDistributionKey(bb *testing.B) { FILE: pkg/loadbalance/dummy_picker.go type DummyPicker (line 28) | type DummyPicker struct method Next (line 31) | func (np *DummyPicker) Next(ctx context.Context, request interface{}) ... FILE: pkg/loadbalance/interleaved_weighted_round_robin.go type iwrrNode (line 28) | type iwrrNode struct type iwrrQueue (line 35) | type iwrrQueue struct method enqueue (line 96) | func (q *iwrrQueue) enqueue(node *iwrrNode) { method dequeue (line 107) | func (q *iwrrQueue) dequeue() *iwrrNode { method empty (line 118) | func (q *iwrrQueue) empty() bool { type InterleavedWeightedRoundRobinPicker (line 40) | type InterleavedWeightedRoundRobinPicker struct method Next (line 71) | func (ip *InterleavedWeightedRoundRobinPicker) Next(ctx context.Contex... function newInterleavedWeightedRoundRobinPicker (line 48) | func newInterleavedWeightedRoundRobinPicker(instances []discovery.Instan... function newIwrrQueue (line 92) | func newIwrrQueue() *iwrrQueue { FILE: pkg/loadbalance/iterator.go type round (line 26) | type round struct method Next (line 32) | func (r *round) Next() uint64 { function newRound (line 36) | func newRound() *round { function newRandomRound (line 41) | func newRandomRound() *round { FILE: pkg/loadbalance/lbcache/cache.go constant defaultRefreshInterval (line 38) | defaultRefreshInterval = 5 * time.Second constant defaultExpireInterval (line 39) | defaultExpireInterval = 15 * time.Second type Options (line 48) | type Options struct method check (line 63) | func (v *Options) check() { type Hookable (line 73) | type Hookable interface type BalancerFactory (line 84) | type BalancerFactory struct method watcher (line 136) | func (b *BalancerFactory) watcher() { method Get (line 159) | func (b *BalancerFactory) Get(ctx context.Context, target rpcinfo.Endp... function cacheKey (line 94) | func cacheKey(resolver, balancer string, opts Options) string { function newBalancerFactory (line 98) | func newBalancerFactory(resolver discovery.Resolver, balancer loadbalanc... function NewBalancerFactory (line 117) | func NewBalancerFactory(resolver discovery.Resolver, balancer loadbalanc... function renameResultCacheKey (line 154) | func renameResultCacheKey(res *discovery.Result, resolverName string) { type Balancer (line 192) | type Balancer struct method Refresh (line 200) | func (bl *Balancer) Refresh() { method Tick (line 218) | func (bl *Balancer) Tick() { method GetResult (line 223) | func (bl *Balancer) GetResult() (res discovery.Result, ok bool) { method GetPicker (line 231) | func (bl *Balancer) GetPicker() loadbalance.Picker { method close (line 237) | func (bl *Balancer) close() { constant unknown (line 252) | unknown = "unknown" function Dump (line 254) | func Dump() interface{} { FILE: pkg/loadbalance/lbcache/cache_test.go function TestBuilder (line 41) | func TestBuilder(t *testing.T) { function TestCacheKey (line 78) | func TestCacheKey(t *testing.T) { function TestBalancerCache (line 83) | func TestBalancerCache(t *testing.T) { type mockRebalancer (line 112) | type mockRebalancer struct method Rebalance (line 118) | func (m *mockRebalancer) Rebalance(ch discovery.Change) { method Delete (line 125) | func (m *mockRebalancer) Delete(ch discovery.Change) { type mockResolver (line 131) | type mockResolver struct method Target (line 133) | func (m *mockResolver) Target(ctx context.Context, target rpcinfo.Endp... method Resolve (line 137) | func (m *mockResolver) Resolve(ctx context.Context, desc string) (disc... method Diff (line 141) | func (m *mockResolver) Diff(cacheKey string, prev, next discovery.Resu... method Name (line 145) | func (m *mockResolver) Name() string { function TestConcurrentGet (line 151) | func TestConcurrentGet(t *testing.T) { FILE: pkg/loadbalance/lbcache/hookable.go type hookableRebalancer (line 28) | type hookableRebalancer struct method Rebalance (line 51) | func (b *hookableRebalancer) Rebalance(ch discovery.Change) { method Delete (line 61) | func (b *hookableRebalancer) Delete(ch discovery.Change) { method RegisterRebalanceHook (line 71) | func (b *hookableRebalancer) RegisterRebalanceHook(f func(ch *discover... method DeregisterRebalanceHook (line 81) | func (b *hookableRebalancer) DeregisterRebalanceHook(index int) { method RegisterDeleteHook (line 88) | func (b *hookableRebalancer) RegisterDeleteHook(f func(ch *discovery.C... method DeregisterDeleteHook (line 98) | func (b *hookableRebalancer) DeregisterDeleteHook(index int) { function newHookRebalancer (line 43) | func newHookRebalancer(inner loadbalance.Rebalancer) *hookableRebalancer { type noopHookRebalancer (line 105) | type noopHookRebalancer struct method RegisterRebalanceHook (line 109) | func (noopHookRebalancer) RegisterRebalanceHook(func(ch *discovery.Cha... method RegisterDeleteHook (line 110) | func (noopHookRebalancer) RegisterDeleteHook(func(ch *discovery.Change... method DeregisterRebalanceHook (line 111) | func (noopHookRebalancer) DeregisterRebalanceHook(index int) ... method DeregisterDeleteHook (line 112) | func (noopHookRebalancer) DeregisterDeleteHook(index int) ... FILE: pkg/loadbalance/lbcache/hookable_test.go function TestHookableRebalance (line 26) | func TestHookableRebalance(t *testing.T) { function TestHookableDelete (line 45) | func TestHookableDelete(t *testing.T) { FILE: pkg/loadbalance/lbcache/shared_ticker.go function getSharedTicker (line 34) | func getSharedTicker(b *Balancer, refreshInterval time.Duration) *utils.... FILE: pkg/loadbalance/loadbalancer.go type Picker (line 26) | type Picker interface type Loadbalancer (line 31) | type Loadbalancer interface type Rebalancer (line 37) | type Rebalancer interface FILE: pkg/loadbalance/weighted_balancer.go constant lbKindRoundRobin (line 29) | lbKindRoundRobin = iota constant lbKindInterleaved (line 30) | lbKindInterleaved constant lbKindRandom (line 31) | lbKindRandom constant lbKindRandomWithAliasMethod (line 32) | lbKindRandomWithAliasMethod type weightedBalancer (line 35) | type weightedBalancer struct method GetPicker (line 71) | func (wb *weightedBalancer) GetPicker(e discovery.Result) Picker { method createPicker (line 88) | func (wb *weightedBalancer) createPicker(e discovery.Result) (picker P... method Rebalance (line 141) | func (wb *weightedBalancer) Rebalance(change discovery.Change) { method Delete (line 149) | func (wb *weightedBalancer) Delete(change discovery.Change) { method Name (line 156) | func (wb *weightedBalancer) Name() string { function NewWeightedBalancer (line 42) | func NewWeightedBalancer() Loadbalancer { function NewWeightedRoundRobinBalancer (line 47) | func NewWeightedRoundRobinBalancer() Loadbalancer { function NewInterleavedWeightedRoundRobinBalancer (line 53) | func NewInterleavedWeightedRoundRobinBalancer() Loadbalancer { function NewWeightedRandomBalancer (line 59) | func NewWeightedRandomBalancer() Loadbalancer { function NewWeightedRandomWithAliasMethodBalancer (line 65) | func NewWeightedRandomWithAliasMethodBalancer() Loadbalancer { FILE: pkg/loadbalance/weighted_balancer_test.go type balancerTestcase (line 31) | type balancerTestcase struct function TestWeightedBalancer_GetPicker (line 43) | func TestWeightedBalancer_GetPicker(t *testing.T) { function TestWeightedPicker_Next (line 99) | func TestWeightedPicker_Next(t *testing.T) { function TestWeightedPicker_NoMoreInstance (line 186) | func TestWeightedPicker_NoMoreInstance(t *testing.T) { function makeNInstances (line 217) | func makeNInstances(n, weight int) (res []discovery.Instance) { function BenchmarkWeightedPicker (line 224) | func BenchmarkWeightedPicker(b *testing.B) { function BenchmarkGetPicker (line 260) | func BenchmarkGetPicker(b *testing.B) { function BenchmarkWeightedPicker_Next (line 276) | func BenchmarkWeightedPicker_Next(b *testing.B) { function genInstList (line 311) | func genInstList() []discovery.Instance { FILE: pkg/loadbalance/weighted_random.go type weightedRandomPicker (line 27) | type weightedRandomPicker struct method Next (line 40) | func (wp *weightedRandomPicker) Next(ctx context.Context, request inte... function newWeightedRandomPickerWithSum (line 32) | func newWeightedRandomPickerWithSum(instances []discovery.Instance, weig... type randomPicker (line 51) | type randomPicker struct method Next (line 62) | func (rp *randomPicker) Next(ctx context.Context, request interface{})... function newRandomPicker (line 55) | func newRandomPicker(instances []discovery.Instance) Picker { FILE: pkg/loadbalance/weighted_random_with_alias_method.go type AliasMethodPicker (line 27) | type AliasMethodPicker struct method init (line 44) | func (a *AliasMethodPicker) init() { method Next (line 95) | func (a *AliasMethodPicker) Next(ctx context.Context, request interfac... function newAliasMethodPicker (line 34) | func newAliasMethodPicker(instances []discovery.Instance, weightSum int)... FILE: pkg/loadbalance/weighted_round_robin.go constant wrrVNodesBatchSize (line 33) | wrrVNodesBatchSize = 500 type wrrNode (line 35) | type wrrNode struct function newWeightedRoundRobinPicker (line 40) | func newWeightedRoundRobinPicker(instances []discovery.Instance) Picker { type WeightedRoundRobinPicker (line 68) | type WeightedRoundRobinPicker struct method Next (line 80) | func (wp *WeightedRoundRobinPicker) Next(ctx context.Context, request ... method buildVirtualWrrNodes (line 106) | func (wp *WeightedRoundRobinPicker) buildVirtualWrrNodes(vtarget uint6... function nextWrrNode (line 116) | func nextWrrNode(nodes []*wrrNode) (selected *wrrNode) { type RoundRobinPicker (line 135) | type RoundRobinPicker struct method Next (line 151) | func (rp *RoundRobinPicker) Next(ctx context.Context, request interfac... function newRoundRobinPicker (line 141) | func newRoundRobinPicker(instances []discovery.Instance) Picker { function gcdInt (line 160) | func gcdInt(a, b int) int { FILE: pkg/loadbalance/weighted_round_robin_test.go function TestRoundRobinPicker (line 29) | func TestRoundRobinPicker(t *testing.T) { function TestWeightedRoundRobinPicker (line 59) | func TestWeightedRoundRobinPicker(t *testing.T) { function TestWeightedRoundRobinPickerLargeInstances (line 90) | func TestWeightedRoundRobinPickerLargeInstances(t *testing.T) { function TestNextWrrNode (line 113) | func TestNextWrrNode(t *testing.T) { FILE: pkg/logid/logid.go constant logIDVersion (line 30) | logIDVersion = "02" constant logIDMaxLength (line 31) | logIDMaxLength = 21 constant maxRandNum (line 32) | maxRandNum = 1<<24 - 1<<20 function init (line 40) | func init() { function SetLogIDGenerator (line 46) | func SetLogIDGenerator(g func(ctx context.Context) string) { function SetLogIDExtra (line 52) | func SetLogIDExtra(extra string) { function loadLogIDExtra (line 60) | func loadLogIDExtra() string { function DefaultLogIDGenerator (line 72) | func DefaultLogIDGenerator(ctx context.Context) string { FILE: pkg/logid/streaming.go type keyTypeStreamLogID (line 27) | type keyTypeStreamLogID constant ctxKeyStreamLogID (line 29) | ctxKeyStreamLogID keyTypeStreamLogID = "stream-log-id" function NewCtxWithStreamLogID (line 39) | func NewCtxWithStreamLogID(ctx context.Context, logID string) context.Co... function GetStreamLogID (line 47) | func GetStreamLogID(ctx context.Context) string { function GenerateStreamLogID (line 61) | func GenerateStreamLogID(ctx context.Context) string { FILE: pkg/logid/streaming_test.go function TestGenStreamLogID (line 27) | func TestGenStreamLogID(t *testing.T) { function TestContextStreamLogID (line 64) | func TestContextStreamLogID(t *testing.T) { FILE: pkg/mem/span.go constant spanCacheSize (line 34) | spanCacheSize = 10 constant minSpanObject (line 35) | minSpanObject = 128 constant maxSpanObject (line 36) | maxSpanObject = (minSpanObject << spanCacheSize) - 1 constant minSpanClass (line 37) | minSpanClass = 8 type spanCache (line 40) | type spanCache struct method Make (line 56) | func (c *spanCache) Make(n int) []byte { method Copy (line 65) | func (c *spanCache) Copy(buf []byte) (p []byte) { function NewSpanCache (line 46) | func NewSpanCache(spanSize int) *spanCache { function NewSpan (line 72) | func NewSpan(size int) *span { type span (line 79) | type span struct method Make (line 88) | func (b *span) Make(_n int) []byte { method Copy (line 109) | func (b *span) Copy(buf []byte) (p []byte) { function spanClass (line 117) | func spanClass(size int) int { FILE: pkg/mem/span_test.go function TestSpanClass (line 28) | func TestSpanClass(t *testing.T) { function TestSpan (line 55) | func TestSpan(t *testing.T) { function TestSpanCache (line 87) | func TestSpanCache(t *testing.T) { function BenchmarkSpanCacheCopy (line 126) | func BenchmarkSpanCacheCopy(b *testing.B) { function BenchmarkMakeAndCopy (line 149) | func BenchmarkMakeAndCopy(b *testing.B) { FILE: pkg/profiler/profiler.go type profilerContextKey (line 35) | type profilerContextKey struct type Profiler (line 37) | type Profiler interface type Processor (line 48) | type Processor function LogProcessor (line 50) | func LogProcessor(profiles []*TagsProfile) error { function NewProfiler (line 66) | func NewProfiler(processor Processor, interval, window time.Duration) *p... constant stateRunning (line 84) | stateRunning = 0 constant statePausing (line 85) | statePausing = 1 constant statePaused (line 86) | statePaused = 2 constant stateResuming (line 87) | stateResuming = 3 constant stateStopped (line 88) | stateStopped = 4 type profiler (line 91) | type profiler struct method Prepare (line 137) | func (p *profiler) Prepare(ctx context.Context) context.Context { method State (line 145) | func (p *profiler) State() (state int) { method Stop (line 153) | func (p *profiler) Stop() { method Pause (line 163) | func (p *profiler) Pause() { method Resume (line 175) | func (p *profiler) Resume() { method Run (line 186) | func (p *profiler) Run(ctx context.Context) (err error) { method Tag (line 247) | func (p *profiler) Tag(ctx context.Context, tags ...string) context.Co... method Untag (line 264) | func (p *profiler) Untag(ctx context.Context) { method Lookup (line 273) | func (p *profiler) Lookup(ctx context.Context, key string) (string, bo... method stateChange (line 277) | func (p *profiler) stateChange(from, to int) { method stateWait (line 287) | func (p *profiler) stateWait(to int) { method startProfile (line 295) | func (p *profiler) startProfile() error { method stopProfile (line 300) | func (p *profiler) stopProfile() { method analyse (line 304) | func (p *profiler) analyse() ([]*TagsProfile, error) { function Tag (line 103) | func Tag(ctx context.Context) { function IsEnabled (line 111) | func IsEnabled(ctx context.Context) bool { function Untag (line 117) | func Untag(ctx context.Context) { type profilerContext (line 123) | type profilerContext struct function newProfilerContext (line 129) | func newProfilerContext(profiler Profiler) *profilerContext { type TagsProfile (line 353) | type TagsProfile struct function labelToTags (line 360) | func labelToTags(label map[string][]string) []string { function tagsToKey (line 368) | func tagsToKey(tags []string) string { FILE: pkg/profiler/profiler_test.go function TestProfiler (line 32) | func TestProfiler(t *testing.T) { function TestProfilerPaused (line 77) | func TestProfilerPaused(t *testing.T) { function TestLabelToTags (line 115) | func TestLabelToTags(t *testing.T) { function TestTagsToKey (line 138) | func TestTagsToKey(t *testing.T) { FILE: pkg/protocol/bthrift/apache/apache.go function init (line 27) | func init() { function checkTStruct (line 36) | func checkTStruct(v interface{}) error { function callThriftRead (line 44) | func callThriftRead(r bufiox.Reader, v interface{}) error { function callThriftWrite (line 55) | func callThriftWrite(w bufiox.Writer, v interface{}) error { FILE: pkg/protocol/bthrift/apache/apache_test.go type mockTStruct (line 27) | type mockTStruct struct method Read (line 31) | func (m *mockTStruct) Read(iprot thrift.TProtocol) (err error) { method Write (line 40) | func (m *mockTStruct) Write(oprot thrift.TProtocol) (err error) { function TestCheckTStruct (line 44) | func TestCheckTStruct(t *testing.T) { function TestCallThriftReadAndWrite (line 49) | func TestCallThriftReadAndWrite(t *testing.T) { FILE: pkg/protocol/bthrift/apache/binary_protocol.go type BinaryProtocol (line 42) | type BinaryProtocol struct method Recycle (line 66) | func (p *BinaryProtocol) Recycle() { method WriteMessageBegin (line 82) | func (p *BinaryProtocol) WriteMessageBegin(name string, typeID TMessag... method WriteMessageEnd (line 87) | func (p *BinaryProtocol) WriteMessageEnd() error { method WriteStructBegin (line 92) | func (p *BinaryProtocol) WriteStructBegin(name string) error { method WriteStructEnd (line 97) | func (p *BinaryProtocol) WriteStructEnd() error { method WriteFieldBegin (line 102) | func (p *BinaryProtocol) WriteFieldBegin(name string, typeID TType, id... method WriteFieldEnd (line 107) | func (p *BinaryProtocol) WriteFieldEnd() error { method WriteFieldStop (line 112) | func (p *BinaryProtocol) WriteFieldStop() error { method WriteMapBegin (line 117) | func (p *BinaryProtocol) WriteMapBegin(keyType, valueType TType, size ... method WriteMapEnd (line 122) | func (p *BinaryProtocol) WriteMapEnd() error { method WriteListBegin (line 127) | func (p *BinaryProtocol) WriteListBegin(elemType TType, size int) error { method WriteListEnd (line 132) | func (p *BinaryProtocol) WriteListEnd() error { method WriteSetBegin (line 137) | func (p *BinaryProtocol) WriteSetBegin(elemType TType, size int) error { method WriteSetEnd (line 142) | func (p *BinaryProtocol) WriteSetEnd() error { method WriteBool (line 147) | func (p *BinaryProtocol) WriteBool(value bool) error { method WriteByte (line 152) | func (p *BinaryProtocol) WriteByte(value int8) error { method WriteI16 (line 157) | func (p *BinaryProtocol) WriteI16(value int16) error { method WriteI32 (line 162) | func (p *BinaryProtocol) WriteI32(value int32) error { method WriteI64 (line 167) | func (p *BinaryProtocol) WriteI64(value int64) error { method WriteDouble (line 172) | func (p *BinaryProtocol) WriteDouble(value float64) error { method WriteString (line 177) | func (p *BinaryProtocol) WriteString(value string) error { method WriteBinary (line 182) | func (p *BinaryProtocol) WriteBinary(value []byte) error { method ReadMessageBegin (line 191) | func (p *BinaryProtocol) ReadMessageBegin() (name string, typeID TMess... method ReadMessageEnd (line 199) | func (p *BinaryProtocol) ReadMessageEnd() error { method ReadStructBegin (line 204) | func (p *BinaryProtocol) ReadStructBegin() (name string, err error) { method ReadStructEnd (line 209) | func (p *BinaryProtocol) ReadStructEnd() error { method ReadFieldBegin (line 214) | func (p *BinaryProtocol) ReadFieldBegin() (name string, typeID TType, ... method ReadFieldEnd (line 222) | func (p *BinaryProtocol) ReadFieldEnd() error { method ReadMapBegin (line 227) | func (p *BinaryProtocol) ReadMapBegin() (kType, vType TType, size int,... method ReadMapEnd (line 236) | func (p *BinaryProtocol) ReadMapEnd() error { method ReadListBegin (line 241) | func (p *BinaryProtocol) ReadListBegin() (elemType TType, size int, er... method ReadListEnd (line 249) | func (p *BinaryProtocol) ReadListEnd() error { method ReadSetBegin (line 254) | func (p *BinaryProtocol) ReadSetBegin() (elemType TType, size int, err... method ReadSetEnd (line 262) | func (p *BinaryProtocol) ReadSetEnd() error { method ReadBool (line 267) | func (p *BinaryProtocol) ReadBool() (bool, error) { method ReadByte (line 272) | func (p *BinaryProtocol) ReadByte() (value int8, err error) { method ReadI16 (line 277) | func (p *BinaryProtocol) ReadI16() (value int16, err error) { method ReadI32 (line 282) | func (p *BinaryProtocol) ReadI32() (value int32, err error) { method ReadI64 (line 287) | func (p *BinaryProtocol) ReadI64() (value int64, err error) { method ReadDouble (line 292) | func (p *BinaryProtocol) ReadDouble() (value float64, err error) { method ReadString (line 297) | func (p *BinaryProtocol) ReadString() (value string, err error) { method ReadBinary (line 302) | func (p *BinaryProtocol) ReadBinary() ([]byte, error) { method Flush (line 307) | func (p *BinaryProtocol) Flush(ctx context.Context) (err error) { method Skip (line 316) | func (p *BinaryProtocol) Skip(fieldType TType) (err error) { method Transport (line 321) | func (p *BinaryProtocol) Transport() TTransport { method GetBufioxReader (line 325) | func (p *BinaryProtocol) GetBufioxReader() bufiox.Reader { method GetBufioxWriter (line 329) | func (p *BinaryProtocol) GetBufioxWriter() bufiox.Writer { function NewBinaryProtocol (line 52) | func NewBinaryProtocol(r bufiox.Reader, w bufiox.Writer) *BinaryProtocol { type ttransportByteBuffer (line 336) | type ttransportByteBuffer struct method Close (line 338) | func (ttransportByteBuffer) Close() error { p... method Flush (line 339) | func (ttransportByteBuffer) Flush(ctx context.Context) (err error) { p... method IsOpen (line 340) | func (ttransportByteBuffer) IsOpen() bool { p... method Open (line 341) | func (ttransportByteBuffer) Open() error { p... method RemainingBytes (line 342) | func (p ttransportByteBuffer) RemainingBytes() uint64 { p... method Read (line 343) | func (ttransportByteBuffer) Read(p []byte) (n int, err error) { p... method Write (line 344) | func (ttransportByteBuffer) Write(p []byte) (n int, err error) { p... FILE: pkg/protocol/bthrift/apache/binary_protocol_test.go function TestBinaryProtocolWrite (line 28) | func TestBinaryProtocolWrite(t *testing.T) { function TestBinaryProtocolRead (line 122) | func TestBinaryProtocolRead(t *testing.T) { FILE: pkg/protocol/bthrift/apache/thrift.go constant VERSION_MASK (line 31) | VERSION_MASK = 0xffff0000 constant VERSION_1 (line 32) | VERSION_1 = 0x80010000 constant UNKNOWN_PROTOCOL_EXCEPTION (line 45) | UNKNOWN_PROTOCOL_EXCEPTION = 0 constant INVALID_DATA (line 46) | INVALID_DATA = 1 constant NEGATIVE_SIZE (line 47) | NEGATIVE_SIZE = 2 constant SIZE_LIMIT (line 48) | SIZE_LIMIT = 3 constant BAD_VERSION (line 49) | BAD_VERSION = 4 constant NOT_IMPLEMENTED (line 50) | NOT_IMPLEMENTED = 5 constant DEPTH_LIMIT (line 51) | DEPTH_LIMIT = 6 constant INVALID_TMESSAGE_TYPE (line 57) | INVALID_TMESSAGE_TYPE TMessageType = 0 constant CALL (line 58) | CALL TMessageType = 1 constant REPLY (line 59) | REPLY TMessageType = 2 constant EXCEPTION (line 60) | EXCEPTION TMessageType = 3 constant ONEWAY (line 61) | ONEWAY TMessageType = 4 constant STOP (line 67) | STOP = 0 constant VOID (line 68) | VOID = 1 constant BOOL (line 69) | BOOL = 2 constant BYTE (line 70) | BYTE = 3 constant I08 (line 71) | I08 = 3 constant DOUBLE (line 72) | DOUBLE = 4 constant I16 (line 73) | I16 = 6 constant I32 (line 74) | I32 = 8 constant I64 (line 75) | I64 = 10 constant STRING (line 76) | STRING = 11 constant UTF7 (line 77) | UTF7 = 11 constant STRUCT (line 78) | STRUCT = 12 constant MAP (line 79) | MAP = 13 constant SET (line 80) | SET = 14 constant LIST (line 81) | LIST = 15 constant UTF8 (line 82) | UTF8 = 16 constant UTF16 (line 83) | UTF16 = 17 FILE: pkg/protocol/bthrift/binary.go type binaryProtocol (line 32) | type binaryProtocol struct method WriteMessageBegin (line 40) | func (binaryProtocol) WriteMessageBegin(buf []byte, name string, typeI... method WriteMessageEnd (line 44) | func (binaryProtocol) WriteMessageEnd(buf []byte) int { method WriteStructBegin (line 48) | func (binaryProtocol) WriteStructBegin(buf []byte, name string) int { method WriteStructEnd (line 52) | func (binaryProtocol) WriteStructEnd(buf []byte) int { method WriteFieldBegin (line 56) | func (binaryProtocol) WriteFieldBegin(buf []byte, name string, typeID ... method WriteFieldEnd (line 60) | func (binaryProtocol) WriteFieldEnd(buf []byte) int { method WriteFieldStop (line 64) | func (binaryProtocol) WriteFieldStop(buf []byte) int { method WriteMapBegin (line 68) | func (binaryProtocol) WriteMapBegin(buf []byte, keyType, valueType thr... method WriteMapEnd (line 72) | func (binaryProtocol) WriteMapEnd(buf []byte) int { method WriteListBegin (line 76) | func (binaryProtocol) WriteListBegin(buf []byte, elemType thrift.TType... method WriteListEnd (line 80) | func (binaryProtocol) WriteListEnd(buf []byte) int { method WriteSetBegin (line 84) | func (binaryProtocol) WriteSetBegin(buf []byte, elemType thrift.TType,... method WriteSetEnd (line 88) | func (binaryProtocol) WriteSetEnd(buf []byte) int { method WriteBool (line 92) | func (binaryProtocol) WriteBool(buf []byte, value bool) int { method WriteByte (line 96) | func (binaryProtocol) WriteByte(buf []byte, value int8) int { method WriteI16 (line 100) | func (binaryProtocol) WriteI16(buf []byte, value int16) int { method WriteI32 (line 104) | func (binaryProtocol) WriteI32(buf []byte, value int32) int { method WriteI64 (line 108) | func (binaryProtocol) WriteI64(buf []byte, value int64) int { method WriteDouble (line 112) | func (binaryProtocol) WriteDouble(buf []byte, value float64) int { method WriteString (line 116) | func (binaryProtocol) WriteString(buf []byte, value string) int { method WriteBinary (line 120) | func (binaryProtocol) WriteBinary(buf, value []byte) int { method WriteStringNocopy (line 124) | func (binaryProtocol) WriteStringNocopy(buf []byte, binaryWriter Binar... method WriteBinaryNocopy (line 128) | func (binaryProtocol) WriteBinaryNocopy(buf []byte, binaryWriter Binar... method MessageBeginLength (line 132) | func (binaryProtocol) MessageBeginLength(name string, _ thrift.TMessag... method MessageEndLength (line 136) | func (binaryProtocol) MessageEndLength() int { method StructBeginLength (line 140) | func (binaryProtocol) StructBeginLength(name string) int { method StructEndLength (line 144) | func (binaryProtocol) StructEndLength() int { method FieldBeginLength (line 148) | func (binaryProtocol) FieldBeginLength(name string, typeID thrift.TTyp... method FieldEndLength (line 152) | func (binaryProtocol) FieldEndLength() int { method FieldStopLength (line 156) | func (binaryProtocol) FieldStopLength() int { method MapBeginLength (line 160) | func (binaryProtocol) MapBeginLength(keyType, valueType thrift.TType, ... method MapEndLength (line 164) | func (binaryProtocol) MapEndLength() int { method ListBeginLength (line 168) | func (binaryProtocol) ListBeginLength(elemType thrift.TType, size int)... method ListEndLength (line 172) | func (binaryProtocol) ListEndLength() int { method SetBeginLength (line 176) | func (binaryProtocol) SetBeginLength(elemType thrift.TType, size int) ... method SetEndLength (line 180) | func (binaryProtocol) SetEndLength() int { method BoolLength (line 184) | func (binaryProtocol) BoolLength(value bool) int { method ByteLength (line 188) | func (binaryProtocol) ByteLength(value int8) int { method I16Length (line 192) | func (binaryProtocol) I16Length(value int16) int { method I32Length (line 196) | func (binaryProtocol) I32Length(value int32) int { method I64Length (line 200) | func (binaryProtocol) I64Length(value int64) int { method DoubleLength (line 204) | func (binaryProtocol) DoubleLength(value float64) int { method StringLength (line 208) | func (binaryProtocol) StringLength(value string) int { method BinaryLength (line 212) | func (binaryProtocol) BinaryLength(value []byte) int { method StringLengthNocopy (line 216) | func (binaryProtocol) StringLengthNocopy(value string) int { method BinaryLengthNocopy (line 220) | func (binaryProtocol) BinaryLengthNocopy(value []byte) int { method ReadMessageBegin (line 224) | func (binaryProtocol) ReadMessageBegin(buf []byte) (name string, typeI... method ReadMessageEnd (line 232) | func (binaryProtocol) ReadMessageEnd(_ []byte) (int, error) { return 0... method ReadStructBegin (line 234) | func (binaryProtocol) ReadStructBegin(_ []byte) (name string, length i... method ReadStructEnd (line 238) | func (binaryProtocol) ReadStructEnd(_ []byte) (int, error) { return 0,... method ReadFieldBegin (line 240) | func (binaryProtocol) ReadFieldBegin(buf []byte) (name string, typeID ... method ReadFieldEnd (line 247) | func (binaryProtocol) ReadFieldEnd(_ []byte) (int, error) { return 0, ... method ReadMapBegin (line 249) | func (binaryProtocol) ReadMapBegin(buf []byte) (keyType, valueType thr... method ReadMapEnd (line 257) | func (binaryProtocol) ReadMapEnd(_ []byte) (int, error) { return 0, nil } method ReadListBegin (line 259) | func (binaryProtocol) ReadListBegin(buf []byte) (elemType thrift.TType... method ReadListEnd (line 266) | func (binaryProtocol) ReadListEnd(_ []byte) (int, error) { return 0, n... method ReadSetBegin (line 268) | func (binaryProtocol) ReadSetBegin(buf []byte) (elemType thrift.TType,... method ReadSetEnd (line 275) | func (binaryProtocol) ReadSetEnd(_ []byte) (int, error) { return 0, nil } method ReadBool (line 277) | func (binaryProtocol) ReadBool(buf []byte) (value bool, length int, er... method ReadByte (line 282) | func (binaryProtocol) ReadByte(buf []byte) (value int8, length int, er... method ReadI16 (line 287) | func (binaryProtocol) ReadI16(buf []byte) (value int16, length int, er... method ReadI32 (line 292) | func (binaryProtocol) ReadI32(buf []byte) (value int32, length int, er... method ReadI64 (line 297) | func (binaryProtocol) ReadI64(buf []byte) (value int64, length int, er... method ReadDouble (line 302) | func (binaryProtocol) ReadDouble(buf []byte) (value float64, length in... method ReadString (line 307) | func (binaryProtocol) ReadString(buf []byte) (value string, length int... method ReadBinary (line 313) | func (binaryProtocol) ReadBinary(buf []byte) (value []byte, length int... method Skip (line 320) | func (binaryProtocol) Skip(buf []byte, fieldType thrift.TType) (length... function SetSpanCache (line 36) | func SetSpanCache(enable bool) { FILE: pkg/protocol/bthrift/binary_test.go function TestWriteMessageEnd (line 29) | func TestWriteMessageEnd(t *testing.T) { function TestWriteStructBegin (line 35) | func TestWriteStructBegin(t *testing.T) { function TestWriteStructEnd (line 46) | func TestWriteStructEnd(t *testing.T) { function TestWriteAndReadFieldBegin (line 56) | func TestWriteAndReadFieldBegin(t *testing.T) { function TestWriteFieldEnd (line 78) | func TestWriteFieldEnd(t *testing.T) { function TestWriteFieldStop (line 84) | func TestWriteFieldStop(t *testing.T) { function TestWriteAndReadMapBegin (line 90) | func TestWriteAndReadMapBegin(t *testing.T) { function TestWriteMapEnd (line 112) | func TestWriteMapEnd(t *testing.T) { function TestWriteAndReadListBegin (line 118) | func TestWriteAndReadListBegin(t *testing.T) { function TestWriteListEnd (line 139) | func TestWriteListEnd(t *testing.T) { function TestWriteAndReadSetBegin (line 145) | func TestWriteAndReadSetBegin(t *testing.T) { function TestWriteSetEnd (line 166) | func TestWriteSetEnd(t *testing.T) { function TestWriteAndReadBool (line 172) | func TestWriteAndReadBool(t *testing.T) { function TestWriteAndReadByte (line 199) | func TestWriteAndReadByte(t *testing.T) { function TestWriteAndReadI16 (line 215) | func TestWriteAndReadI16(t *testing.T) { function TestWriteAndReadI32 (line 231) | func TestWriteAndReadI32(t *testing.T) { function TestWriteAndReadI64 (line 247) | func TestWriteAndReadI64(t *testing.T) { function TestWriteAndReadDouble (line 263) | func TestWriteAndReadDouble(t *testing.T) { function TestWriteAndReadString (line 279) | func TestWriteAndReadString(t *testing.T) { function TestWriteAndReadBinary (line 295) | func TestWriteAndReadBinary(t *testing.T) { function TestWriteStringNocopy (line 314) | func TestWriteStringNocopy(t *testing.T) { function TestWriteBinaryNocopy (line 325) | func TestWriteBinaryNocopy(t *testing.T) { function TestLength (line 336) | func TestLength(t *testing.T) { function TestWriteMessageBegin (line 387) | func TestWriteMessageBegin(t *testing.T) { function TestSkip (line 460) | func TestSkip(t *testing.T) { function BenchmarkBinaryProtocolReadString (line 531) | func BenchmarkBinaryProtocolReadString(b *testing.B) { FILE: pkg/protocol/bthrift/interface.go type BTProtocol (line 31) | type BTProtocol interface FILE: pkg/protocol/bthrift/internal/test/assert.go type testingTB (line 22) | type testingTB interface function Assert (line 29) | func Assert(t testingTB, cond bool, val ...interface{}) { function Assertf (line 42) | func Assertf(t testingTB, cond bool, format string, val ...interface{}) { function DeepEqual (line 50) | func DeepEqual(t testingTB, a, b interface{}) { function Panic (line 58) | func Panic(t testingTB, fn func()) { function PanicAt (line 75) | func PanicAt(t testingTB, fn func(), expect func(err interface{}) bool) { FILE: pkg/protocol/bthrift/internal/test/assert_test.go type mockTesting (line 24) | type mockTesting struct method Reset (line 33) | func (m *mockTesting) Reset() { method ExpectFatal (line 39) | func (m *mockTesting) ExpectFatal(args ...interface{}) { method ExpectFatalf (line 43) | func (m *mockTesting) ExpectFatalf(format string, args ...interface{}) { method Fatal (line 47) | func (m *mockTesting) Fatal(args ...interface{}) { method Fatalf (line 58) | func (m *mockTesting) Fatalf(format string, args ...interface{}) { method Helper (line 69) | func (m *mockTesting) Helper() { m.helper = true } function TestAssert (line 71) | func TestAssert(t *testing.T) { FILE: pkg/protocol/bthrift/unknown.go type UnknownField (line 26) | type UnknownField struct function fromGopkgUnknownFields (line 35) | func fromGopkgUnknownFields(ff []unknownfields.UnknownField) []UnknownFi... function toGopkgUnknownFields (line 56) | func toGopkgUnknownFields(ff []UnknownField) []unknownfields.UnknownField { function GetUnknownFields (line 78) | func GetUnknownFields(v interface{}) (fields []UnknownField, err error) { function ConvertUnknownFields (line 85) | func ConvertUnknownFields(buf unknown.Fields) (fields []UnknownField, er... function UnknownFieldsLength (line 92) | func UnknownFieldsLength(fs []UnknownField) (int, error) { function WriteUnknownFields (line 98) | func WriteUnknownFields(buf []byte, fs []UnknownField) (offset int, err ... FILE: pkg/protocol/bthrift/unknown_test.go function TestUnknownFieldTypeConvert (line 28) | func TestUnknownFieldTypeConvert(t *testing.T) { function TestGetUnknownFieldsList (line 35) | func TestGetUnknownFieldsList(t *testing.T) { FILE: pkg/proxy/proxy.go type Config (line 31) | type Config struct type ForwardProxy (line 41) | type ForwardProxy interface type WithMiddleware (line 50) | type WithMiddleware interface type ReverseProxy (line 56) | type ReverseProxy interface type ContextHandler (line 66) | type ContextHandler interface FILE: pkg/registry/registry.go type Registry (line 28) | type Registry interface type Info (line 35) | type Info struct type noopRegistry (line 58) | type noopRegistry struct method Register (line 60) | func (e noopRegistry) Register(*Info) error { method Deregister (line 64) | func (e noopRegistry) Deregister(*Info) error { FILE: pkg/remote/bound/limiter_inbound.go function NewServerLimiterHandler (line 31) | func NewServerLimiterHandler(conLimit limiter.ConcurrencyLimiter, qpsLim... type serverLimiterHandler (line 35) | type serverLimiterHandler struct method OnActive (line 43) | func (l *serverLimiterHandler) OnActive(ctx context.Context, conn net.... method OnRead (line 54) | func (l *serverLimiterHandler) OnRead(ctx context.Context, conn net.Co... method OnInactive (line 68) | func (l *serverLimiterHandler) OnInactive(ctx context.Context, conn ne... method OnMessage (line 74) | func (l *serverLimiterHandler) OnMessage(ctx context.Context, args, re... function DeepEqual (line 87) | func DeepEqual(bound1, bound2 remote.InboundHandler) bool { FILE: pkg/remote/bound/limiter_inbound_test.go function TestNewServerLimiterHandler (line 36) | func TestNewServerLimiterHandler(t *testing.T) { function TestLimiterOnActive (line 52) | func TestLimiterOnActive(t *testing.T) { function TestLimiterOnRead (line 124) | func TestLimiterOnRead(t *testing.T) { function TestLimiterOnInactive (line 182) | func TestLimiterOnInactive(t *testing.T) { function TestLimiterOnMessage (line 205) | func TestLimiterOnMessage(t *testing.T) { FILE: pkg/remote/bound/transmeta_bound.go function NewTransMetaHandler (line 30) | func NewTransMetaHandler(mhs []remote.MetaHandler) remote.DuplexBoundHan... type transMetaHandler (line 34) | type transMetaHandler struct method Write (line 39) | func (h *transMetaHandler) Write(ctx context.Context, conn net.Conn, s... method OnMessage (line 51) | func (h *transMetaHandler) OnMessage(ctx context.Context, args, result... method OnActive (line 77) | func (h *transMetaHandler) OnActive(ctx context.Context, conn net.Conn... method OnRead (line 82) | func (h *transMetaHandler) OnRead(ctx context.Context, conn net.Conn) ... method OnInactive (line 87) | func (h *transMetaHandler) OnInactive(ctx context.Context, conn net.Co... function getValidMsg (line 91) | func getValidMsg(args, result remote.Message) (msg remote.Message, isSer... FILE: pkg/remote/bound/transmeta_bound_test.go function TestNewTransMetaHandler (line 38) | func TestNewTransMetaHandler(t *testing.T) { function TestTransMetaHandlerWrite (line 55) | func TestTransMetaHandlerWrite(t *testing.T) { function TestTransMetaHandlerOnMessage (line 129) | func TestTransMetaHandlerOnMessage(t *testing.T) { function TestGetValidMsg (line 249) | func TestGetValidMsg(t *testing.T) { function TestTransMetaHandlerOnActive (line 268) | func TestTransMetaHandlerOnActive(t *testing.T) { function TestTransMetaHandlerOnRead (line 283) | func TestTransMetaHandlerOnRead(t *testing.T) { function TestTransMetaHandlerOnInactive (line 298) | func TestTransMetaHandlerOnInactive(t *testing.T) { FILE: pkg/remote/bufiox2buffer.go type bufioxBuffer (line 25) | type bufioxBuffer struct method ReadableLen (line 39) | func (b *bufioxBuffer) ReadableLen() (n int) { method ReadString (line 43) | func (b *bufioxBuffer) ReadString(n int) (s string, err error) { method WriteString (line 47) | func (b *bufioxBuffer) WriteString(s string) (n int, err error) { method NewBuffer (line 51) | func (b *bufioxBuffer) NewBuffer() ByteBuffer { method AppendBuffer (line 55) | func (b *bufioxBuffer) AppendBuffer(buf ByteBuffer) (err error) { method Bytes (line 59) | func (b *bufioxBuffer) Bytes() (buf []byte, err error) { function NewByteBufferFromBufiox (line 32) | func NewByteBufferFromBufiox(bw bufiox.Writer, br bufiox.Reader) ByteBuf... FILE: pkg/remote/bytebuf.go type ByteBufferFactory (line 25) | type ByteBufferFactory interface type NocopyWrite (line 31) | type NocopyWrite interface type FrameWrite (line 40) | type FrameWrite interface type ByteBuffer (line 48) | type ByteBuffer interface type ByteBufferIO (line 106) | type ByteBufferIO struct method Write (line 118) | func (p *ByteBufferIO) Write(b []byte) (int, error) { method Read (line 123) | func (p *ByteBufferIO) Read(b []byte) (n int, err error) { function NewByteBufferIO (line 111) | func NewByteBufferIO(buffer ByteBuffer) io.ReadWriter { FILE: pkg/remote/codec.go type Codec (line 24) | type Codec interface type MetaEncoder (line 34) | type MetaEncoder interface type MetaDecoder (line 40) | type MetaDecoder interface FILE: pkg/remote/codec/bytebuf_util.go function ReadUint32 (line 28) | func ReadUint32(in remote.ByteBuffer) (uint32, error) { function PeekUint32 (line 38) | func PeekUint32(in remote.ByteBuffer) (uint32, error) { function ReadUint16 (line 48) | func ReadUint16(in remote.ByteBuffer) (uint16, error) { function WriteUint32 (line 58) | func WriteUint32(val uint32, out remote.ByteBuffer) error { function WriteUint16 (line 69) | func WriteUint16(val uint16, out remote.ByteBuffer) error { function WriteByte (line 80) | func WriteByte(val byte, out remote.ByteBuffer) error { function Bytes2Uint32NoCheck (line 91) | func Bytes2Uint32NoCheck(bytes []byte) uint32 { function Bytes2Uint32 (line 96) | func Bytes2Uint32(bytes []byte) (uint32, error) { function Bytes2Uint16NoCheck (line 104) | func Bytes2Uint16NoCheck(bytes []byte) uint16 { function Bytes2Uint16 (line 109) | func Bytes2Uint16(bytes []byte, off int) (uint16, error) { function Bytes2Uint8 (line 117) | func Bytes2Uint8(bytes []byte, off int) (uint8, error) { function ReadString (line 125) | func ReadString(in remote.ByteBuffer) (string, int, error) { function WriteString (line 138) | func WriteString(val string, out remote.ByteBuffer) (int, error) { function WriteString2BLen (line 151) | func WriteString2BLen(val string, out remote.ByteBuffer) (int, error) { function ReadString2BLen (line 164) | func ReadString2BLen(bytes []byte, off int) (string, int, error) { FILE: pkg/remote/codec/default_codec.go constant Size32 (line 37) | Size32 = 4 constant Size16 (line 38) | Size16 = 2 constant ThriftV1Magic (line 43) | ThriftV1Magic = 0x80010000 constant ProtobufV1Magic (line 45) | ProtobufV1Magic = 0x90010000 constant MagicMask (line 48) | MagicMask = 0xffff0000 function NewDefaultCodec (line 60) | func NewDefaultCodec() remote.Codec { function NewDefaultCodecWithSizeLimit (line 69) | func NewDefaultCodecWithSizeLimit(maxSize int) remote.Codec { function NewDefaultCodecWithConfig (line 76) | func NewDefaultCodecWithConfig(cfg CodecConfig) remote.Codec { type CodecConfig (line 85) | type CodecConfig struct type defaultCodec (line 100) | type defaultCodec struct method EncodePayload (line 105) | func (c *defaultCodec) EncodePayload(ctx context.Context, message remo... method EncodeMetaAndPayload (line 152) | func (c *defaultCodec) EncodeMetaAndPayload(ctx context.Context, messa... method Encode (line 184) | func (c *defaultCodec) Encode(ctx context.Context, message remote.Mess... method DecodeMeta (line 189) | func (c *defaultCodec) DecodeMeta(ctx context.Context, message remote.... method DecodePayload (line 224) | func (c *defaultCodec) DecodePayload(ctx context.Context, message remo... method Decode (line 249) | func (c *defaultCodec) Decode(ctx context.Context, message remote.Mess... method Name (line 259) | func (c *defaultCodec) Name() string { method encodeMetaAndPayloadWithPayloadValidator (line 264) | func (c *defaultCodec) encodeMetaAndPayloadWithPayloadValidator(ctx co... method encodePayload (line 313) | func (c *defaultCodec) encodePayload(ctx context.Context, message remo... function IsTTHeader (line 328) | func IsTTHeader(flagBuf []byte) bool { function isMeshHeader (line 339) | func isMeshHeader(flagBuf []byte) bool { function isProtobufKitex (line 351) | func isProtobufKitex(flagBuf []byte) bool { function isThriftBinary (line 362) | func isThriftBinary(flagBuf []byte) bool { function isThriftFramedBinary (line 373) | func isThriftFramedBinary(flagBuf []byte) bool { function checkPayload (line 377) | func checkPayload(flagBuf []byte, message remote.Message, in remote.Byte... function checkPayloadSize (line 429) | func checkPayloadSize(payloadLen, maxSize int) error { function getWrittenBytes (line 440) | func getWrittenBytes(lb *netpoll.LinkBuffer) (buf []byte, err error) { FILE: pkg/remote/codec/default_codec_test.go function TestThriftProtocolCheck (line 58) | func TestThriftProtocolCheck(t *testing.T) { function TestProtobufProtocolCheck (line 152) | func TestProtobufProtocolCheck(t *testing.T) { function TestDefaultCodec_Encode_Decode (line 201) | func TestDefaultCodec_Encode_Decode(t *testing.T) { function TestDefaultSizedCodec_Encode_Decode (line 235) | func TestDefaultSizedCodec_Encode_Decode(t *testing.T) { function TestDefaultCodecWithCRC32_Encode_Decode (line 269) | func TestDefaultCodecWithCRC32_Encode_Decode(t *testing.T) { function TestDefaultCodecWithCustomizedValidator (line 318) | func TestDefaultCodecWithCustomizedValidator(t *testing.T) { function TestCodecTypeNotMatchWithServiceInfoPayloadCodec (line 374) | func TestCodecTypeNotMatchWithServiceInfoPayloadCodec(t *testing.T) { function BenchmarkDefaultEncodeDecode (line 404) | func BenchmarkDefaultEncodeDecode(b *testing.B) { type mockPayloadCodec (line 443) | type mockPayloadCodec struct method Marshal (line 445) | func (m mockPayloadCodec) Marshal(ctx context.Context, message remote.... method Unmarshal (line 469) | func (m mockPayloadCodec) Unmarshal(ctx context.Context, message remot... method Name (line 511) | func (m mockPayloadCodec) Name() string { function TestCornerCase (line 515) | func TestCornerCase(t *testing.T) { FILE: pkg/remote/codec/grpc/grpc.go constant dataFrameHeaderLen (line 41) | dataFrameHeaderLen = 5 type marshaler (line 49) | type marshaler interface type protobufV2MsgCodec (line 54) | type protobufV2MsgCodec interface type grpcCodec (line 59) | type grpcCodec struct method Encode (line 89) | func (c *grpcCodec) Encode(ctx context.Context, message remote.Message... method Decode (line 202) | func (c *grpcCodec) Decode(ctx context.Context, message remote.Message... method Name (line 276) | func (c *grpcCodec) Name() string { type CodecOption (line 63) | type CodecOption function WithThriftCodec (line 65) | func WithThriftCodec(t remote.PayloadCodec) CodecOption { function NewGRPCCodec (line 72) | func NewGRPCCodec(opts ...CodecOption) remote.Codec { function mallocWithFirstByteZeroed (line 83) | func mallocWithFirstByteZeroed(size int) []byte { function isNonServerStreaming (line 280) | func isNonServerStreaming(mode serviceinfo.StreamingMode) bool { FILE: pkg/remote/codec/grpc/grpc_compress.go function getSendCompressor (line 32) | func getSendCompressor(ctx context.Context) (encoding.Compressor, error) { function decodeGRPCFrame (line 37) | func decodeGRPCFrame(ctx context.Context, in remote.ByteBuffer) ([]byte,... function compress (line 62) | func compress(compressor encoding.Compressor, data []byte) ([]byte, erro... function decompress (line 82) | func decompress(compressor encoding.Compressor, data []byte) ([]byte, er... FILE: pkg/remote/codec/grpc/grpc_test.go function Test_grpcCodec_Decode (line 37) | func Test_grpcCodec_Decode(t *testing.T) { function Test_isNonServerStreaming (line 223) | func Test_isNonServerStreaming(t *testing.T) { FILE: pkg/remote/codec/header_codec.go constant TTHeaderMagic (line 38) | TTHeaderMagic = ttheader.TTHeaderMagic constant MeshHeaderMagic (line 39) | MeshHeaderMagic uint32 = 0xFFAF0000 constant MeshHeaderLenMask (line 40) | MeshHeaderLenMask uint32 = 0x0000FFFF constant FlagsMask (line 43) | FlagsMask = ttheader.FlagsMask constant MethodMask (line 44) | MethodMask = ttheader.MethodMask constant MaxFrameSize (line 45) | MaxFrameSize = ttheader.MaxFrameSize constant MaxHeaderSize (line 46) | MaxHeaderSize = ttheader.MaxHeaderSize constant HeaderFlagsKey (line 52) | HeaderFlagsKey string = "HeaderFlags" constant HeaderFlagSupportOutOfOrder (line 53) | HeaderFlagSupportOutOfOrder = ttheader.HeaderFlagSupportOutOfOrder constant HeaderFlagDuplexReverse (line 54) | HeaderFlagDuplexReverse = ttheader.HeaderFlagDuplexReverse constant HeaderFlagSASL (line 55) | HeaderFlagSASL = ttheader.HeaderFlagSASL constant TTHeaderMetaSize (line 59) | TTHeaderMetaSize = ttheader.TTHeaderMetaSize constant ProtocolIDThriftBinary (line 65) | ProtocolIDThriftBinary = ttheader.ProtocolIDThriftBinary constant ProtocolIDThriftCompact (line 66) | ProtocolIDThriftCompact = ttheader.ProtocolIDThriftCompact constant ProtocolIDThriftCompactV2 (line 67) | ProtocolIDThriftCompactV2 = ttheader.ProtocolIDThriftCompactV2 constant ProtocolIDKitexProtobuf (line 68) | ProtocolIDKitexProtobuf = ttheader.ProtocolIDKitexProtobuf constant ProtocolIDDefault (line 69) | ProtocolIDDefault = ttheader.ProtocolIDDefault constant InfoIDPadding (line 75) | InfoIDPadding = ttheader.InfoIDPadding constant InfoIDKeyValue (line 76) | InfoIDKeyValue = ttheader.InfoIDKeyValue constant InfoIDIntKeyValue (line 77) | InfoIDIntKeyValue = ttheader.InfoIDIntKeyValue constant InfoIDACLToken (line 78) | InfoIDACLToken = ttheader.InfoIDACLToken type ttHeader (line 81) | type ttHeader struct method encode (line 83) | func (t ttHeader) encode(ctx context.Context, message remote.Message, ... method decode (line 97) | func (t ttHeader) decode(ctx context.Context, message remote.Message, ... function readStrKVInfo (line 115) | func readStrKVInfo(idx *int, buf []byte, info map[string]string) (has bo... function getFlags (line 140) | func getFlags(message remote.Message) ttheader.HeaderFlags { function setFlags (line 152) | func setFlags(flags ttheader.HeaderFlags, message remote.Message) { function getProtocolID (line 159) | func getProtocolID(ct serviceinfo.PayloadCodec) ProtocolID { type meshHeader (line 184) | type meshHeader struct method encode (line 187) | func (m meshHeader) encode(ctx context.Context, message remote.Message... method decode (line 192) | func (m meshHeader) decode(ctx context.Context, message remote.Message... function fillBasicInfoOfTTHeader (line 218) | func fillBasicInfoOfTTHeader(msg remote.Message) { FILE: pkg/remote/codec/header_codec_test.go function TestTTHeaderCodec (line 43) | func TestTTHeaderCodec(t *testing.T) { function TestTTHeaderCodecWithTransInfo (line 66) | func TestTTHeaderCodecWithTransInfo(t *testing.T) { function TestTTHeaderCodecWithTransInfoWithGDPRToken (line 101) | func TestTTHeaderCodecWithTransInfoWithGDPRToken(t *testing.T) { function TestTTHeaderCodecWithTransInfoFromMetaInfoGDPRToken (line 136) | func TestTTHeaderCodecWithTransInfoFromMetaInfoGDPRToken(t *testing.T) { function TestFillBasicInfoOfTTHeader (line 172) | func TestFillBasicInfoOfTTHeader(t *testing.T) { function BenchmarkTTHeaderCodec (line 214) | func BenchmarkTTHeaderCodec(b *testing.B) { function BenchmarkTTHeaderWithTransInfoParallel (line 237) | func BenchmarkTTHeaderWithTransInfoParallel(b *testing.B) { function BenchmarkTTHeaderCodecParallel (line 276) | func BenchmarkTTHeaderCodecParallel(b *testing.B) { function mockCliRPCInfo (line 306) | func mockCliRPCInfo() rpcinfo.RPCInfo { function mockSvrRPCInfo (line 314) | func mockSvrRPCInfo() rpcinfo.RPCInfo { type mockMsg (line 321) | type mockMsg struct function initServerRecvMsgWithMockMsg (line 325) | func initServerRecvMsgWithMockMsg(ctx context.Context) (context.Context,... function initServerRecvMsg (line 333) | func initServerRecvMsg(ctx context.Context) (context.Context, remote.Mes... function initClientSendMsg (line 341) | func initClientSendMsg(tp transport.Protocol, payloadLen ...int) remote.... function initServerSendMsg (line 356) | func initServerSendMsg(tp transport.Protocol, payloadLen ...int) remote.... function initClientRecvMsg (line 368) | func initClientRecvMsg() remote.Message { type mockInst (line 376) | type mockInst struct method Address (line 380) | func (m *mockInst) Address() net.Addr { method RefreshInstanceWithAddr (line 384) | func (m *mockInst) RefreshInstanceWithAddr(addr net.Addr) discovery.In... method Weight (line 389) | func (m *mockInst) Weight() int { method Tag (line 393) | func (m *mockInst) Tag(key string) (value string, exist bool) { function prepareIntKVInfo (line 397) | func prepareIntKVInfo() map[uint16]string { function prepareStrKVInfo (line 407) | func prepareStrKVInfo() map[string]string { function prepareStrKVInfoWithGDPRToken (line 412) | func prepareStrKVInfoWithGDPRToken() map[string]string { method encode2 (line 425) | func (t ttHeader) encode2(ctx context.Context, message remote.Message, p... function TestHeaderFlags (line 525) | func TestHeaderFlags(t *testing.T) { FILE: pkg/remote/codec/perrors/protocol_error.go type ProtocolError (line 22) | type ProtocolError interface constant UnknownProtocolError (line 29) | UnknownProtocolError = 0 constant InvalidData (line 30) | InvalidData = 1 constant NegativeSize (line 31) | NegativeSize = 2 constant SizeLimit (line 32) | SizeLimit = 3 constant BadVersion (line 33) | BadVersion = 4 constant NotImplemented (line 34) | NotImplemented = 5 constant DepthLimit (line 35) | DepthLimit = 6 type protocolException (line 41) | type protocolException struct method TypeId (line 48) | func (p *protocolException) TypeId() int { method String (line 53) | func (p *protocolException) String() string { method Error (line 58) | func (p *protocolException) Error() string { method Unwrap (line 63) | func (p *protocolException) Unwrap() error { method Is (line 68) | func (p *protocolException) Is(target error) bool { function NewProtocolError (line 73) | func NewProtocolError(err error) error { function NewProtocolErrorWithErrMsg (line 84) | func NewProtocolErrorWithErrMsg(err error, errMsg string) error { function NewProtocolErrorWithMsg (line 95) | func NewProtocolErrorWithMsg(errMsg string) error { function NewProtocolErrorWithType (line 100) | func NewProtocolErrorWithType(errType int, errMsg string) ProtocolError { function IsProtocolError (line 105) | func IsProtocolError(err error) bool { FILE: pkg/remote/codec/perrors/protocol_error_test.go function TestNewProtocolError (line 26) | func TestNewProtocolError(t *testing.T) { function TestNewProtocolErrorWithType (line 46) | func TestNewProtocolErrorWithType(t *testing.T) { function TestNewProtocolErrorWithMsg (line 67) | func TestNewProtocolErrorWithMsg(t *testing.T) { function TestNewProtocolErrorWithErrMsg (line 84) | func TestNewProtocolErrorWithErrMsg(t *testing.T) { function TestIsProtocolError (line 104) | func TestIsProtocolError(t *testing.T) { FILE: pkg/remote/codec/protobuf/encoding/encoding.go constant Identity (line 38) | Identity = "identity" type Compressor (line 42) | type Compressor interface function RegisterCompressor (line 77) | func RegisterCompressor(c Compressor) { function GetCompressor (line 82) | func GetCompressor(name string) Compressor { function FindCompressorName (line 88) | func FindCompressorName(cname string) string { function FindCompressor (line 97) | func FindCompressor(cname string) (compressor Compressor, err error) { type Codec (line 127) | type Codec interface function RegisterCodec (line 154) | func RegisterCodec(codec Codec) { function GetCodec (line 169) | func GetCodec(contentSubtype string) Codec { FILE: pkg/remote/codec/protobuf/encoding/gzip/gzip.go constant Name (line 41) | Name = "gzip" function init (line 43) | func init() { type writer (line 51) | type writer struct method Close (line 82) | func (z *writer) Close() error { function SetLevel (line 61) | func SetLevel(level int) error { type reader (line 87) | type reader struct method Read (line 108) | func (z *reader) Read(p []byte) (n int, err error) { type compressor (line 131) | type compressor struct method Compress (line 76) | func (c *compressor) Compress(w io.Writer) (io.WriteCloser, error) { method Decompress (line 92) | func (c *compressor) Decompress(r io.Reader) (io.Reader, error) { method DecompressedSize (line 119) | func (c *compressor) DecompressedSize(buf []byte) int { method Name (line 127) | func (c *compressor) Name() string { FILE: pkg/remote/codec/protobuf/error.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type ErrorProto (line 25) | type ErrorProto struct method Reset (line 34) | func (x *ErrorProto) Reset() { method String (line 43) | func (x *ErrorProto) String() string { method ProtoMessage (line 47) | func (*ErrorProto) ProtoMessage() {} method ProtoReflect (line 49) | func (x *ErrorProto) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*ErrorProto) Descriptor() ([]byte, []int) { method GetTypeID (line 66) | func (x *ErrorProto) GetTypeID() int32 { method GetMessage (line 73) | func (x *ErrorProto) GetMessage() string { function file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescGZIP (line 102) | func file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescGZIP() []by... function init (line 124) | func init() { file_kitex_pkg_remote_codec_protobuf_error_proto_init() } function file_kitex_pkg_remote_codec_protobuf_error_proto_init (line 125) | func file_kitex_pkg_remote_codec_protobuf_error_proto_init() { FILE: pkg/remote/codec/protobuf/pberror.go type PBError (line 23) | type PBError interface type pbError (line 30) | type pbError struct method Error (line 39) | func (p pbError) Error() string { method IsSetError (line 43) | func (p *pbError) IsSetError() bool { method Marshal (line 47) | func (p *pbError) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 54) | func (p *pbError) Unmarshal(in []byte) error { method TypeID (line 63) | func (p *pbError) TypeID() int32 { function NewPbError (line 34) | func NewPbError(typeID int32, message string) PBError { FILE: pkg/remote/codec/protobuf/protobuf.go constant metaInfoFixLen (line 46) | metaInfoFixLen = 8 function NewProtobufCodec (line 50) | func NewProtobufCodec() remote.PayloadCodec { function IsProtobufCodec (line 55) | func IsProtobufCodec(c remote.PayloadCodec) bool { type protobufCodec (line 61) | type protobufCodec struct method Marshal (line 64) | func (c protobufCodec) Marshal(ctx context.Context, message remote.Mes... method Unmarshal (line 136) | func (c protobufCodec) Unmarshal(ctx context.Context, message remote.M... method Name (line 219) | func (c protobufCodec) Name() string { type MessageWriterWithContext (line 224) | type MessageWriterWithContext interface type MessageReaderWithMethodWithContext (line 229) | type MessageReaderWithMethodWithContext interface type ProtobufMsgCodec (line 233) | type ProtobufMsgCodec interface function getValidData (line 238) | func getValidData(methodName string, message remote.Message) (interface{... FILE: pkg/remote/codec/protobuf/protobuf_test.go function init (line 42) | func init() { function TestNormal (line 46) | func TestNormal(t *testing.T) { type mockFastCodecReq (line 78) | type mockFastCodecReq struct method Size (line 91) | func (p *mockFastCodecReq) Size() (n int) { method FastWrite (line 98) | func (p *mockFastCodecReq) FastWrite(in []byte) (n int) { method FastRead (line 105) | func (p *mockFastCodecReq) FastRead(buf []byte, t int8, number int32) ... method Marshal (line 116) | func (p *mockFastCodecReq) Marshal(_ []byte) ([]byte, error) { panic("... method Unmarshal (line 117) | func (p *mockFastCodecReq) Unmarshal(_ []byte) error { panic("... function sizeVarint (line 85) | func sizeVarint(v uint64) int { function TestFastCodec (line 119) | func TestFastCodec(t *testing.T) { function TestException (line 142) | func TestException(t *testing.T) { function TestTransErrorUnwrap (line 169) | func TestTransErrorUnwrap(t *testing.T) { function BenchmarkNormalParallel (line 183) | func BenchmarkNormalParallel(b *testing.B) { function initMockReqArgsSendMsg (line 220) | func initMockReqArgsSendMsg() remote.Message { function initSendMsg (line 226) | func initSendMsg(tp transport.Protocol, m any) remote.Message { function initMockReqArgsRecvMsg (line 236) | func initMockReqArgsRecvMsg(ctx context.Context) (context.Context, remot... function initRecvMsg (line 241) | func initRecvMsg(ctx context.Context, m any) (context.Context, remote.Me... function initServerErrorMsg (line 251) | func initServerErrorMsg(tp transport.Protocol, ri rpcinfo.RPCInfo, trans... function initClientRecvMsg (line 259) | func initClientRecvMsg(ri rpcinfo.RPCInfo) remote.Message { function prepareReq (line 265) | func prepareReq() *MockReq { function newMockReqArgs (line 278) | func newMockReqArgs() interface{} { type MockReqArgs (line 282) | type MockReqArgs struct method Marshal (line 286) | func (p *MockReqArgs) Marshal(out []byte) ([]byte, error) { method Unmarshal (line 293) | func (p *MockReqArgs) Unmarshal(in []byte) error { method GetReq (line 304) | func (p *MockReqArgs) GetReq() *MockReq { method IsSetReq (line 311) | func (p *MockReqArgs) IsSetReq() bool { FILE: pkg/remote/codec/protobuf/test.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type MockReq (line 24) | type MockReq struct method Reset (line 34) | func (x *MockReq) Reset() { method String (line 43) | func (x *MockReq) String() string { method ProtoMessage (line 47) | func (*MockReq) ProtoMessage() {} method ProtoReflect (line 49) | func (x *MockReq) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*MockReq) Descriptor() ([]byte, []int) { method GetMsg (line 66) | func (x *MockReq) GetMsg() string { method GetStrMap (line 73) | func (x *MockReq) GetStrMap() map[string]string { method GetStrList (line 80) | func (x *MockReq) GetStrList() []string { function file_test_proto_rawDescGZIP (line 113) | func file_test_proto_rawDescGZIP() []byte { function init (line 137) | func init() { file_test_proto_init() } function file_test_proto_init (line 138) | func file_test_proto_init() { FILE: pkg/remote/codec/thrift/codec.go type typeCodec (line 24) | type typeCodec struct function getTypeCodec (line 32) | func getTypeCodec(data interface{}) typeCodec { FILE: pkg/remote/codec/thrift/codec_apache.go function apacheCodecAvailable (line 33) | func apacheCodecAvailable(data interface{}) bool { function skipThriftStruct (line 39) | func skipThriftStruct(trans bufiox.Reader) ([]byte, error) { function skipThriftStructSlow (line 60) | func skipThriftStructSlow(trans bufiox.Reader) ([]byte, error) { function apacheMarshal (line 70) | func apacheMarshal(out bufiox.Writer, ctx context.Context, method string... function apacheUnmarshal (line 82) | func apacheUnmarshal(trans bufiox.Reader, data interface{}) error { function apacheMarshalData (line 93) | func apacheMarshalData(data interface{}) (buf []byte, err error) { type netpollSkipDecoder (line 104) | type netpollSkipDecoder struct method Reset (line 120) | func (p *netpollSkipDecoder) Reset(r netpoll.Reader) { method Release (line 124) | func (p *netpollSkipDecoder) Release() { method skipn (line 132) | func (p *netpollSkipDecoder) skipn(n int) error { method lastbyte (line 140) | func (p *netpollSkipDecoder) lastbyte() byte { method lastbytes (line 144) | func (p *netpollSkipDecoder) lastbytes(n int) (b []byte) { method skipnSlow (line 148) | func (p *netpollSkipDecoder) skipnSlow(n int) error { method SkipStruct (line 166) | func (p *netpollSkipDecoder) SkipStruct() (int, error) { method skipType (line 191) | func (p *netpollSkipDecoder) skipType(t thrift.TType, maxdepth int) er... function newNetpollSkipDecoder (line 114) | func newNetpollSkipDecoder(r netpoll.Reader) *netpollSkipDecoder { FILE: pkg/remote/codec/thrift/codec_apache_test.go function TestGetSkippedStructBuffer (line 38) | func TestGetSkippedStructBuffer(t *testing.T) { function TestApacheMarshalUnmarshal (line 56) | func TestApacheMarshalUnmarshal(t *testing.T) { function genTestSkipDecoderBytes (line 115) | func genTestSkipDecoderBytes() []byte { function TestNetpollSkipDecoder (line 186) | func TestNetpollSkipDecoder(t *testing.T) { type mockNetpollReader (line 202) | type mockNetpollReader struct method Len (line 208) | func (r *mockNetpollReader) Len() int { return len(r... method Peek (line 209) | func (r *mockNetpollReader) Peek(n int) ([]byte, error) { return r.b[:... function BenchmarkNetpollSkipDecoder (line 211) | func BenchmarkNetpollSkipDecoder(tb *testing.B) { function BenchmarkGopkgByteSkipDecoder (line 221) | func BenchmarkGopkgByteSkipDecoder(tb *testing.B) { FILE: pkg/remote/codec/thrift/codec_fast.go function fastCodecAvailable (line 34) | func fastCodecAvailable(data interface{}) bool { function fastMarshal (line 40) | func fastMarshal(out bufiox.Writer, methodName string, msgType remote.Me... function fastUnmarshal (line 60) | func fastUnmarshal(trans bufiox.Reader, data interface{}, dataLen int) e... function fastMarshalData (line 85) | func fastMarshalData(data interface{}) (buf []byte, err error) { FILE: pkg/remote/codec/thrift/codec_frugal.go function frugalAvailable (line 32) | func frugalAvailable(data interface{}) bool { function frugalMarshal (line 37) | func frugalMarshal(out bufiox.Writer, methodName string, msgType remote.... function frugalUnmarshal (line 62) | func frugalUnmarshal(trans bufiox.Reader, data interface{}, dataLen int)... function frugalMarshalData (line 85) | func frugalMarshalData(data interface{}) (buf []byte, err error) { FILE: pkg/remote/codec/thrift/codec_frugal_test.go type MockFrugalTagReq (line 36) | type MockFrugalTagReq struct type MockNoTagArgs (line 42) | type MockNoTagArgs struct function initNoTagSendMsg (line 46) | func initNoTagSendMsg(tp transport.Protocol) remote.Message { type MockFrugalTagArgs (line 57) | type MockFrugalTagArgs struct function initFrugalTagSendMsg (line 61) | func initFrugalTagSendMsg(tp transport.Protocol) remote.Message { function initFrugalTagRecvMsg (line 77) | func initFrugalTagRecvMsg(ctx context.Context) (context.Context, remote.... function TestFrugalCodec (line 88) | func TestFrugalCodec(t *testing.T) { function testFrugalDataConversion (line 137) | func testFrugalDataConversion(t *testing.T, ctx context.Context, codec r... function TestMarshalThriftDataFrugal (line 174) | func TestMarshalThriftDataFrugal(t *testing.T) { function TestUnmarshalThriftDataFrugal (line 196) | func TestUnmarshalThriftDataFrugal(t *testing.T) { function TestThriftCodec_unmarshalThriftDataFrugal (line 220) | func TestThriftCodec_unmarshalThriftDataFrugal(t *testing.T) { FILE: pkg/remote/codec/thrift/thrift.go type CodecType (line 37) | type CodecType constant Basic (line 41) | Basic CodecType = 0b0000 constant FastWrite (line 42) | FastWrite CodecType = 0b0001 constant FastRead (line 43) | FastRead CodecType = 0b0010 constant FastReadWrite (line 45) | FastReadWrite = FastRead | FastWrite constant FrugalWrite (line 47) | FrugalWrite CodecType = 0b0100 constant FrugalRead (line 48) | FrugalRead CodecType = 0b1000 constant FrugalReadWrite (line 50) | FrugalReadWrite = FrugalWrite | FrugalRead constant EnableSkipDecoder (line 52) | EnableSkipDecoder CodecType = 0b10000 function NewThriftCodec (line 63) | func NewThriftCodec() remote.PayloadCodec { function IsThriftCodec (line 68) | func IsThriftCodec(c remote.PayloadCodec) bool { function NewThriftCodecWithConfig (line 75) | func NewThriftCodecWithConfig(c CodecType) remote.PayloadCodec { function NewThriftCodecDisableFastMode (line 81) | func NewThriftCodecDisableFastMode(disableFastWrite, disableFastRead boo... type thriftCodec (line 93) | type thriftCodec struct method IsSet (line 98) | func (c thriftCodec) IsSet(t CodecType) bool { method IsDataLenDeterministic (line 103) | func (c thriftCodec) IsDataLenDeterministic(dataLen int) bool { method Marshal (line 108) | func (c thriftCodec) Marshal(ctx context.Context, message remote.Messa... method Unmarshal (line 180) | func (c thriftCodec) Unmarshal(ctx context.Context, message remote.Mes... method Name (line 246) | func (c thriftCodec) Name() string { function encodeGenericThrift (line 167) | func encodeGenericThrift(out bufiox.Writer, ctx context.Context, method ... function validateMessageBeforeDecode (line 228) | func validateMessageBeforeDecode(ctx context.Context, message remote.Mes... FILE: pkg/remote/codec/thrift/thrift_data.go constant marshalThriftBufferSize (line 30) | marshalThriftBufferSize = 1024 function MarshalThriftData (line 46) | func MarshalThriftData(ctx context.Context, codec remote.PayloadCodec, d... method marshalThriftData (line 55) | func (c thriftCodec) marshalThriftData(ctx context.Context, data interfa... function unmarshalThriftException (line 76) | func unmarshalThriftException(in bufiox.Reader) error { function UnmarshalThriftData (line 93) | func UnmarshalThriftData(ctx context.Context, codec remote.PayloadCodec,... method unmarshalThriftData (line 105) | func (c thriftCodec) unmarshalThriftData(trans bufiox.Reader, data inter... FILE: pkg/remote/codec/thrift/thrift_data_test.go function TestMarshalThriftData (line 43) | func TestMarshalThriftData(t *testing.T) { function checkDecodeResult (line 60) | func checkDecodeResult(t *testing.T, err error, req *mocks.MockReq) { function TestUnmarshalThriftData (line 68) | func TestUnmarshalThriftData(t *testing.T) { function TestThriftCodec_unmarshalThriftData (line 86) | func TestThriftCodec_unmarshalThriftData(t *testing.T) { FILE: pkg/remote/codec/thrift/thrift_test.go function init (line 63) | func init() { type mockWithContext (line 67) | type mockWithContext struct method Read (line 72) | func (m *mockWithContext) Read(ctx context.Context, method string, dat... method Write (line 79) | func (m *mockWithContext) Write(ctx context.Context, method string, op... function TestWithContext (line 86) | func TestWithContext(t *testing.T) { function TestNormal (line 125) | func TestNormal(t *testing.T) { function BenchmarkNormalParallel (line 203) | func BenchmarkNormalParallel(b *testing.B) { function TestException (line 245) | func TestException(t *testing.T) { function TestTransErrorUnwrap (line 276) | func TestTransErrorUnwrap(t *testing.T) { function TestSkipDecoder (line 290) | func TestSkipDecoder(t *testing.T) { function newMsg (line 350) | func newMsg(data interface{}) remote.Message { function initSendMsg (line 356) | func initSendMsg(tp transport.Protocol) remote.Message { function initRecvMsg (line 366) | func initRecvMsg() remote.Message { function compare (line 371) | func compare(t *testing.T, sendMsg, recvMsg remote.Message) { function initServerErrorMsg (line 385) | func initServerErrorMsg(tp transport.Protocol, ri rpcinfo.RPCInfo, trans... function initClientRecvMsg (line 393) | func initClientRecvMsg(ri rpcinfo.RPCInfo) remote.Message { function prepareReq (line 399) | func prepareReq() *mt.MockReq { function newMockTestArgs (line 412) | func newMockTestArgs() interface{} { FILE: pkg/remote/codec/util.go constant FrontMask (line 31) | FrontMask = 0x0000ffff function SetOrCheckMethodName (line 35) | func SetOrCheckMethodName(ctx context.Context, methodName string, messag... function SetOrCheckSeqID (line 73) | func SetOrCheckSeqID(seqID int32, message remote.Message) error { function UpdateMsgType (line 95) | func UpdateMsgType(msgType uint32, message remote.Message) error { function NewDataIfNeeded (line 116) | func NewDataIfNeeded(method string, message remote.Message) error { FILE: pkg/remote/codec/util_test.go function TestSetOrCheckMethodName (line 30) | func TestSetOrCheckMethodName(t *testing.T) { FILE: pkg/remote/codec/validate.go constant PayloadValidatorPrefix (line 37) | PayloadValidatorPrefix = "PV_" constant maxPayloadChecksumLength (line 38) | maxPayloadChecksumLength = 4096 type PayloadValidator (line 42) | type PayloadValidator interface function getValidatorKey (line 57) | func getValidatorKey(ctx context.Context, p PayloadValidator) string { function payloadChecksumGenerate (line 65) | func payloadChecksumGenerate(ctx context.Context, pv PayloadValidator, o... function payloadChecksumValidate (line 90) | func payloadChecksumValidate(ctx context.Context, pv PayloadValidator, i... function fillRPCInfoBeforeValidate (line 124) | func fillRPCInfoBeforeValidate(ctx context.Context, message remote.Messa... function NewCRC32PayloadValidator (line 168) | func NewCRC32PayloadValidator() PayloadValidator { type crcPayloadValidator (line 175) | type crcPayloadValidator struct method Key (line 179) | func (p *crcPayloadValidator) Key(ctx context.Context) string { method Generate (line 183) | func (p *crcPayloadValidator) Generate(ctx context.Context, outPayload... method Validate (line 187) | func (p *crcPayloadValidator) Validate(ctx context.Context, expectedVa... function getCRC32C (line 208) | func getCRC32C(payload []byte) string { FILE: pkg/remote/codec/validate_test.go type mockPayloadValidator (line 35) | type mockPayloadValidator struct method Key (line 43) | func (m *mockPayloadValidator) Key(ctx context.Context) string { method Generate (line 47) | func (m *mockPayloadValidator) Generate(ctx context.Context, outPayloa... method Validate (line 62) | func (m *mockPayloadValidator) Validate(ctx context.Context, expectedV... constant mockGenerateSkipKey (line 38) | mockGenerateSkipKey = "mockGenerateSkip" constant mockGenerateErrorKey (line 39) | mockGenerateErrorKey = "mockGenerateError" constant mockExceedLimitKey (line 40) | mockExceedLimitKey = "mockExceedLimit" function TestPayloadValidator (line 70) | func TestPayloadValidator(t *testing.T) { function TestPayloadChecksumGenerate (line 83) | func TestPayloadChecksumGenerate(t *testing.T) { function TestPayloadChecksumValidate (line 119) | func TestPayloadChecksumValidate(t *testing.T) { function TestCRCPayloadValidator (line 145) | func TestCRCPayloadValidator(t *testing.T) { function preparePayload (line 170) | func preparePayload() []byte { FILE: pkg/remote/compression.go type CompressType (line 24) | type CompressType constant NoCompress (line 29) | NoCompress CompressType = iota constant GZip (line 30) | GZip function SetRecvCompressor (line 33) | func SetRecvCompressor(ri rpcinfo.RPCInfo, compressorName string) { function SetSendCompressor (line 42) | func SetSendCompressor(ri rpcinfo.RPCInfo, compressorName string) { function GetSendCompressor (line 51) | func GetSendCompressor(ri rpcinfo.RPCInfo) string { function GetRecvCompressor (line 62) | func GetRecvCompressor(ri rpcinfo.RPCInfo) string { FILE: pkg/remote/connpool.go type ConnOption (line 26) | type ConnOption struct type ConnPool (line 32) | type ConnPool interface type LongConnPool (line 48) | type LongConnPool interface type ConnPoolReporter (line 56) | type ConnPoolReporter interface type RawConn (line 61) | type RawConn interface type IsActive (line 66) | type IsActive interface FILE: pkg/remote/connpool/dummy.go type DummyPool (line 33) | type DummyPool struct method Get (line 36) | func (p *DummyPool) Get(ctx context.Context, network, address string, ... method Put (line 41) | func (p *DummyPool) Put(conn net.Conn) error { return nil } method Discard (line 44) | func (p *DummyPool) Discard(conn net.Conn) error { return nil } method Clean (line 47) | func (p *DummyPool) Clean(network, address string) {} method Close (line 50) | func (p *DummyPool) Close() error { return nil } type DummyReporter (line 53) | type DummyReporter struct method ConnSucceed (line 56) | func (dcm *DummyReporter) ConnSucceed(poolType ConnectionPoolType, ser... method ConnFailed (line 60) | func (dcm *DummyReporter) ConnFailed(poolType ConnectionPoolType, serv... method ReuseSucceed (line 64) | func (dcm *DummyReporter) ReuseSucceed(poolType ConnectionPoolType, se... FILE: pkg/remote/connpool/long_pool.go constant configDumpKey (line 43) | configDumpKey = "idle_config" function getSharedTicker (line 46) | func getSharedTicker(p *LongPool, refreshInterval time.Duration) *utils.... type netAddr (line 60) | type netAddr struct method Network (line 66) | func (na netAddr) Network() string { return na.network } method String (line 69) | func (na netAddr) String() string { return na.address } type longConn (line 72) | type longConn struct method Close (line 80) | func (c *longConn) Close() error { method RawConn (line 85) | func (c *longConn) RawConn() net.Conn { method IsActive (line 90) | func (c *longConn) IsActive() bool { method Expired (line 99) | func (c *longConn) Expired() bool { type PoolDump (line 103) | type PoolDump struct function newPool (line 108) | func newPool(minIdle, maxIdle int, maxIdleTimeout time.Duration) *pool { type pool (line 119) | type pool struct method Get (line 129) | func (p *pool) Get() (*longConn, bool, int) { method Put (line 156) | func (p *pool) Put(o *longConn) bool { method Evict (line 170) | func (p *pool) Evict() (evicted int) { method Len (line 190) | func (p *pool) Len() int { method Close (line 198) | func (p *pool) Close() int { method Dump (line 211) | func (p *pool) Dump() PoolDump { function newPeer (line 226) | func newPeer( type peer (line 243) | type peer struct method Get (line 253) | func (p *peer) Get(d remote.Dialer, timeout time.Duration, reporter Re... method Put (line 275) | func (p *peer) Put(c *longConn) error { method Len (line 286) | func (p *peer) Len() int { method Evict (line 290) | func (p *peer) Evict() { method Close (line 296) | func (p *peer) Close() { function NewLongPool (line 302) | func NewLongPool(serviceName string, idlConfig connpool.IdleConfig) *Lon... type LongPool (line 324) | type LongPool struct method Get (line 336) | func (lp *LongPool) Get(ctx context.Context, network, address string, ... method Put (line 343) | func (lp *LongPool) Put(conn net.Conn) error { method Discard (line 360) | func (lp *LongPool) Discard(conn net.Conn) error { method Clean (line 369) | func (lp *LongPool) Clean(network, address string) { method Dump (line 378) | func (lp *LongPool) Dump() interface{} { method Close (line 390) | func (lp *LongPool) Close() error { method EnableReporter (line 407) | func (lp *LongPool) EnableReporter() { method WarmUp (line 412) | func (lp *LongPool) WarmUp(eh warmup.ErrorHandling, wuo *warmup.PoolOp... method Evict (line 418) | func (lp *LongPool) Evict() { method Tick (line 430) | func (lp *LongPool) Tick() { method getPeer (line 435) | func (lp *LongPool) getPeer(addr netAddr) *peer { FILE: pkg/remote/connpool/long_pool_test.go function TestPoolReuse (line 48) | func TestPoolReuse(t *testing.T) { function TestPoolGetInactiveConn (line 75) | func TestPoolGetInactiveConn(t *testing.T) { function TestPoolGetWithInactiveConn (line 111) | func TestPoolGetWithInactiveConn(t *testing.T) { function TestPoolMaxIdle (line 158) | func TestPoolMaxIdle(t *testing.T) { function TestPoolMinIdle (line 180) | func TestPoolMinIdle(t *testing.T) { function TestPoolClose (line 201) | func TestPoolClose(t *testing.T) { function TestPoolDump (line 222) | func TestPoolDump(t *testing.T) { function TestLongConnPoolGetTimeout (line 242) | func TestLongConnPoolGetTimeout(t *testing.T) { function TestLongConnPoolReuse (line 271) | func TestLongConnPoolReuse(t *testing.T) { function TestLongConnPoolMaxIdle (line 356) | func TestLongConnPoolMaxIdle(t *testing.T) { function TestLongConnPoolGlobalMaxIdle (line 399) | func TestLongConnPoolGlobalMaxIdle(t *testing.T) { function TestLongConnPoolCloseOnDiscard (line 451) | func TestLongConnPoolCloseOnDiscard(t *testing.T) { function TestLongConnPoolCloseOnError (line 500) | func TestLongConnPoolCloseOnError(t *testing.T) { function TestLongConnPoolCloseOnIdleTimeout (line 562) | func TestLongConnPoolCloseOnIdleTimeout(t *testing.T) { function TestLongConnPoolCloseOnClean (line 605) | func TestLongConnPoolCloseOnClean(t *testing.T) { function TestLongConnPoolDiscardUnknownConnection (line 657) | func TestLongConnPoolDiscardUnknownConnection(t *testing.T) { function TestConnPoolClose (line 697) | func TestConnPoolClose(t *testing.T) { function TestClosePoolAndSharedTicker (line 746) | func TestClosePoolAndSharedTicker(t *testing.T) { function TestLongConnPoolPutUnknownConnection (line 768) | func TestLongConnPoolPutUnknownConnection(t *testing.T) { function TestLongConnPoolEvict (line 807) | func TestLongConnPoolEvict(t *testing.T) { function TestLongConnPoolDump (line 882) | func TestLongConnPoolDump(t *testing.T) { function BenchmarkLongPoolGetOne (line 917) | func BenchmarkLongPoolGetOne(b *testing.B) { function BenchmarkLongPoolGetRand2000 (line 944) | func BenchmarkLongPoolGetRand2000(b *testing.B) { function BenchmarkLongPoolGetRand2000Mesh (line 974) | func BenchmarkLongPoolGetRand2000Mesh(b *testing.B) { function newLongPoolForTest (line 1005) | func newLongPoolForTest(minPeerAddr, maxPeerAddr, global int, timeout ti... function newLongConnForTest (line 1015) | func newLongConnForTest(ctrl *gomock.Controller, addr string) *longConn { type reportStat (line 1026) | type reportStat struct function newMockConnReporter (line 1032) | func newMockConnReporter() *mockConnReporter { type mockConnReporter (line 1036) | type mockConnReporter struct method ConnSucceed (line 1043) | func (m *mockConnReporter) ConnSucceed(poolType ConnectionPoolType, se... method ConnFailed (line 1055) | func (m *mockConnReporter) ConnFailed(poolType ConnectionPoolType, ser... method ReuseSucceed (line 1067) | func (m *mockConnReporter) ReuseSucceed(poolType ConnectionPoolType, s... method getConnSucceed (line 1079) | func (m *mockConnReporter) getConnSucceed(serviceName string, addr net... method getReuseSucceed (line 1090) | func (m *mockConnReporter) getReuseSucceed(serviceName string, addr ne... method reset (line 1101) | func (m *mockConnReporter) reset() { function getKey (line 1107) | func getKey(serviceName string, addr net.Addr) string { FILE: pkg/remote/connpool/reporter.go type ConnectionPoolType (line 31) | type ConnectionPoolType constant Short (line 35) | Short ConnectionPoolType = iota constant Long (line 36) | Long type Reporter (line 40) | type Reporter interface function SetReporter (line 47) | func SetReporter(r Reporter) { function GetCommonReporter (line 57) | func GetCommonReporter() Reporter { FILE: pkg/remote/connpool/short_pool.go type shortConn (line 30) | type shortConn struct method Close (line 36) | func (sc *shortConn) Close() error { method RawConn (line 45) | func (sc *shortConn) RawConn() net.Conn { type ShortPool (line 53) | type ShortPool struct method Get (line 67) | func (p *ShortPool) Get(ctx context.Context, network, address string, ... method release (line 78) | func (p *ShortPool) release(conn net.Conn) error { method Put (line 83) | func (p *ShortPool) Put(conn net.Conn) error { method Discard (line 88) | func (p *ShortPool) Discard(conn net.Conn) error { method Close (line 94) | func (p *ShortPool) Close() error { method EnableReporter (line 99) | func (p *ShortPool) EnableReporter() { function NewShortPool (line 59) | func NewShortPool(serviceName string) *ShortPool { FILE: pkg/remote/connpool/short_pool_test.go function TestShortPool (line 35) | func TestShortPool(t *testing.T) { function TestShortPoolPut (line 56) | func TestShortPoolPut(t *testing.T) { function TestShortPoolPutClosed (line 80) | func TestShortPoolPutClosed(t *testing.T) { FILE: pkg/remote/connpool/utils.go type ConnWithPkgSize (line 25) | type ConnWithPkgSize struct method Read (line 32) | func (c *ConnWithPkgSize) Read(b []byte) (n int, err error) { method Write (line 39) | func (c *ConnWithPkgSize) Write(b []byte) (n int, err error) { method Close (line 46) | func (c *ConnWithPkgSize) Close() error { FILE: pkg/remote/custom_meta_handler.go type CustomMetaHandlerOption (line 29) | type CustomMetaHandlerOption function NewCustomMetaHandler (line 39) | func NewCustomMetaHandler(opts ...CustomMetaHandlerOption) MetaHandler { function WithOnReadStream (line 48) | func WithOnReadStream(fn func(ctx context.Context) (context.Context, err... function WithOnConnectStream (line 55) | func WithOnConnectStream(fn func(ctx context.Context) (context.Context, ... function WithWriteMeta (line 62) | func WithWriteMeta(fn func(ctx context.Context, msg Message) (context.Co... function WithReadMeta (line 69) | func WithReadMeta(fn func(ctx context.Context, msg Message) (context.Con... type customMetaHandler (line 76) | type customMetaHandler struct method WriteMeta (line 84) | func (c *customMetaHandler) WriteMeta(ctx context.Context, msg Message... method ReadMeta (line 92) | func (c *customMetaHandler) ReadMeta(ctx context.Context, msg Message)... method OnConnectStream (line 100) | func (c *customMetaHandler) OnConnectStream(ctx context.Context) (cont... method OnReadStream (line 108) | func (c *customMetaHandler) OnReadStream(ctx context.Context) (context... FILE: pkg/remote/custom_meta_handler_test.go function TestNewCustomMetaHandler (line 27) | func TestNewCustomMetaHandler(t *testing.T) { FILE: pkg/remote/default_bytebuf.go constant BitReadable (line 30) | BitReadable = 1 << iota constant BitWritable (line 31) | BitWritable function init (line 36) | func init() { function NewWriterBuffer (line 42) | func NewWriterBuffer(size int) ByteBuffer { function NewReaderBuffer (line 47) | func NewReaderBuffer(buf []byte) ByteBuffer { function NewReaderWriterBuffer (line 52) | func NewReaderWriterBuffer(size int) ByteBuffer { type defaultByteBuffer (line 56) | type defaultByteBuffer struct method Next (line 102) | func (b *defaultByteBuffer) Next(n int) (buf []byte, err error) { method Peek (line 112) | func (b *defaultByteBuffer) Peek(n int) (buf []byte, err error) { method Skip (line 124) | func (b *defaultByteBuffer) Skip(n int) (err error) { method ReadableLen (line 136) | func (b *defaultByteBuffer) ReadableLen() (n int) { method Read (line 144) | func (b *defaultByteBuffer) Read(p []byte) (n int, err error) { method ReadString (line 172) | func (b *defaultByteBuffer) ReadString(n int) (s string, err error) { method ReadBinary (line 185) | func (b *defaultByteBuffer) ReadBinary(p []byte) (n int, err error) { method Malloc (line 199) | func (b *defaultByteBuffer) Malloc(n int) (buf []byte, err error) { method WrittenLen (line 210) | func (b *defaultByteBuffer) WrittenLen() (length int) { method WriteString (line 218) | func (b *defaultByteBuffer) WriteString(s string) (n int, err error) { method Write (line 230) | func (b *defaultByteBuffer) Write(p []byte) (n int, err error) { method WriteBinary (line 238) | func (b *defaultByteBuffer) WriteBinary(p []byte) (n int, err error) { method ReadLen (line 250) | func (b *defaultByteBuffer) ReadLen() (n int) { method Flush (line 256) | func (b *defaultByteBuffer) Flush() (err error) { method AppendBuffer (line 264) | func (b *defaultByteBuffer) AppendBuffer(buf ByteBuffer) (err error) { method Bytes (line 275) | func (b *defaultByteBuffer) Bytes() (buf []byte, err error) { method NewBuffer (line 285) | func (b *defaultByteBuffer) NewBuffer() ByteBuffer { method Release (line 291) | func (b *defaultByteBuffer) Release(e error) (err error) { method zero (line 297) | func (b *defaultByteBuffer) zero() { method readableCheck (line 304) | func (b *defaultByteBuffer) readableCheck(n int) error { method writableLen (line 315) | func (b *defaultByteBuffer) writableLen() (n int) { method ensureWritable (line 322) | func (b *defaultByteBuffer) ensureWritable(minWritableBytes int) { function newDefaultByteBuffer (line 65) | func newDefaultByteBuffer() interface{} { function newReaderByteBuffer (line 69) | func newReaderByteBuffer(buf []byte) ByteBuffer { function newWriterByteBuffer (line 78) | func newWriterByteBuffer(estimatedLength int) ByteBuffer { function newReaderWriterByteBuffer (line 89) | func newReaderWriterByteBuffer(estimatedLength int) ByteBuffer { FILE: pkg/remote/default_bytebuf_test.go function TestDefaultByteBuffer (line 25) | func TestDefaultByteBuffer(t *testing.T) { function TestDefaultWriterBuffer (line 46) | func TestDefaultWriterBuffer(t *testing.T) { function TestDefaultReaderBuffer (line 52) | func TestDefaultReaderBuffer(t *testing.T) { function checkWritable (line 60) | func checkWritable(t *testing.T, buf ByteBuffer) { function checkReadable (line 89) | func checkReadable(t *testing.T, buf ByteBuffer) { function checkUnwritable (line 120) | func checkUnwritable(t *testing.T, buf ByteBuffer) { function checkUnreadable (line 138) | func checkUnreadable(t *testing.T, buf ByteBuffer) { FILE: pkg/remote/dialer.go type Dialer (line 25) | type Dialer interface function NewDefaultDialer (line 30) | func NewDefaultDialer() Dialer { type SynthesizedDialer (line 37) | type SynthesizedDialer struct method DialTimeout (line 42) | func (sd SynthesizedDialer) DialTimeout(network, address string, timeo... FILE: pkg/remote/message.go function init (line 34) | func init() { type MessageType (line 40) | type MessageType constant InvalidMessageType (line 45) | InvalidMessageType MessageType = 0 constant Call (line 46) | Call MessageType = 1 constant Reply (line 47) | Reply MessageType = 2 constant Exception (line 48) | Exception MessageType = 3 constant Oneway (line 52) | Oneway MessageType = 4 constant Stream (line 54) | Stream MessageType = 5 constant Heartbeat (line 56) | Heartbeat MessageType = 6 constant ReadFailed (line 61) | ReadFailed string = "RFailed" constant MeshHeader (line 64) | MeshHeader string = "mHeader" type ProtocolInfo (line 68) | type ProtocolInfo struct type ServiceSearcher (line 75) | type ServiceSearcher interface type keyServiceSearcher (line 79) | type keyServiceSearcher struct function GetServiceSearcher (line 82) | func GetServiceSearcher(ctx context.Context) ServiceSearcher { function WithServiceSearcher (line 88) | func WithServiceSearcher(ctx context.Context, svcSearcher ServiceSearche... type Message (line 93) | type Message interface function NewMessage (line 113) | func NewMessage(data interface{}, ri rpcinfo.RPCInfo, msgType MessageTyp... function RecycleMessage (line 124) | func RecycleMessage(msg Message) { function newMessage (line 130) | func newMessage() interface{} { type message (line 134) | type message struct method zero (line 146) | func (m *message) zero() { method RPCInfo (line 163) | func (m *message) RPCInfo() rpcinfo.RPCInfo { method Data (line 168) | func (m *message) Data() interface{} { method NewData (line 173) | func (m *message) NewData(method string) (ok bool) { method MessageType (line 187) | func (m *message) MessageType() MessageType { method SetMessageType (line 192) | func (m *message) SetMessageType(mt MessageType) { method RPCRole (line 197) | func (m *message) RPCRole() RPCRole { method TransInfo (line 202) | func (m *message) TransInfo() TransInfo { method Tags (line 207) | func (m *message) Tags() map[string]interface{} { method ProtocolInfo (line 212) | func (m *message) ProtocolInfo() ProtocolInfo { method PayloadLen (line 221) | func (m *message) PayloadLen() int { method SetPayloadLen (line 226) | func (m *message) SetPayloadLen(size int) { method PayloadCodec (line 231) | func (m *message) PayloadCodec() PayloadCodec { method SetPayloadCodec (line 236) | func (m *message) SetPayloadCodec(pc PayloadCodec) { method Recycle (line 241) | func (m *message) Recycle() { type TransInfo (line 247) | type TransInfo interface function newTransInfo (line 255) | func newTransInfo() interface{} { type transInfo (line 262) | type transInfo struct method zero (line 267) | func (ti *transInfo) zero() { method TransIntInfo (line 277) | func (ti *transInfo) TransIntInfo() map[uint16]string { method PutTransIntInfo (line 282) | func (ti *transInfo) PutTransIntInfo(kvInfo map[uint16]string) { method TransStrInfo (line 296) | func (ti *transInfo) TransStrInfo() map[string]string { method PutTransStrInfo (line 301) | func (ti *transInfo) PutTransStrInfo(kvInfo map[string]string) { method Recycle (line 315) | func (ti *transInfo) Recycle() { FILE: pkg/remote/option.go type Option (line 33) | type Option struct method PrependBoundHandler (line 42) | func (o *Option) PrependBoundHandler(h BoundHandler) { method AppendBoundHandler (line 57) | func (o *Option) AppendBoundHandler(h BoundHandler) { type ServerOption (line 72) | type ServerOption struct type ClientOption (line 125) | type ClientOption struct type TTHeaderStreamingOption (line 150) | type TTHeaderStreamingOption struct type TTHeaderStreamingOptions (line 154) | type TTHeaderStreamingOptions struct FILE: pkg/remote/payload_codec.go type PayloadCodec (line 29) | type PayloadCodec interface function GetPayloadCodec (line 36) | func GetPayloadCodec(message Message) (PayloadCodec, error) { function PutPayloadCode (line 50) | func PutPayloadCode(name serviceinfo.PayloadCodec, v PayloadCodec) { FILE: pkg/remote/profiler_meta.go type TransInfoTagging (line 27) | type TransInfoTagging type MessageTagging (line 29) | type MessageTagging function NewProfilerMetaHandler (line 35) | func NewProfilerMetaHandler(pr profiler.Profiler, tagging MessageTagging... type profilerMetaHandler (line 42) | type profilerMetaHandler struct method WriteMeta (line 47) | func (p *profilerMetaHandler) WriteMeta(ctx context.Context, msg Messa... method ReadMeta (line 51) | func (p *profilerMetaHandler) ReadMeta(ctx context.Context, msg Messag... FILE: pkg/remote/remotecli/client.go type Client (line 32) | type Client interface type client (line 45) | type client struct method Recycle (line 74) | func (c *client) Recycle() { method init (line 81) | func (c *client) init(handler remote.TransHandler, cm *ConnWrapper, co... method Send (line 88) | func (c *client) Send(ctx context.Context, ri rpcinfo.RPCInfo, req rem... method Recv (line 97) | func (c *client) Recv(ctx context.Context, ri rpcinfo.RPCInfo, resp re... function NewClient (line 52) | func NewClient(ctx context.Context, ri rpcinfo.RPCInfo, handler remote.T... FILE: pkg/remote/remotecli/client_test.go function TestNewClientNoAddr (line 41) | func TestNewClientNoAddr(t *testing.T) { function TestNewClient (line 66) | func TestNewClient(t *testing.T) { function newMockRPCInfo (line 99) | func newMockRPCInfo(addr net.Addr) rpcinfo.RPCInfo { function newMockOption (line 109) | func newMockOption(ctrl *gomock.Controller, addr net.Addr) *remote.Clien... function TestSend (line 129) | func TestSend(t *testing.T) { function TestSendErr (line 154) | func TestSendErr(t *testing.T) { function TestRecv (line 190) | func TestRecv(t *testing.T) { function TestRecvOneWay (line 231) | func TestRecvOneWay(t *testing.T) { function TestRecycle (line 261) | func TestRecycle(t *testing.T) { FILE: pkg/remote/remotecli/conn_wrapper.go function init (line 33) | func init() { type ConnReleaser (line 40) | type ConnReleaser interface type ConnWrapper (line 45) | type ConnWrapper struct method GetConn (line 58) | func (cm *ConnWrapper) GetConn(ctx context.Context, d remote.Dialer, r... method ReleaseConn (line 81) | func (cm *ConnWrapper) ReleaseConn(err error, ri rpcinfo.RPCInfo) { method zero (line 108) | func (cm *ConnWrapper) zero() { method getConnWithPool (line 113) | func (cm *ConnWrapper) getConnWithPool(ctx context.Context, cp remote.... method getConnWithDialer (line 131) | func (cm *ConnWrapper) getConnWithDialer(ctx context.Context, d remote... function NewConnWrapper (line 51) | func NewConnWrapper(connPool remote.ConnPool) *ConnWrapper { function newConnWrapper (line 104) | func newConnWrapper() interface{} { FILE: pkg/remote/remotecli/conn_wrapper_test.go function TestDialerMWNoAddr (line 42) | func TestDialerMWNoAddr(t *testing.T) { function TestGetConnDial (line 57) | func TestGetConnDial(t *testing.T) { function TestGetConnByPool (line 78) | func TestGetConnByPool(t *testing.T) { function BenchmarkGetConn (line 118) | func BenchmarkGetConn(b *testing.B) { function TestReleaseConnUseNilConn (line 160) | func TestReleaseConnUseNilConn(t *testing.T) { function TestReleaseConn (line 170) | func TestReleaseConn(t *testing.T) { FILE: pkg/remote/remotecli/stream.go function NewStream (line 32) | func NewStream(ctx context.Context, ri rpcinfo.RPCInfo, handler remote.C... function NewStreamConnManager (line 70) | func NewStreamConnManager(cr ConnReleaser) *StreamConnManager { type StreamConnManager (line 75) | type StreamConnManager struct method ReleaseConn (line 80) | func (scm *StreamConnManager) ReleaseConn(err error, ri rpcinfo.RPCInf... FILE: pkg/remote/remotecli/stream_test.go function TestNewStream (line 35) | func TestNewStream(t *testing.T) { function TestStreamConnManagerReleaseConn (line 57) | func TestStreamConnManagerReleaseConn(t *testing.T) { FILE: pkg/remote/remotesvr/server.go type Server (line 30) | type Server interface type server (line 36) | type server struct method Start (line 54) | func (s *server) Start() chan error { method buildListener (line 70) | func (s *server) buildListener() (ln net.Listener, err error) { method Stop (line 85) | func (s *server) Stop() (err error) { method Address (line 95) | func (s *server) Address() net.Addr { function NewServer (line 44) | func NewServer(opt *remote.ServerOption, transHdlr remote.ServerTransHan... FILE: pkg/remote/remotesvr/server_test.go function TestServerStart (line 30) | func TestServerStart(t *testing.T) { function TestServerStartListenErr (line 68) | func TestServerStartListenErr(t *testing.T) { FILE: pkg/remote/role.go type RPCRole (line 20) | type RPCRole constant Client (line 24) | Client RPCRole = iota constant Server (line 25) | Server FILE: pkg/remote/trans/common.go type Extension (line 35) | type Extension interface function GetReadTimeout (line 46) | func GetReadTimeout(cfg rpcinfo.RPCConfig) time.Duration { type MuxEnabledFlag (line 54) | type MuxEnabledFlag interface FILE: pkg/remote/trans/default_client_handler.go function NewDefaultCliTransHandler (line 31) | func NewDefaultCliTransHandler(opt *remote.ClientOption, ext Extension) ... type cliTransHandler (line 39) | type cliTransHandler struct method Write (line 47) | func (t *cliTransHandler) Write(ctx context.Context, conn net.Conn, se... method Read (line 65) | func (t *cliTransHandler) Read(ctx context.Context, conn net.Conn, rec... method OnMessage (line 88) | func (t *cliTransHandler) OnMessage(ctx context.Context, args, result ... method OnInactive (line 94) | func (t *cliTransHandler) OnInactive(ctx context.Context, conn net.Con... method OnError (line 99) | func (t *cliTransHandler) OnError(ctx context.Context, err error, conn... method SetPipeline (line 108) | func (t *cliTransHandler) SetPipeline(p *remote.TransPipeline) { FILE: pkg/remote/trans/default_client_handler_test.go function TestDefaultCliTransHandler (line 32) | func TestDefaultCliTransHandler(t *testing.T) { FILE: pkg/remote/trans/default_server_handler.go function NewDefaultSvrTransHandler (line 36) | func NewDefaultSvrTransHandler(opt *remote.ServerOption, ext Extension) ... type svrTransHandler (line 50) | type svrTransHandler struct method Write (line 61) | func (t *svrTransHandler) Write(ctx context.Context, conn net.Conn, se... method Read (line 83) | func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, rec... method newCtxWithRPCInfo (line 119) | func (t *svrTransHandler) newCtxWithRPCInfo(ctx context.Context, conn ... method OnRead (line 140) | func (t *svrTransHandler) OnRead(ctx context.Context, conn net.Conn) (... method OnMessage (line 225) | func (t *svrTransHandler) OnMessage(ctx context.Context, args, result ... method OnActive (line 231) | func (t *svrTransHandler) OnActive(ctx context.Context, conn net.Conn)... method OnInactive (line 239) | func (t *svrTransHandler) OnInactive(ctx context.Context, conn net.Con... method OnError (line 245) | func (t *svrTransHandler) OnError(ctx context.Context, err error, conn... method SetInvokeHandleFunc (line 266) | func (t *svrTransHandler) SetInvokeHandleFunc(inkHdlFunc endpoint.Endp... method SetPipeline (line 271) | func (t *svrTransHandler) SetPipeline(p *remote.TransPipeline) { method writeErrorReplyIfNeeded (line 275) | func (t *svrTransHandler) writeErrorReplyIfNeeded( method startTracer (line 311) | func (t *svrTransHandler) startTracer(ctx context.Context, ri rpcinfo.... method finishTracer (line 316) | func (t *svrTransHandler) finishTracer(ctx context.Context, ri rpcinfo... method startProfiler (line 335) | func (t *svrTransHandler) startProfiler(ctx context.Context) context.C... method finishProfiler (line 342) | func (t *svrTransHandler) finishProfiler(ctx context.Context) { method GracefulShutdown (line 349) | func (t *svrTransHandler) GracefulShutdown(ctx context.Context) error { function getRemoteInfo (line 354) | func getRemoteInfo(ri rpcinfo.RPCInfo, conn net.Conn) (string, net.Addr) { FILE: pkg/remote/trans/default_server_handler_test.go function TestDefaultSvrTransHandler (line 43) | func TestDefaultSvrTransHandler(t *testing.T) { function TestSvrTransHandlerBizError (line 94) | func TestSvrTransHandlerBizError(t *testing.T) { function TestSvrTransHandlerReadErr (line 154) | func TestSvrTransHandlerReadErr(t *testing.T) { function TestSvrTransHandlerReadPanic (line 207) | func TestSvrTransHandlerReadPanic(t *testing.T) { function TestSvrTransHandlerOnReadHeartbeat (line 259) | func TestSvrTransHandlerOnReadHeartbeat(t *testing.T) { FILE: pkg/remote/trans/detection/noop.go type noopSvrTransHandler (line 30) | type noopSvrTransHandler struct method Write (line 32) | func (noopSvrTransHandler) Write(ctx context.Context, conn net.Conn, s... method Read (line 36) | func (noopSvrTransHandler) Read(ctx context.Context, conn net.Conn, ms... method OnRead (line 40) | func (noopSvrTransHandler) OnRead(ctx context.Context, conn net.Conn) ... method OnInactive (line 43) | func (noopSvrTransHandler) OnInactive(ctx context.Context, conn net.Co... method OnError (line 44) | func (noopSvrTransHandler) OnError(ctx context.Context, err error, con... method OnMessage (line 52) | func (noopSvrTransHandler) OnMessage(ctx context.Context, args, result... method SetPipeline (line 55) | func (noopSvrTransHandler) SetPipeline(pipeline *remote.TransPipeline)... method SetInvokeHandleFunc (line 56) | func (noopSvrTransHandler) SetInvokeHandleFunc(inkHdlFunc endpoint.End... method OnActive (line 57) | func (noopSvrTransHandler) OnActive(ctx context.Context, conn net.Conn... FILE: pkg/remote/trans/detection/server_handler.go type DetectableServerTransHandler (line 32) | type DetectableServerTransHandler interface function NewSvrTransHandlerFactory (line 39) | func NewSvrTransHandlerFactory(defaultHandlerFactory remote.ServerTransH... type svrTransHandlerFactory (line 48) | type svrTransHandlerFactory struct method NewTransHandler (line 53) | func (f *svrTransHandlerFactory) NewTransHandler(opt *remote.ServerOpt... type svrTransHandler (line 74) | type svrTransHandler struct method Write (line 79) | func (t *svrTransHandler) Write(ctx context.Context, conn net.Conn, se... method Read (line 83) | func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, msg... method OnRead (line 87) | func (t *svrTransHandler) OnRead(ctx context.Context, conn net.Conn) (... method OnInactive (line 113) | func (t *svrTransHandler) OnInactive(ctx context.Context, conn net.Con... method OnError (line 121) | func (t *svrTransHandler) OnError(ctx context.Context, err error, conn... method OnMessage (line 125) | func (t *svrTransHandler) OnMessage(ctx context.Context, args, result ... method which (line 129) | func (t *svrTransHandler) which(ctx context.Context) remote.ServerTran... method SetPipeline (line 137) | func (t *svrTransHandler) SetPipeline(pipeline *remote.TransPipeline) { method SetInvokeHandleFunc (line 144) | func (t *svrTransHandler) SetInvokeHandleFunc(inkHdlFunc endpoint.Endp... method OnActive (line 155) | func (t *svrTransHandler) OnActive(ctx context.Context, conn net.Conn)... method GracefulShutdown (line 167) | func (t *svrTransHandler) GracefulShutdown(ctx context.Context) error { type handlerKey (line 179) | type handlerKey struct type handlerWrapper (line 181) | type handlerWrapper struct FILE: pkg/remote/trans/detection/server_handler_test.go function TestServerHandlerCall (line 55) | func TestServerHandlerCall(t *testing.T) { function TestOnError (line 119) | func TestOnError(t *testing.T) { function TestOnInactive (line 153) | func TestOnInactive(t *testing.T) { function mockCall (line 190) | func mockCall(transHdlr remote.ServerTransHandler, conn net.Conn) (err e... FILE: pkg/remote/trans/gonet/bytebuffer.go type bufferReadWriter (line 35) | type bufferReadWriter struct method readable (line 66) | func (rw *bufferReadWriter) readable() bool { method writable (line 70) | func (rw *bufferReadWriter) writable() bool { method Next (line 74) | func (rw *bufferReadWriter) Next(n int) (p []byte, err error) { method Peek (line 82) | func (rw *bufferReadWriter) Peek(n int) (buf []byte, err error) { method Skip (line 89) | func (rw *bufferReadWriter) Skip(n int) (err error) { method ReadableLen (line 98) | func (rw *bufferReadWriter) ReadableLen() (n int) { method ReadString (line 102) | func (rw *bufferReadWriter) ReadString(n int) (s string, err error) { method ReadBinary (line 114) | func (rw *bufferReadWriter) ReadBinary(p []byte) (n int, err error) { method Read (line 121) | func (rw *bufferReadWriter) Read(p []byte) (n int, err error) { method ReadLen (line 128) | func (rw *bufferReadWriter) ReadLen() (n int) { method Malloc (line 132) | func (rw *bufferReadWriter) Malloc(n int) (buf []byte, err error) { method WrittenLen (line 139) | func (rw *bufferReadWriter) WrittenLen() (length int) { method WriteString (line 146) | func (rw *bufferReadWriter) WriteString(s string) (n int, err error) { method WriteBinary (line 153) | func (rw *bufferReadWriter) WriteBinary(b []byte) (n int, err error) { method Flush (line 160) | func (rw *bufferReadWriter) Flush() (err error) { method Write (line 167) | func (rw *bufferReadWriter) Write(p []byte) (n int, err error) { method Release (line 174) | func (rw *bufferReadWriter) Release(e error) (err error) { method AppendBuffer (line 183) | func (rw *bufferReadWriter) AppendBuffer(buf remote.ByteBuffer) (err e... method NewBuffer (line 188) | func (rw *bufferReadWriter) NewBuffer() remote.ByteBuffer { method Bytes (line 192) | func (rw *bufferReadWriter) Bytes() (buf []byte, err error) { method zero (line 196) | func (rw *bufferReadWriter) zero() { function newBufferReader (line 42) | func newBufferReader(reader *bufiox.DefaultReader) remote.ByteBuffer { function newBufferWriter (line 50) | func newBufferWriter(writer *bufiox.DefaultWriter) remote.ByteBuffer { function newBufferReadWriter (line 58) | func newBufferReadWriter(irw bufioxReadWriter) remote.ByteBuffer { FILE: pkg/remote/trans/gonet/bytebuffer_test.go type mockBufioxReadWriter (line 32) | type mockBufioxReadWriter struct method Reader (line 37) | func (m *mockBufioxReadWriter) Reader() *bufiox.DefaultReader { method Writer (line 41) | func (m *mockBufioxReadWriter) Writer() *bufiox.DefaultWriter { function TestBufferReadWrite (line 51) | func TestBufferReadWrite(t *testing.T) { function TestBufferWrite (line 64) | func TestBufferWrite(t *testing.T) { function TestBufferRead (line 72) | func TestBufferRead(t *testing.T) { function testRead (line 79) | func testRead(t *testing.T, buf remote.ByteBuffer) { function testWrite (line 156) | func testWrite(t *testing.T, buf remote.ByteBuffer) { FILE: pkg/remote/trans/gonet/client_handler.go type cliTransHandlerFactory (line 24) | type cliTransHandlerFactory struct method NewTransHandler (line 32) | func (f *cliTransHandlerFactory) NewTransHandler(opt *remote.ClientOpt... function NewCliTransHandlerFactory (line 27) | func NewCliTransHandlerFactory() remote.ClientTransHandlerFactory { function newCliTransHandler (line 36) | func newCliTransHandler(opt *remote.ClientOption) (remote.ClientTransHan... FILE: pkg/remote/trans/gonet/conn.go type bufioxReadWriter (line 33) | type bufioxReadWriter interface type cliConn (line 40) | type cliConn struct method Reader (line 55) | func (c *cliConn) Reader() *bufiox.DefaultReader { method Writer (line 59) | func (c *cliConn) Writer() *bufiox.DefaultWriter { method Read (line 63) | func (c *cliConn) Read(b []byte) (int, error) { method Close (line 67) | func (c *cliConn) Close() error { function newCliConn (line 47) | func newCliConn(conn net.Conn) *cliConn { type svrConn (line 76) | type svrConn struct method Read (line 91) | func (bc *svrConn) Read(b []byte) (int, error) { method Close (line 95) | func (bc *svrConn) Close() error { method Reader (line 103) | func (bc *svrConn) Reader() *bufiox.DefaultReader { method Writer (line 107) | func (bc *svrConn) Writer() *bufiox.DefaultWriter { function newSvrConn (line 83) | func newSvrConn(conn net.Conn) *svrConn { FILE: pkg/remote/trans/gonet/conn_extension.go function NewGonetExtension (line 33) | func NewGonetExtension() trans.Extension { type gonetConnExtension (line 37) | type gonetConnExtension struct method SetReadTimeout (line 40) | func (e *gonetConnExtension) SetReadTimeout(ctx context.Context, conn ... method NewWriteByteBuffer (line 55) | func (e *gonetConnExtension) NewWriteByteBuffer(ctx context.Context, c... method NewReadByteBuffer (line 60) | func (e *gonetConnExtension) NewReadByteBuffer(ctx context.Context, co... method ReleaseBuffer (line 65) | func (e *gonetConnExtension) ReleaseBuffer(buffer remote.ByteBuffer, e... method IsTimeoutErr (line 73) | func (e *gonetConnExtension) IsTimeoutErr(err error) bool { method IsRemoteClosedErr (line 83) | func (e *gonetConnExtension) IsRemoteClosedErr(err error) bool { FILE: pkg/remote/trans/gonet/conn_extension_test.go function TestGonetConnExtensionSetReadTimeout (line 32) | func TestGonetConnExtensionSetReadTimeout(t *testing.T) { FILE: pkg/remote/trans/gonet/conn_test.go function TestSvrConn (line 27) | func TestSvrConn(t *testing.T) { FILE: pkg/remote/trans/gonet/dialer.go function NewDialer (line 28) | func NewDialer() remote.Dialer { type dialer (line 32) | type dialer struct method DialTimeout (line 36) | func (d *dialer) DialTimeout(network, address string, timeout time.Dur... FILE: pkg/remote/trans/gonet/mocks_test.go type MockCodec (line 31) | type MockCodec struct method Name (line 36) | func (m *MockCodec) Name() string { method Encode (line 40) | func (m *MockCodec) Encode(ctx context.Context, msg remote.Message, ou... method Decode (line 47) | func (m *MockCodec) Decode(ctx context.Context, msg remote.Message, in... type MockNetConn (line 60) | type MockNetConn struct method IsActive (line 79) | func (m *MockNetConn) IsActive() (r bool) { method Reader (line 87) | func (m *MockNetConn) Reader() (r *bufiox.DefaultReader) { method Writer (line 92) | func (m *MockNetConn) Writer() (r *bufiox.DefaultWriter) { method SetIdleTimeout (line 97) | func (m *MockNetConn) SetIdleTimeout(timeout time.Duration) (e error) { method SetOnRequest (line 105) | func (m *MockNetConn) SetOnRequest(on netpoll.OnRequest) (e error) { method SetReadTimeout (line 113) | func (m *MockNetConn) SetReadTimeout(timeout time.Duration) (e error) { function newMockNetConn (line 70) | func newMockNetConn(conn net.Conn) *MockNetConn { FILE: pkg/remote/trans/gonet/server_handler.go type svrTransHandlerFactory (line 24) | type svrTransHandlerFactory struct method NewTransHandler (line 32) | func (f *svrTransHandlerFactory) NewTransHandler(opt *remote.ServerOpt... function NewSvrTransHandlerFactory (line 27) | func NewSvrTransHandlerFactory() remote.ServerTransHandlerFactory { function newSvrTransHandler (line 36) | func newSvrTransHandler(opt *remote.ServerOption) (remote.ServerTransHan... FILE: pkg/remote/trans/gonet/server_handler_test.go function TestOnActive (line 33) | func TestOnActive(t *testing.T) { function TestOnRead (line 51) | func TestOnRead(t *testing.T) { function TestInvokeErr (line 79) | func TestInvokeErr(t *testing.T) { function TestPanicAfterRead (line 109) | func TestPanicAfterRead(t *testing.T) { function TestNoMethodInfo (line 141) | func TestNoMethodInfo(t *testing.T) { FILE: pkg/remote/trans/gonet/trans_server.go constant defaultShutdownTicker (line 37) | defaultShutdownTicker = 100 * time.Millisecond function NewTransServerFactory (line 40) | func NewTransServerFactory() remote.TransServerFactory { type gonetTransServerFactory (line 44) | type gonetTransServerFactory struct method NewTransServer (line 47) | func (f *gonetTransServerFactory) NewTransServer(opt *remote.ServerOpt... type transServer (line 55) | type transServer struct method CreateListener (line 69) | func (ts *transServer) CreateListener(addr net.Addr) (ln net.Listener,... method BootstrapServer (line 75) | func (ts *transServer) BootstrapServer(ln net.Listener) error { method serveConn (line 97) | func (ts *transServer) serveConn(ctx context.Context, conn net.Conn) (... method Shutdown (line 133) | func (ts *transServer) Shutdown() (err error) { method ConnCount (line 167) | func (ts *transServer) ConnCount() utils.AtomicInt { method onError (line 171) | func (ts *transServer) onError(ctx context.Context, err error, conn ne... method refreshIdleDeadline (line 175) | func (ts *transServer) refreshIdleDeadline(conn net.Conn) { method refreshReadDeadline (line 186) | func (ts *transServer) refreshReadDeadline(ri rpcinfo.RPCInfo, conn ne... function transRecover (line 195) | func transRecover(ctx context.Context, conn net.Conn, funcName string) { FILE: pkg/remote/trans/gonet/trans_server_test.go type MockGonetConn (line 49) | type MockGonetConn struct method Do (line 54) | func (m *MockGonetConn) Do() bool { function TestMain (line 59) | func TestMain(m *testing.M) { function TestCreateListener (line 89) | func TestCreateListener(t *testing.T) { function TestBootStrapAndShutdown (line 112) | func TestBootStrapAndShutdown(t *testing.T) { function TestServeConn (line 171) | func TestServeConn(t *testing.T) { FILE: pkg/remote/trans/invoke/conn_extension.go function newIvkConnExtension (line 28) | func newIvkConnExtension() trans.Extension { type ivkConnExtension (line 32) | type ivkConnExtension struct method SetReadTimeout (line 35) | func (e *ivkConnExtension) SetReadTimeout(ctx context.Context, conn ne... method NewWriteByteBuffer (line 40) | func (e *ivkConnExtension) NewWriteByteBuffer(ctx context.Context, con... method NewReadByteBuffer (line 45) | func (e *ivkConnExtension) NewReadByteBuffer(ctx context.Context, conn... method ReleaseBuffer (line 50) | func (e *ivkConnExtension) ReleaseBuffer(remote.ByteBuffer, error) err... method IsTimeoutErr (line 56) | func (e *ivkConnExtension) IsTimeoutErr(err error) bool { method IsRemoteClosedErr (line 61) | func (e *ivkConnExtension) IsRemoteClosedErr(err error) bool { FILE: pkg/remote/trans/invoke/conn_extension_test.go function Test_ivkConnExtension_NewWriteByteBuffer (line 26) | func Test_ivkConnExtension_NewWriteByteBuffer(t *testing.T) { function Test_ivkConnExtension_NewReadByteBuffer (line 33) | func Test_ivkConnExtension_NewReadByteBuffer(t *testing.T) { function Test_ivkConnExtension_ReleaseBuffer (line 42) | func Test_ivkConnExtension_ReleaseBuffer(t *testing.T) { FILE: pkg/remote/trans/invoke/invoke.go type ivkTransHandlerFactory (line 25) | type ivkTransHandlerFactory struct method NewTransHandler (line 33) | func (f *ivkTransHandlerFactory) NewTransHandler(opt *remote.ServerOpt... function NewIvkTransHandlerFactory (line 28) | func NewIvkTransHandlerFactory() remote.ServerTransHandlerFactory { function newIvkTransHandler (line 37) | func newIvkTransHandler(opt *remote.ServerOption) (remote.ServerTransHan... FILE: pkg/remote/trans/invoke/invoke_handler.go type Handler (line 26) | type Handler interface type ivkHandler (line 30) | type ivkHandler struct method Call (line 44) | func (s *ivkHandler) Call(msg Message) (err error) { function NewIvkHandler (line 36) | func NewIvkHandler(opt *remote.ServerOption, transHdlr remote.ServerTran... FILE: pkg/remote/trans/invoke/invoke_handler_test.go function Test_ivkHandler_Call (line 26) | func Test_ivkHandler_Call(t *testing.T) { FILE: pkg/remote/trans/invoke/message.go type PayloadHandler (line 33) | type PayloadHandler interface type Message (line 42) | type Message interface type message (line 47) | type message struct method Read (line 63) | func (f *message) Read(b []byte) (n int, err error) { method Write (line 68) | func (f *message) Write(b []byte) (n int, err error) { method Close (line 73) | func (f *message) Close() error { method LocalAddr (line 78) | func (f *message) LocalAddr() net.Addr { method RemoteAddr (line 83) | func (f *message) RemoteAddr() net.Addr { method SetDeadline (line 88) | func (f *message) SetDeadline(t time.Time) error { method SetReadDeadline (line 93) | func (f *message) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 98) | func (f *message) SetWriteDeadline(t time.Time) error { method SetRequestBytes (line 103) | func (f *message) SetRequestBytes(buf []byte) error { method GetResponseBytes (line 109) | func (f *message) GetResponseBytes() ([]byte, error) { method GetRequestReaderByteBuffer (line 117) | func (f *message) GetRequestReaderByteBuffer() remote.ByteBuffer { method GetResponseWriterByteBuffer (line 122) | func (f *message) GetResponseWriterByteBuffer() remote.ByteBuffer { method Release (line 130) | func (f *message) Release() error { function NewMessage (line 55) | func NewMessage(local, remote net.Addr) Message { FILE: pkg/remote/trans/invoke/message_test.go function Test_message_Addr (line 27) | func Test_message_Addr(t *testing.T) { function Test_message_Request (line 35) | func Test_message_Request(t *testing.T) { function Test_message_Response (line 52) | func Test_message_Response(t *testing.T) { function Test_message_Release (line 65) | func Test_message_Release(t *testing.T) { FILE: pkg/remote/trans/listen_config.go function NewListenConfig (line 32) | func NewListenConfig(opt *remote.ServerOption) net.ListenConfig { FILE: pkg/remote/trans/listen_config_windows.go function NewListenConfig (line 30) | func NewListenConfig(opt *remote.ServerOption) net.ListenConfig { FILE: pkg/remote/trans/mocks_test.go function newMockRPCInfo (line 27) | func newMockRPCInfo() rpcinfo.RPCInfo { type MockCodec (line 37) | type MockCodec struct method Encode (line 43) | func (m *MockCodec) Encode(ctx context.Context, msg remote.Message, ou... method Decode (line 50) | func (m *MockCodec) Decode(ctx context.Context, msg remote.Message, in... method Name (line 57) | func (m *MockCodec) Name() string { type MockExtension (line 66) | type MockExtension struct method SetReadTimeout (line 75) | func (m *MockExtension) SetReadTimeout(ctx context.Context, conn net.C... method NewWriteByteBuffer (line 82) | func (m *MockExtension) NewWriteByteBuffer(ctx context.Context, conn n... method NewReadByteBuffer (line 89) | func (m *MockExtension) NewReadByteBuffer(ctx context.Context, conn ne... method ReleaseBuffer (line 96) | func (m *MockExtension) ReleaseBuffer(buf remote.ByteBuffer, err error... method IsTimeoutErr (line 103) | func (m *MockExtension) IsTimeoutErr(err error) bool { method IsRemoteClosedErr (line 110) | func (m *MockExtension) IsRemoteClosedErr(err error) bool { FILE: pkg/remote/trans/netpoll/bytebuf.go function init (line 30) | func init() { function NewReaderByteBuffer (line 35) | func NewReaderByteBuffer(r netpoll.Reader) remote.ByteBuffer { function NewWriterByteBuffer (line 44) | func NewWriterByteBuffer(w netpoll.Writer) remote.ByteBuffer { function NewReaderWriterByteBuffer (line 52) | func NewReaderWriterByteBuffer(rw netpoll.ReadWriter) remote.ByteBuffer { function newNetpollByteBuffer (line 60) | func newNetpollByteBuffer() interface{} { type netpollByteBuffer (line 64) | type netpollByteBuffer struct method NetpollReader (line 76) | func (b *netpollByteBuffer) NetpollReader() netpoll.Reader { method Next (line 84) | func (b *netpollByteBuffer) Next(n int) (p []byte, err error) { method Peek (line 95) | func (b *netpollByteBuffer) Peek(n int) (buf []byte, err error) { method Skip (line 104) | func (b *netpollByteBuffer) Skip(n int) (err error) { method ReadableLen (line 112) | func (b *netpollByteBuffer) ReadableLen() (n int) { method Read (line 120) | func (b *netpollByteBuffer) Read(p []byte) (int, error) { method ReadString (line 144) | func (b *netpollByteBuffer) ReadString(n int) (s string, err error) { method ReadBinary (line 156) | func (b *netpollByteBuffer) ReadBinary(p []byte) (n int, err error) { method Malloc (line 171) | func (b *netpollByteBuffer) Malloc(n int) (buf []byte, err error) { method MallocAck (line 179) | func (b *netpollByteBuffer) MallocAck(n int) (err error) { method WrittenLen (line 187) | func (b *netpollByteBuffer) WrittenLen() (length int) { method Write (line 195) | func (b *netpollByteBuffer) Write(p []byte) (n int, err error) { method WriteString (line 204) | func (b *netpollByteBuffer) WriteString(s string) (n int, err error) { method WriteBinary (line 212) | func (b *netpollByteBuffer) WriteBinary(p []byte) (n int, err error) { method WriteDirect (line 220) | func (b *netpollByteBuffer) WriteDirect(p []byte, remainCap int) error { method ReadLen (line 228) | func (b *netpollByteBuffer) ReadLen() (n int) { method Flush (line 234) | func (b *netpollByteBuffer) Flush() (err error) { method NewBuffer (line 242) | func (b *netpollByteBuffer) NewBuffer() remote.ByteBuffer { method AppendBuffer (line 247) | func (b *netpollByteBuffer) AppendBuffer(buf remote.ByteBuffer) (err e... method Bytes (line 255) | func (b *netpollByteBuffer) Bytes() (buf []byte, err error) { method Release (line 264) | func (b *netpollByteBuffer) Release(e error) (err error) { method zero (line 274) | func (b *netpollByteBuffer) zero() { function GetWrittenBytes (line 282) | func GetWrittenBytes(lb *netpoll.LinkBuffer) (buf []byte, err error) { FILE: pkg/remote/trans/netpoll/bytebuf_test.go function TestByteBuffer (line 32) | func TestByteBuffer(t *testing.T) { function TestByteBuffer_Read (line 58) | func TestByteBuffer_Read(t *testing.T) { function TestWriterBuffer (line 71) | func TestWriterBuffer(t *testing.T) { function TestReaderBuffer (line 92) | func TestReaderBuffer(t *testing.T) { function checkWritable (line 105) | func checkWritable(t *testing.T, buf remote.ByteBuffer) { function checkReadable (line 128) | func checkReadable(t *testing.T, buf remote.ByteBuffer) { function checkUnwritable (line 159) | func checkUnwritable(t *testing.T, buf remote.ByteBuffer) { function checkUnreadable (line 186) | func checkUnreadable(t *testing.T, buf remote.ByteBuffer) { FILE: pkg/remote/trans/netpoll/client_handler.go type cliTransHandlerFactory (line 24) | type cliTransHandlerFactory struct method NewTransHandler (line 32) | func (f *cliTransHandlerFactory) NewTransHandler(opt *remote.ClientOpt... function NewCliTransHandlerFactory (line 27) | func NewCliTransHandlerFactory() remote.ClientTransHandlerFactory { function newCliTransHandler (line 36) | func newCliTransHandler(opt *remote.ClientOption) (remote.ClientTransHan... FILE: pkg/remote/trans/netpoll/conn_extension.go function NewNetpollConnExtension (line 33) | func NewNetpollConnExtension() trans.Extension { type netpollConnExtension (line 37) | type netpollConnExtension struct method SetReadTimeout (line 40) | func (e *netpollConnExtension) SetReadTimeout(ctx context.Context, con... method NewWriteByteBuffer (line 50) | func (e *netpollConnExtension) NewWriteByteBuffer(ctx context.Context,... method NewReadByteBuffer (line 55) | func (e *netpollConnExtension) NewReadByteBuffer(ctx context.Context, ... method ReleaseBuffer (line 60) | func (e *netpollConnExtension) ReleaseBuffer(buffer remote.ByteBuffer,... method IsTimeoutErr (line 68) | func (e *netpollConnExtension) IsTimeoutErr(err error) bool { method IsRemoteClosedErr (line 73) | func (e *netpollConnExtension) IsRemoteClosedErr(err error) bool { FILE: pkg/remote/trans/netpoll/dialer.go function NewDialer (line 26) | func NewDialer() remote.Dialer { FILE: pkg/remote/trans/netpoll/http_client.go type httpCliTransHandlerFactory (line 23) | type httpCliTransHandlerFactory struct method NewTransHandler (line 31) | func (f *httpCliTransHandlerFactory) NewTransHandler(opt *remote.Clien... function NewHTTPCliTransHandlerFactory (line 26) | func NewHTTPCliTransHandlerFactory() remote.ClientTransHandlerFactory { FILE: pkg/remote/trans/netpoll/http_client_handler.go function newHTTPCliTransHandler (line 41) | func newHTTPCliTransHandler(opt *remote.ClientOption, ext trans.Extensio... type httpCliTransHandler (line 49) | type httpCliTransHandler struct method Write (line 57) | func (t *httpCliTransHandler) Write(ctx context.Context, conn net.Conn... method Read (line 103) | func (t *httpCliTransHandler) Read(ctx context.Context, conn net.Conn,... method OnMessage (line 128) | func (t *httpCliTransHandler) OnMessage(ctx context.Context, args, res... method OnInactive (line 135) | func (t *httpCliTransHandler) OnInactive(ctx context.Context, conn net... method OnError (line 141) | func (t *httpCliTransHandler) OnError(ctx context.Context, err error, ... method SetPipeline (line 149) | func (t *httpCliTransHandler) SetPipeline(p *remote.TransPipeline) { function addMetaInfo (line 153) | func addMetaInfo(msg remote.Message, h http.Header) error { function readLine (line 168) | func readLine(buffer remote.ByteBuffer) ([]byte, error) { function skipLine (line 194) | func skipLine(buffer remote.ByteBuffer) (n int, err error) { function parseHTTPResponseHead (line 218) | func parseHTTPResponseHead(line string) (protoMajor, protoMinor, statusC... function skipToBody (line 244) | func skipToBody(buffer remote.ByteBuffer) error { function getBodyBufReader (line 271) | func getBodyBufReader(buf remote.ByteBuffer) (remote.ByteBuffer, error) { FILE: pkg/remote/trans/netpoll/http_client_handler_test.go function init (line 43) | func init() { function TestHTTPWrite (line 58) | func TestHTTPWrite(t *testing.T) { function TestHTTPRead (line 83) | func TestHTTPRead(t *testing.T) { function TestHTTPOnMessage (line 124) | func TestHTTPOnMessage(t *testing.T) { function TestAddMetaInfo (line 140) | func TestAddMetaInfo(t *testing.T) { function TestReadLine (line 160) | func TestReadLine(t *testing.T) { function TestSkipToBody (line 173) | func TestSkipToBody(t *testing.T) { function TestParseHTTPResponseHead (line 191) | func TestParseHTTPResponseHead(t *testing.T) { function TestGetBodyBufReader (line 202) | func TestGetBodyBufReader(t *testing.T) { FILE: pkg/remote/trans/netpoll/mocks_test.go type MockCodec (line 31) | type MockCodec struct method Name (line 36) | func (m *MockCodec) Name() string { method Encode (line 40) | func (m *MockCodec) Encode(ctx context.Context, msg remote.Message, ou... method Decode (line 47) | func (m *MockCodec) Decode(ctx context.Context, msg remote.Message, in... type MockNetpollConn (line 55) | type MockNetpollConn struct method AddCloseCallback (line 68) | func (m *MockNetpollConn) AddCloseCallback(c netpoll.CloseCallback) (e... method IsActive (line 76) | func (m *MockNetpollConn) IsActive() (r bool) { method Reader (line 84) | func (m *MockNetpollConn) Reader() (r netpoll.Reader) { method Writer (line 92) | func (m *MockNetpollConn) Writer() (r netpoll.Writer) { method SetIdleTimeout (line 100) | func (m *MockNetpollConn) SetIdleTimeout(timeout time.Duration) (e err... method SetOnRequest (line 108) | func (m *MockNetpollConn) SetOnRequest(on netpoll.OnRequest) (e error) { method SetReadTimeout (line 116) | func (m *MockNetpollConn) SetReadTimeout(timeout time.Duration) (e err... method SetWriteTimeout (line 124) | func (m *MockNetpollConn) SetWriteTimeout(timeout time.Duration) (e er... type MockNetpollWriter (line 132) | type MockNetpollWriter struct method Flush (line 140) | func (m *MockNetpollWriter) Flush() (err error) { method Malloc (line 148) | func (m *MockNetpollWriter) Malloc(n int) (buf []byte, err error) { method MallocLen (line 153) | func (m *MockNetpollWriter) MallocLen() (length int) { method MallocAck (line 158) | func (m *MockNetpollWriter) MallocAck(n int) (err error) { method Append (line 163) | func (m *MockNetpollWriter) Append(w netpoll.Writer) (err error) { method Write (line 168) | func (m *MockNetpollWriter) Write(b []byte) (n int, err error) { method WriteString (line 173) | func (m *MockNetpollWriter) WriteString(s string) (n int, err error) { method WriteBinary (line 178) | func (m *MockNetpollWriter) WriteBinary(b []byte) (n int, err error) { method WriteDirect (line 183) | func (m *MockNetpollWriter) WriteDirect(p []byte, remainCap int) (err ... method WriteByte (line 191) | func (m *MockNetpollWriter) WriteByte(b byte) (err error) { type MockNetpollReader (line 196) | type MockNetpollReader struct method Next (line 201) | func (m *MockNetpollReader) Next(n int) (p []byte, err error) { method Peek (line 206) | func (m *MockNetpollReader) Peek(n int) (buf []byte, err error) { method Until (line 211) | func (m *MockNetpollReader) Until(b byte) (p []byte, err error) { method Skip (line 216) | func (m *MockNetpollReader) Skip(n int) (err error) { method Release (line 221) | func (m *MockNetpollReader) Release() (err error) { method Slice (line 229) | func (m *MockNetpollReader) Slice(n int) (r netpoll.Reader, err error) { method Len (line 234) | func (m *MockNetpollReader) Len() (length int) { method Read (line 239) | func (m *MockNetpollReader) Read(b []byte) (n int, err error) { method ReadString (line 244) | func (m *MockNetpollReader) ReadString(n int) (s string, err error) { method ReadBinary (line 249) | func (m *MockNetpollReader) ReadBinary(n int) (p []byte, err error) { method ReadByte (line 254) | func (m *MockNetpollReader) ReadByte() (b byte, err error) { FILE: pkg/remote/trans/netpoll/server_handler.go type svrTransHandlerFactory (line 24) | type svrTransHandlerFactory struct method NewTransHandler (line 32) | func (f *svrTransHandlerFactory) NewTransHandler(opt *remote.ServerOpt... function NewSvrTransHandlerFactory (line 27) | func NewSvrTransHandlerFactory() remote.ServerTransHandlerFactory { function newSvrTransHandler (line 36) | func newSvrTransHandler(opt *remote.ServerOption) (remote.ServerTransHan... FILE: pkg/remote/trans/netpoll/server_handler_test.go function TestOnActive (line 35) | func TestOnActive(t *testing.T) { function TestOnRead (line 67) | func TestOnRead(t *testing.T) { function TestInvokeErr (line 119) | func TestInvokeErr(t *testing.T) { function TestPipelineNilPanic (line 178) | func TestPipelineNilPanic(t *testing.T) { function TestNoMethodInfo (line 233) | func TestNoMethodInfo(t *testing.T) { FILE: pkg/remote/trans/netpoll/trans_server.go function NewTransServerFactory (line 39) | func NewTransServerFactory() remote.TransServerFactory { type netpollTransServerFactory (line 43) | type netpollTransServerFactory struct method NewTransServer (line 46) | func (f *netpollTransServerFactory) NewTransServer(opt *remote.ServerO... type transServer (line 54) | type transServer struct method CreateListener (line 68) | func (ts *transServer) CreateListener(addr net.Addr) (net.Listener, er... method BootstrapServer (line 78) | func (ts *transServer) BootstrapServer(ln net.Listener) (err error) { method Shutdown (line 107) | func (ts *transServer) Shutdown() (err error) { method ConnCount (line 140) | func (ts *transServer) ConnCount() utils.AtomicInt { method onConnActive (line 148) | func (ts *transServer) onConnActive(conn netpoll.Connection) context.C... method onConnRead (line 165) | func (ts *transServer) onConnRead(ctx context.Context, conn netpoll.Co... method onConnInactive (line 181) | func (ts *transServer) onConnInactive(ctx context.Context, conn netpol... method onError (line 187) | func (ts *transServer) onError(ctx context.Context, err error, conn ne... function transRecover (line 191) | func transRecover(ctx context.Context, conn netpoll.Connection, funcName... FILE: pkg/remote/trans/netpoll/trans_server_test.go function TestMain (line 48) | func TestMain(m *testing.M) { function TestCreateListener (line 86) | func TestCreateListener(t *testing.T) { function TestBootStrap (line 110) | func TestBootStrap(t *testing.T) { function TestConnOnActive (line 134) | func TestConnOnActive(t *testing.T) { function TestConnOnActiveAndOnInactivePanic (line 166) | func TestConnOnActiveAndOnInactivePanic(t *testing.T) { function TestConnOnRead (line 198) | func TestConnOnRead(t *testing.T) { FILE: pkg/remote/trans/netpollmux/client_handler.go type cliTransHandlerFactory (line 39) | type cliTransHandlerFactory struct method NewTransHandler (line 47) | func (f *cliTransHandlerFactory) NewTransHandler(opt *remote.ClientOpt... function NewCliTransHandlerFactory (line 42) | func NewCliTransHandlerFactory() remote.ClientTransHandlerFactory { function newCliTransHandler (line 54) | func newCliTransHandler(opt *remote.ClientOption) (*cliTransHandler, err... type cliTransHandler (line 63) | type cliTransHandler struct method Write (line 70) | func (t *cliTransHandler) Write(ctx context.Context, conn net.Conn, se... method Read (line 116) | func (t *cliTransHandler) Read(ctx context.Context, conn net.Conn, msg... method OnMessage (line 158) | func (t *cliTransHandler) OnMessage(ctx context.Context, args, result ... method OnInactive (line 164) | func (t *cliTransHandler) OnInactive(ctx context.Context, conn net.Con... method OnError (line 169) | func (t *cliTransHandler) OnError(ctx context.Context, err error, conn... method SetPipeline (line 178) | func (t *cliTransHandler) SetPipeline(p *remote.TransPipeline) { type asyncCallback (line 182) | type asyncCallback struct method Recv (line 198) | func (c *asyncCallback) Recv(bufReader remote.ByteBuffer, err error) e... method Close (line 204) | func (c *asyncCallback) Close() error { method notify (line 212) | func (c *asyncCallback) notify(bufReader remote.ByteBuffer) { method getter (line 222) | func (c *asyncCallback) getter() (w netpoll.Writer, isNil bool) { function newAsyncCallback (line 189) | func newAsyncCallback(wbuf *netpoll.LinkBuffer, bufWriter remote.ByteBuf... FILE: pkg/remote/trans/netpollmux/client_handler_test.go function newTestRemoteClientOptionWithInStr (line 36) | func newTestRemoteClientOptionWithInStr(s string) *remote.ClientOption { function TestNewCliTransHandler (line 55) | func TestNewCliTransHandler(t *testing.T) { function TestCliTransHandler (line 68) | func TestCliTransHandler(t *testing.T) { function TestWriteOneWayMethod (line 130) | func TestWriteOneWayMethod(t *testing.T) { function TestReadTimeout (line 177) | func TestReadTimeout(t *testing.T) { function TestCallbackClose (line 235) | func TestCallbackClose(t *testing.T) { FILE: pkg/remote/trans/netpollmux/control_frame.go type ControlFrame (line 31) | type ControlFrame struct method BLength (line 37) | func (p *ControlFrame) BLength() int { method FastWrite (line 41) | func (p *ControlFrame) FastWrite(b []byte) int { return p.FastWriteNoc... method FastWriteNocopy (line 43) | func (p *ControlFrame) FastWriteNocopy(b []byte, w thrift.NocopyWriter... method FastRead (line 48) | func (p *ControlFrame) FastRead(b []byte) (off int, err error) { function NewControlFrame (line 33) | func NewControlFrame() *ControlFrame { FILE: pkg/remote/trans/netpollmux/mocks_test.go function newMockRPCInfo (line 30) | func newMockRPCInfo() rpcinfo.RPCInfo { type MockCodec (line 42) | type MockCodec struct method Encode (line 48) | func (m *MockCodec) Encode(ctx context.Context, msg remote.Message, ou... method Decode (line 55) | func (m *MockCodec) Decode(ctx context.Context, msg remote.Message, in... method Name (line 62) | func (m *MockCodec) Name() string { type MockNetpollConn (line 72) | type MockNetpollConn struct method AddCloseCallback (line 85) | func (m *MockNetpollConn) AddCloseCallback(c netpoll.CloseCallback) (e... method IsActive (line 93) | func (m *MockNetpollConn) IsActive() (r bool) { method Reader (line 101) | func (m *MockNetpollConn) Reader() (r netpoll.Reader) { method Writer (line 109) | func (m *MockNetpollConn) Writer() (r netpoll.Writer) { method SetIdleTimeout (line 117) | func (m *MockNetpollConn) SetIdleTimeout(timeout time.Duration) (e err... method SetOnRequest (line 125) | func (m *MockNetpollConn) SetOnRequest(on netpoll.OnRequest) (e error) { method SetReadTimeout (line 133) | func (m *MockNetpollConn) SetReadTimeout(timeout time.Duration) (e err... method SetWriteTimeout (line 141) | func (m *MockNetpollConn) SetWriteTimeout(timeout time.Duration) (e er... type MockNetpollWriter (line 149) | type MockNetpollWriter struct method Flush (line 157) | func (m *MockNetpollWriter) Flush() (err error) { method Malloc (line 165) | func (m *MockNetpollWriter) Malloc(n int) (buf []byte, err error) { method MallocLen (line 170) | func (m *MockNetpollWriter) MallocLen() (length int) { method MallocAck (line 175) | func (m *MockNetpollWriter) MallocAck(n int) (err error) { method Append (line 180) | func (m *MockNetpollWriter) Append(w netpoll.Writer) (err error) { method Write (line 185) | func (m *MockNetpollWriter) Write(b []byte) (n int, err error) { method WriteString (line 190) | func (m *MockNetpollWriter) WriteString(s string) (n int, err error) { method WriteBinary (line 195) | func (m *MockNetpollWriter) WriteBinary(b []byte) (n int, err error) { method WriteDirect (line 200) | func (m *MockNetpollWriter) WriteDirect(p []byte, remainCap int) (err ... method WriteByte (line 208) | func (m *MockNetpollWriter) WriteByte(b byte) (err error) { type MockNetpollReader (line 213) | type MockNetpollReader struct method Next (line 218) | func (m *MockNetpollReader) Next(n int) (p []byte, err error) { method Peek (line 223) | func (m *MockNetpollReader) Peek(n int) (buf []byte, err error) { method Until (line 228) | func (m *MockNetpollReader) Until(b byte) (buf []byte, err error) { method Skip (line 233) | func (m *MockNetpollReader) Skip(n int) (err error) { method Release (line 238) | func (m *MockNetpollReader) Release() (err error) { method Slice (line 246) | func (m *MockNetpollReader) Slice(n int) (r netpoll.Reader, err error) { method Len (line 251) | func (m *MockNetpollReader) Len() (length int) { method Read (line 256) | func (m *MockNetpollReader) Read(b []byte) (n int, err error) { method ReadString (line 261) | func (m *MockNetpollReader) ReadString(n int) (s string, err error) { method ReadBinary (line 266) | func (m *MockNetpollReader) ReadBinary(n int) (p []byte, err error) { method ReadByte (line 271) | func (m *MockNetpollReader) ReadByte() (b byte, err error) { FILE: pkg/remote/trans/netpollmux/mux_conn.go function newMuxCliConn (line 43) | func newMuxCliConn(connection netpoll.Connection) *muxCliConn { type muxCliConn (line 55) | type muxCliConn struct method IsActive (line 61) | func (c *muxCliConn) IsActive() bool { method OnRequest (line 66) | func (c *muxCliConn) OnRequest(ctx context.Context, connection netpoll... method Close (line 115) | func (c *muxCliConn) Close() error { method forceClose (line 119) | func (c *muxCliConn) forceClose() error { method close (line 128) | func (c *muxCliConn) close() error { method onError (line 136) | func (c *muxCliConn) onError(ctx context.Context, err error, connectio... function newMuxSvrConn (line 142) | func newMuxSvrConn(connection netpoll.Connection, pool *sync.Pool) *muxS... type muxSvrConn (line 150) | type muxSvrConn struct function newMuxConn (line 155) | func newMuxConn(connection netpoll.Connection) muxConn { type muxConn (line 167) | type muxConn struct method Put (line 173) | func (c *muxConn) Put(gt mux.WriterGetter) { method GracefulShutdown (line 177) | func (c *muxConn) GracefulShutdown() { FILE: pkg/remote/trans/netpollmux/mux_conn_test.go function TestOnRequestErr (line 34) | func TestOnRequestErr(t *testing.T) { function TestOnRequest (line 53) | func TestOnRequest(t *testing.T) { FILE: pkg/remote/trans/netpollmux/mux_pool.go function NewMuxConnPool (line 35) | func NewMuxConnPool(size int) *MuxPool { type MuxPool (line 43) | type MuxPool struct method Get (line 51) | func (mp *MuxPool) Get(ctx context.Context, network, address string, o... method Put (line 82) | func (mp *MuxPool) Put(conn net.Conn) error { method Discard (line 90) | func (mp *MuxPool) Discard(conn net.Conn) error { method Clean (line 98) | func (mp *MuxPool) Clean(network, address string) { method Close (line 106) | func (mp *MuxPool) Close() error { type conns (line 115) | type conns struct method get (line 121) | func (c *conns) get() *muxCliConn { method put (line 127) | func (c *conns) put(conn *muxCliConn) { method close (line 141) | func (c *conns) close() { FILE: pkg/remote/trans/netpollmux/mux_pool_test.go function TestMuxConnPoolGetTimeout (line 43) | func TestMuxConnPoolGetTimeout(t *testing.T) { function TestMuxConnPoolReuse (line 73) | func TestMuxConnPoolReuse(t *testing.T) { function TestMuxConnPoolDiscardClean (line 128) | func TestMuxConnPoolDiscardClean(t *testing.T) { function TestMuxConnPoolClose (line 159) | func TestMuxConnPoolClose(t *testing.T) { function BenchmarkMuxPoolGetOne (line 200) | func BenchmarkMuxPoolGetOne(b *testing.B) { function BenchmarkMuxPoolGetRand2000 (line 227) | func BenchmarkMuxPoolGetRand2000(b *testing.B) { function BenchmarkMuxPoolGetRand2000Mesh (line 258) | func BenchmarkMuxPoolGetRand2000Mesh(b *testing.B) { FILE: pkg/remote/trans/netpollmux/mux_transport.go function parseHeader (line 29) | func parseHeader(reader netpoll.Reader) (length int, seqID int32, err er... FILE: pkg/remote/trans/netpollmux/mux_transport_test.go function TestParseHeader (line 30) | func TestParseHeader(t *testing.T) { function TestParseHeaderErr (line 44) | func TestParseHeaderErr(t *testing.T) { function mockHeader (line 72) | func mockHeader(seqID int32, body string) *netpoll.LinkBuffer { FILE: pkg/remote/trans/netpollmux/server_handler.go constant defaultExitWaitGracefulShutdownTime (line 44) | defaultExitWaitGracefulShutdownTime = 1 * time.Second type svrTransHandlerFactory (line 46) | type svrTransHandlerFactory struct method MuxEnabled (line 54) | func (f *svrTransHandlerFactory) MuxEnabled() bool { method NewTransHandler (line 60) | func (f *svrTransHandlerFactory) NewTransHandler(opt *remote.ServerOpt... function NewSvrTransHandlerFactory (line 49) | func NewSvrTransHandlerFactory() remote.ServerTransHandlerFactory { function newSvrTransHandler (line 64) | func newSvrTransHandler(opt *remote.ServerOption) (*svrTransHandler, err... type svrTransHandler (line 84) | type svrTransHandler struct method Write (line 97) | func (t *svrTransHandler) Write(ctx context.Context, conn net.Conn, se... method Read (line 122) | func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, msg... method readWithByteBuffer (line 126) | func (t *svrTransHandler) readWithByteBuffer(ctx context.Context, bufR... method OnRead (line 148) | func (t *svrTransHandler) OnRead(muxSvrConnCtx context.Context, conn n... method batchGoTasks (line 183) | func (t *svrTransHandler) batchGoTasks(fs []func()) { method task (line 192) | func (t *svrTransHandler) task(muxSvrConnCtx context.Context, conn net... method OnMessage (line 278) | func (t *svrTransHandler) OnMessage(ctx context.Context, args, result ... method OnActive (line 287) | func (t *svrTransHandler) OnActive(ctx context.Context, conn net.Conn)... method OnInactive (line 308) | func (t *svrTransHandler) OnInactive(ctx context.Context, conn net.Con... method GracefulShutdown (line 312) | func (t *svrTransHandler) GracefulShutdown(ctx context.Context) error { method OnError (line 385) | func (t *svrTransHandler) OnError(ctx context.Context, err error, conn... method SetInvokeHandleFunc (line 406) | func (t *svrTransHandler) SetInvokeHandleFunc(inkHdlFunc endpoint.Endp... method SetPipeline (line 411) | func (t *svrTransHandler) SetPipeline(p *remote.TransPipeline) { method writeErrorReplyIfNeeded (line 415) | func (t *svrTransHandler) writeErrorReplyIfNeeded( method tryRecover (line 439) | func (t *svrTransHandler) tryRecover(ctx context.Context, conn net.Con... method startTracer (line 455) | func (t *svrTransHandler) startTracer(ctx context.Context, ri rpcinfo.... method finishTracer (line 460) | func (t *svrTransHandler) finishTracer(ctx context.Context, ri rpcinfo... type ctxKeyMuxSvrConn (line 283) | type ctxKeyMuxSvrConn struct function getRemoteInfo (line 479) | func getRemoteInfo(ri rpcinfo.RPCInfo, conn net.Conn) (string, net.Addr) { FILE: pkg/remote/trans/netpollmux/server_handler_test.go function newTestRpcInfo (line 51) | func newTestRpcInfo() rpcinfo.RPCInfo { function init (line 66) | func init() { function TestNewTransHandler (line 97) | func TestNewTransHandler(t *testing.T) { function TestOnActive (line 104) | func TestOnActive(t *testing.T) { function TestMuxSvrWrite (line 133) | func TestMuxSvrWrite(t *testing.T) { function TestMuxSvrOnRead (line 168) | func TestMuxSvrOnRead(t *testing.T) { function TestPanicAfterMuxSvrOnRead (line 244) | func TestPanicAfterMuxSvrOnRead(t *testing.T) { function TestRecoverAfterOnReadPanic (line 315) | func TestRecoverAfterOnReadPanic(t *testing.T) { function TestInvokeError (line 392) | func TestInvokeError(t *testing.T) { function TestOnError (line 512) | func TestOnError(t *testing.T) { function TestInvokeNoMethod (line 544) | func TestInvokeNoMethod(t *testing.T) { function TestMuxSvrOnReadHeartbeat (line 645) | func TestMuxSvrOnReadHeartbeat(t *testing.T) { FILE: pkg/remote/trans/netpollmux/shard_map.go type EventHandler (line 26) | type EventHandler interface type shardMap (line 32) | type shardMap struct method getShard (line 58) | func (m *shardMap) getShard(seqID int32) *shard { method store (line 63) | func (m *shardMap) store(seqID int32, msg EventHandler) { method load (line 75) | func (m *shardMap) load(seqID int32) (msg EventHandler, ok bool) { method delete (line 87) | func (m *shardMap) delete(seqID int32) { method rangeMap (line 98) | func (m *shardMap) rangeMap(fn func(seqID int32, msg EventHandler)) { type shard (line 38) | type shard struct function newShardMap (line 44) | func newShardMap(size int) *shardMap { function abs (line 108) | func abs(n int32) int32 { FILE: pkg/remote/trans/netpollmux/shard_map_test.go function TestShardMap (line 27) | func TestShardMap(t *testing.T) { function BenchmarkSyncMap (line 76) | func BenchmarkSyncMap(b *testing.B) { function BenchmarkShardMap (line 97) | func BenchmarkShardMap(b *testing.B) { FILE: pkg/remote/trans/nphttp2/buffer.go constant minMallocSize (line 30) | minMallocSize = 4 * 1024 type GRPCConn (line 34) | type GRPCConn interface type buffer (line 42) | type buffer struct method growRbuf (line 65) | func (b *buffer) growRbuf(n int) { method Next (line 80) | func (b *buffer) Next(n int) (p []byte, err error) { method WriteHeader (line 89) | func (b *buffer) WriteHeader(buf []byte) (err error) { method WriteData (line 94) | func (b *buffer) WriteData(buf []byte) (err error) { method Flush (line 99) | func (b *buffer) Flush() (err error) { method Release (line 106) | func (b *buffer) Release(e error) (err error) { method Read (line 120) | func (b *buffer) Read(p []byte) (n int, err error) { method Write (line 124) | func (b *buffer) Write(p []byte) (n int, err error) { method Peek (line 128) | func (b *buffer) Peek(n int) (buf []byte, err error) { method Skip (line 132) | func (b *buffer) Skip(n int) (err error) { method ReadableLen (line 136) | func (b *buffer) ReadableLen() (n int) { method ReadLen (line 140) | func (b *buffer) ReadLen() (n int) { method ReadString (line 144) | func (b *buffer) ReadString(n int) (s string, err error) { method ReadBinary (line 148) | func (b *buffer) ReadBinary(p []byte) (n int, err error) { method Malloc (line 152) | func (b *buffer) Malloc(n int) (buf []byte, err error) { method WrittenLen (line 156) | func (b *buffer) WrittenLen() (length int) { method WriteString (line 160) | func (b *buffer) WriteString(s string) (n int, err error) { method WriteBinary (line 164) | func (b *buffer) WriteBinary(data []byte) (n int, err error) { method NewBuffer (line 168) | func (b *buffer) NewBuffer() remote.ByteBuffer { method AppendBuffer (line 172) | func (b *buffer) AppendBuffer(buf remote.ByteBuffer) (err error) { method Bytes (line 176) | func (b *buffer) Bytes() (buf []byte, err error) { function newBuffer (line 59) | func newBuffer(conn GRPCConn) *buffer { FILE: pkg/remote/trans/nphttp2/buffer_test.go function TestBuffer (line 25) | func TestBuffer(t *testing.T) { FILE: pkg/remote/trans/nphttp2/client_conn.go constant contentSubTypeThrift (line 39) | contentSubTypeThrift = "thrift" constant contentSubTypeProtobuf (line 40) | contentSubTypeProtobuf = "protobuf" type streamDesc (line 43) | type streamDesc struct type clientConn (line 47) | type clientConn struct method ReadFrame (line 55) | func (c *clientConn) ReadFrame() (hdr, data []byte, err error) { method Read (line 132) | func (c *clientConn) Read(b []byte) (n int, err error) { method Write (line 146) | func (c *clientConn) Write(b []byte) (n int, err error) { method WriteFrame (line 153) | func (c *clientConn) WriteFrame(hdr, data []byte) (n int, err error) { method LocalAddr (line 159) | func (c *clientConn) LocalAddr() net.Addr { return c.tr... method RemoteAddr (line 160) | func (c *clientConn) RemoteAddr() net.Addr { return c.tr... method SetDeadline (line 161) | func (c *clientConn) SetDeadline(t time.Time) error { return nil } method SetReadDeadline (line 162) | func (c *clientConn) SetReadDeadline(t time.Time) error { return nil } method SetWriteDeadline (line 163) | func (c *clientConn) SetWriteDeadline(t time.Time) error { return nil } method Close (line 164) | func (c *clientConn) Close() error { method Header (line 173) | func (c *clientConn) Header() (metadata.MD, error) { return c.s.Header... method Trailer (line 174) | func (c *clientConn) Trailer() metadata.MD { return c.s.Traile... method GetRecvCompress (line 175) | func (c *clientConn) GetRecvCompress() string { return c.s.RecvCo... method cancel (line 177) | func (c *clientConn) cancel(err error) { function getContentSubType (line 70) | func getContentSubType(codec serviceinfo.PayloadCodec) string { function newClientConn (line 81) | func newClientConn(ctx context.Context, tr grpc.ClientTransport, addr st... function fullMethodName (line 113) | func fullMethodName(pkg, svc, method string) string { type hasGetRecvCompress (line 181) | type hasGetRecvCompress interface type hasHeader (line 185) | type hasHeader interface type hasTrailer (line 189) | type hasTrailer interface FILE: pkg/remote/trans/nphttp2/client_conn_test.go function TestClientConn (line 27) | func TestClientConn(t *testing.T) { function TestClientConnStreamDesc (line 65) | func TestClientConnStreamDesc(t *testing.T) { function Test_fullMethodName (line 90) | func Test_fullMethodName(t *testing.T) { FILE: pkg/remote/trans/nphttp2/client_handler.go type cliTransHandlerFactory (line 30) | type cliTransHandlerFactory struct method NewTransHandler (line 37) | func (f *cliTransHandlerFactory) NewTransHandler(opt *remote.ClientOpt... function NewCliTransHandlerFactory (line 33) | func NewCliTransHandlerFactory() remote.ClientTransHandlerFactory { function newCliTransHandler (line 41) | func newCliTransHandler(opt *remote.ClientOption) (*cliTransHandler, err... type cliTransHandler (line 50) | type cliTransHandler struct method Write (line 55) | func (h *cliTransHandler) Write(ctx context.Context, conn net.Conn, ms... method Read (line 65) | func (h *cliTransHandler) Read(ctx context.Context, conn net.Conn, msg... method OnRead (line 82) | func (h *cliTransHandler) OnRead(ctx context.Context, conn net.Conn) (... method OnConnect (line 92) | func (h *cliTransHandler) OnConnect(ctx context.Context) (context.Cont... method OnInactive (line 96) | func (h *cliTransHandler) OnInactive(ctx context.Context, conn net.Con... method OnError (line 100) | func (h *cliTransHandler) OnError(ctx context.Context, err error, conn... method OnMessage (line 104) | func (h *cliTransHandler) OnMessage(ctx context.Context, args, result ... method SetPipeline (line 109) | func (h *cliTransHandler) SetPipeline(pipeline *remote.TransPipeline) { FILE: pkg/remote/trans/nphttp2/client_handler_test.go function TestClientHandler (line 34) | func TestClientHandler(t *testing.T) { type mockCodec (line 64) | type mockCodec struct method Encode (line 70) | func (c *mockCodec) Encode(ctx context.Context, msg remote.Message, ou... method Decode (line 74) | func (c *mockCodec) Decode(ctx context.Context, msg remote.Message, in... type mockConnForRead (line 85) | type mockConnForRead struct method WriteFrame (line 89) | func (m *mockConnForRead) WriteFrame(hdr, data []byte) (n int, err err... method ReadFrame (line 93) | func (m *mockConnForRead) ReadFrame() (hdr, data []byte, err error) { method GetRecvCompress (line 97) | func (m *mockConnForRead) GetRecvCompress() string { method Header (line 101) | func (m *mockConnForRead) Header() (metadata.MD, error) { method Trailer (line 105) | func (m *mockConnForRead) Trailer() metadata.MD { function Test_cliTransHandler_Read (line 109) | func Test_cliTransHandler_Read(t *testing.T) { FILE: pkg/remote/trans/nphttp2/codes.go function convertStatus (line 38) | func convertStatus(err error) *status.Status { function getStatusForBizErr (line 70) | func getStatusForBizErr(dErr *kerrors.DetailedError) *status.Status { FILE: pkg/remote/trans/nphttp2/codes/code_string.go method String (line 25) | func (c Code) String() string { FILE: pkg/remote/trans/nphttp2/codes/codes.go type Code (line 31) | type Code method UnmarshalJSON (line 180) | func (c *Code) UnmarshalJSON(b []byte) error { constant OK (line 35) | OK Code = 0 constant Canceled (line 38) | Canceled Code = 1 constant Unknown (line 45) | Unknown Code = 2 constant InvalidArgument (line 51) | InvalidArgument Code = 3 constant DeadlineExceeded (line 58) | DeadlineExceeded Code = 4 constant NotFound (line 62) | NotFound Code = 5 constant AlreadyExists (line 66) | AlreadyExists Code = 6 constant PermissionDenied (line 74) | PermissionDenied Code = 7 constant ResourceExhausted (line 78) | ResourceExhausted Code = 8 constant FailedPrecondition (line 99) | FailedPrecondition Code = 9 constant Aborted (line 107) | Aborted Code = 10 constant OutOfRange (line 124) | OutOfRange Code = 11 constant Unimplemented (line 128) | Unimplemented Code = 12 constant Internal (line 133) | Internal Code = 13 constant Unavailable (line 142) | Unavailable Code = 14 constant DataLoss (line 145) | DataLoss Code = 15 constant Unauthenticated (line 149) | Unauthenticated Code = 16 constant RecvDeadlineExceeded (line 153) | RecvDeadlineExceeded Code = 17 constant _maxCode (line 155) | _maxCode = 18 FILE: pkg/remote/trans/nphttp2/codes/codes_test.go function TestUnmarshalJSON (line 26) | func TestUnmarshalJSON(t *testing.T) { function TestCodeString (line 55) | func TestCodeString(t *testing.T) { FILE: pkg/remote/trans/nphttp2/codes_test.go type mockError (line 32) | type mockError struct method Error (line 34) | func (m mockError) Error() string { function TestConvertStatus (line 38) | func TestConvertStatus(t *testing.T) { FILE: pkg/remote/trans/nphttp2/conn_pool.go function poolSize (line 39) | func poolSize() uint32 { function NewConnPool (line 47) | func NewConnPool(remoteService string, size uint32, connOpts grpc.Connec... type connPool (line 64) | type connPool struct method newTransport (line 111) | func (p *connPool) newTransport(ctx context.Context, dialer remote.Dia... method Get (line 143) | func (p *connPool) Get(ctx context.Context, network, address string, o... method Put (line 194) | func (p *connPool) Put(conn net.Conn) error { method release (line 201) | func (p *connPool) release(conn net.Conn) error { method createShortConn (line 207) | func (p *connPool) createShortConn(ctx context.Context, network, addre... method Discard (line 218) | func (p *connPool) Discard(conn net.Conn) error { method Clean (line 226) | func (p *connPool) Clean(network, address string) { method Close (line 234) | func (p *connPool) Close() error { method Dump (line 244) | func (p *connPool) Dump() interface{} { type transports (line 72) | type transports struct method get (line 79) | func (t *transports) get() grpc.ClientTransport { method put (line 85) | func (t *transports) put(trans grpc.ClientTransport) { method close (line 101) | func (t *transports) close() { function newTLSConn (line 281) | func newTLSConn(conn net.Conn, tlsCfg *tls.Config) (net.Conn, error) { FILE: pkg/remote/trans/nphttp2/conn_pool_test.go function TestConnPool (line 32) | func TestConnPool(t *testing.T) { function TestReleaseConn (line 71) | func TestReleaseConn(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/bdp_estimator.go constant bdpLimit (line 32) | bdpLimit = (1 << 20) * 16 constant alpha (line 35) | alpha = 0.9 constant beta (line 40) | beta = 0.66 constant gamma (line 44) | gamma = 2 type bdpEstimator (line 54) | type bdpEstimator struct method timesnap (line 79) | func (b *bdpEstimator) timesnap(d [8]byte) { method add (line 94) | func (b *bdpEstimator) add(n uint32) bool { method calculate (line 114) | func (b *bdpEstimator) calculate(d [8]byte) { FILE: pkg/remote/trans/nphttp2/grpc/bdp_estimator_test.go function TestBdp (line 26) | func TestBdp(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/context.go type contextWithCancelReason (line 27) | type contextWithCancelReason struct method Err (line 34) | func (c *contextWithCancelReason) Err() error { method CancelWithReason (line 42) | func (c *contextWithCancelReason) CancelWithReason(reason error) { type cancelWithReason (line 49) | type cancelWithReason function newContextWithCancelReason (line 51) | func newContextWithCancelReason(ctx context.Context, cancel context.Canc... FILE: pkg/remote/trans/nphttp2/grpc/context_test.go function TestContextWithCancelReason (line 27) | func TestContextWithCancelReason(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/controlbuf.go type itemNode (line 42) | type itemNode struct constant maxFreeItemNodes (line 47) | maxFreeItemNodes = 100 type itemList (line 49) | type itemList struct method enqueue (line 57) | func (il *itemList) enqueue(i interface{}) { method peek (line 77) | func (il *itemList) peek() interface{} { method dequeue (line 81) | func (il *itemList) dequeue() interface{} { method dequeueAll (line 101) | func (il *itemList) dequeueAll() *itemNode { method isEmpty (line 107) | func (il *itemList) isEmpty() bool { constant maxQueuedTransportResponseFrames (line 119) | maxQueuedTransportResponseFrames = 50 type cbItem (line 121) | type cbItem interface type registerStream (line 126) | type registerStream struct method isTransportResponseFrame (line 131) | func (*registerStream) isTransportResponseFrame() bool { return false } type headerFrame (line 134) | type headerFrame struct method isTransportResponseFrame (line 145) | func (h *headerFrame) isTransportResponseFrame() bool { type cleanupStream (line 149) | type cleanupStream struct method isTransportResponseFrame (line 157) | func (c *cleanupStream) isTransportResponseFrame() bool { return c.rst } type dataFrame (line 159) | type dataFrame struct method Release (line 195) | func (p *dataFrame) Release() { method isTransportResponseFrame (line 201) | func (*dataFrame) isTransportResponseFrame() bool { return false } function newDataFrame (line 189) | func newDataFrame() *dataFrame { type incomingWindowUpdate (line 203) | type incomingWindowUpdate struct method isTransportResponseFrame (line 208) | func (*incomingWindowUpdate) isTransportResponseFrame() bool { return ... type outgoingWindowUpdate (line 210) | type outgoingWindowUpdate struct method isTransportResponseFrame (line 215) | func (*outgoingWindowUpdate) isTransportResponseFrame() bool { type incomingSettings (line 219) | type incomingSettings struct method isTransportResponseFrame (line 223) | func (*incomingSettings) isTransportResponseFrame() bool { return true } type outgoingSettings (line 225) | type outgoingSettings struct method isTransportResponseFrame (line 229) | func (*outgoingSettings) isTransportResponseFrame() bool { return false } type incomingGoAway (line 231) | type incomingGoAway struct method isTransportResponseFrame (line 233) | func (*incomingGoAway) isTransportResponseFrame() bool { return false } type goAway (line 235) | type goAway struct method isTransportResponseFrame (line 242) | func (*goAway) isTransportResponseFrame() bool { return false } type ping (line 244) | type ping struct method isTransportResponseFrame (line 249) | func (*ping) isTransportResponseFrame() bool { return true } type outFlowControlSizeRequest (line 251) | type outFlowControlSizeRequest struct method isTransportResponseFrame (line 255) | func (*outFlowControlSizeRequest) isTransportResponseFrame() bool { re... type outStreamState (line 257) | type outStreamState constant active (line 260) | active outStreamState = iota constant empty (line 261) | empty constant waitingOnStreamQuota (line 262) | waitingOnStreamQuota type outStream (line 265) | type outStream struct method deleteSelf (line 276) | func (s *outStream) deleteSelf() { type outStreamList (line 286) | type outStreamList struct method enqueue (line 308) | func (l *outStreamList) enqueue(s *outStream) { method dequeue (line 317) | func (l *outStreamList) dequeue() *outStream { function newOutStreamList (line 298) | func newOutStreamList() *outStreamList { type controlBuffer (line 332) | type controlBuffer struct method throttle (line 359) | func (c *controlBuffer) throttle() { method put (line 369) | func (c *controlBuffer) put(it cbItem) error { method executeAndPut (line 374) | func (c *controlBuffer) executeAndPut(f func(it interface{}) bool, it ... method execute (line 412) | func (c *controlBuffer) execute(f func(it interface{}) bool, it interf... method get (line 426) | func (c *controlBuffer) get(block bool) (interface{}, error) { method finish (line 462) | func (c *controlBuffer) finish(err error) (rErr error) { function newControlBuffer (line 349) | func newControlBuffer(done <-chan struct{}) *controlBuffer { type side (line 487) | type side constant clientSide (line 490) | clientSide side = iota constant serverSide (line 491) | serverSide type loopyWriter (line 503) | type loopyWriter struct method run (line 562) | func (l *loopyWriter) run(remoteAddr string) (err error) { method outgoingWindowUpdateHandler (line 624) | func (l *loopyWriter) outgoingWindowUpdateHandler(w *outgoingWindowUpd... method incomingWindowUpdateHandler (line 628) | func (l *loopyWriter) incomingWindowUpdateHandler(w *incomingWindowUpd... method outgoingSettingsHandler (line 646) | func (l *loopyWriter) outgoingSettingsHandler(s *outgoingSettings) err... method incomingSettingsHandler (line 650) | func (l *loopyWriter) incomingSettingsHandler(s *incomingSettings) err... method registerStreamHandler (line 657) | func (l *loopyWriter) registerStreamHandler(h *registerStream) error { method headerHandler (line 668) | func (l *loopyWriter) headerHandler(h *headerFrame) error { method originateStream (line 702) | func (l *loopyWriter) originateStream(str *outStream) error { method writeHeader (line 718) | func (l *loopyWriter) writeHeader(streamID uint32, endStream bool, hf ... method preprocessData (line 762) | func (l *loopyWriter) preprocessData(df *dataFrame) error { method pingHandler (line 777) | func (l *loopyWriter) pingHandler(p *ping) error { method outFlowControlSizeRequestHandler (line 784) | func (l *loopyWriter) outFlowControlSizeRequestHandler(o *outFlowContr... method cleanupStreamHandler (line 789) | func (l *loopyWriter) cleanupStreamHandler(c *cleanupStream) error { method incomingGoAwayHandler (line 814) | func (l *loopyWriter) incomingGoAwayHandler(*incomingGoAway) error { method goAwayHandler (line 824) | func (l *loopyWriter) goAwayHandler(g *goAway) error { method handle (line 836) | func (l *loopyWriter) handle(i interface{}) error { method applySettings (line 867) | func (l *loopyWriter) applySettings(ss []http2.Setting) error { method processData (line 892) | func (l *loopyWriter) processData() (bool, error) { function newLoopyWriter (line 527) | func newLoopyWriter(s side, fr *framer, cbuf *controlBuffer, bdpEst *bdp... constant minBatchSize (line 544) | minBatchSize = 1000 function min (line 1001) | func min(a, b int) int { FILE: pkg/remote/trans/nphttp2/grpc/controlbuf_test.go function TestControlBuf (line 27) | func TestControlBuf(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/defaults.go constant defaultWindowSize (line 33) | defaultWindowSize = uint32(65535) constant initialWindowSize (line 35) | initialWindowSize = defaultWindowSize constant Infinity (line 37) | Infinity = time.Duration(math.MaxInt64) constant defaultMaxStreamsClient (line 38) | defaultMaxStreamsClient = 100 constant defaultMaxConnectionIdle (line 39) | defaultMaxConnectionIdle = Infinity constant defaultMaxConnectionAge (line 40) | defaultMaxConnectionAge = Infinity constant defaultMaxConnectionAgeGrace (line 41) | defaultMaxConnectionAgeGrace = Infinity constant defaultClientKeepaliveTime (line 43) | defaultClientKeepaliveTime = Infinity constant defaultClientKeepaliveTimeout (line 44) | defaultClientKeepaliveTimeout = 20 * time.Second constant defaultServerKeepaliveTime (line 45) | defaultServerKeepaliveTime = 2 * time.Hour constant defaultServerKeepaliveTimeout (line 46) | defaultServerKeepaliveTimeout = 20 * time.Second constant defaultKeepalivePolicyMinTime (line 47) | defaultKeepalivePolicyMinTime = 5 * time.Minute constant maxWindowSize (line 49) | maxWindowSize = math.MaxInt32 constant defaultWriteQuota (line 53) | defaultWriteQuota = 64 * 1024 constant defaultClientMaxHeaderListSize (line 54) | defaultClientMaxHeaderListSize = uint32(16 << 20) constant defaultServerMaxHeaderListSize (line 55) | defaultServerMaxHeaderListSize = uint32(16 << 20) constant defaultWriteBufferSize (line 57) | defaultWriteBufferSize = uint32(32 * 1024) constant defaultReadBufferSize (line 59) | defaultReadBufferSize = uint32(32 * 1024) constant defaultUserAgent (line 61) | defaultUserAgent = "kitex/" + kitex.Version constant KeepaliveMinPingTime (line 67) | KeepaliveMinPingTime = 10 * time.Second FILE: pkg/remote/trans/nphttp2/grpc/flowcontrol.go type writeQuota (line 32) | type writeQuota struct method get (line 55) | func (w *writeQuota) get(sz int32) error { method realReplenish (line 70) | func (w *writeQuota) realReplenish(n int) { function newWriteQuota (line 45) | func newWriteQuota(sz int32, done <-chan struct{}) *writeQuota { type trInFlow (line 82) | type trInFlow struct method newLimit (line 88) | func (f *trInFlow) newLimit(n uint32) uint32 { method onData (line 95) | func (f *trInFlow) onData(n uint32) uint32 { method reset (line 107) | func (f *trInFlow) reset() uint32 { method updateEffectiveWindowSize (line 114) | func (f *trInFlow) updateEffectiveWindowSize() { type inFlow (line 120) | type inFlow struct method newLimit (line 137) | func (f *inFlow) newLimit(n uint32) { method maybeAdjust (line 143) | func (f *inFlow) maybeAdjust(n uint32) uint32 { method onData (line 175) | func (f *inFlow) onData(n uint32) error { method onRead (line 190) | func (f *inFlow) onRead(n uint32) uint32 { FILE: pkg/remote/trans/nphttp2/grpc/flowcontrol_test.go function TestWriteQuota (line 27) | func TestWriteQuota(t *testing.T) { function TestTrInFlow (line 65) | func TestTrInFlow(t *testing.T) { function TestInFlow (line 90) | func TestInFlow(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/framer.go type framer (line 31) | type framer struct function newFramer (line 37) | func newFramer(conn net.Conn, writeBufferSize, readBufferSize, maxHeader... type ReuseWriteBufferConfig (line 59) | type ReuseWriteBufferConfig struct type bufWriter (line 63) | type bufWriter interface function newBufWriter (line 69) | func newBufWriter(writer io.Writer, batchSize int, reuseCfg ReuseWriteBu... type keepBufWriter (line 85) | type keepBufWriter struct method Write (line 93) | func (w *keepBufWriter) Write(b []byte) (n int, err error) { method Flush (line 114) | func (w *keepBufWriter) Flush() error { method GetOffset (line 118) | func (w *keepBufWriter) GetOffset() int { method flushAllocatedBuffer (line 122) | func (w *keepBufWriter) flushAllocatedBuffer() error { type reuseBufWriter (line 136) | type reuseBufWriter struct method Write (line 140) | func (w *reuseBufWriter) Write(b []byte) (n int, err error) { method Flush (line 164) | func (w *reuseBufWriter) Flush() error { method GetOffset (line 174) | func (w *reuseBufWriter) GetOffset() int { FILE: pkg/remote/trans/nphttp2/grpc/graceful_shutdown_test.go function TestGracefulShutdown (line 30) | func TestGracefulShutdown(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/grpcframe/errors.go type connError (line 25) | type connError struct method Error (line 30) | func (e connError) Error() string { type pseudoHeaderError (line 34) | type pseudoHeaderError method Error (line 36) | func (e pseudoHeaderError) Error() string { type duplicatePseudoHeaderError (line 40) | type duplicatePseudoHeaderError method Error (line 42) | func (e duplicatePseudoHeaderError) Error() string { type headerFieldNameError (line 46) | type headerFieldNameError method Error (line 48) | func (e headerFieldNameError) Error() string { type headerFieldValueError (line 52) | type headerFieldValueError method Error (line 54) | func (e headerFieldValueError) Error() string { FILE: pkg/remote/trans/nphttp2/grpc/grpcframe/errors_test.go function TestErrCodeString (line 17) | func TestErrCodeString(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/grpcframe/frame_parser.go type frameParser (line 37) | type frameParser function typeFrameParser (line 52) | func typeFrameParser(t http2.FrameType) frameParser { type DataFrame (line 62) | type DataFrame struct method StreamEnded (line 67) | func (f *DataFrame) StreamEnded() bool { method Data (line 75) | func (f *DataFrame) Data() []byte { function parseDataFrame (line 79) | func parseDataFrame(fc *frameCache, fh http2.FrameHeader, payload netpol... type HeadersFrame (line 118) | type HeadersFrame struct method HeaderBlockFragment (line 127) | func (f *HeadersFrame) HeaderBlockFragment() []byte { method HeadersEnded (line 131) | func (f *HeadersFrame) HeadersEnded() bool { method StreamEnded (line 135) | func (f *HeadersFrame) StreamEnded() bool { method HasPriority (line 139) | func (f *HeadersFrame) HasPriority() bool { function parseHeadersFrame (line 143) | func parseHeadersFrame(_ *frameCache, fh http2.FrameHeader, p []byte) (_... function parsePriorityFrame (line 181) | func parsePriorityFrame(_ *frameCache, fh http2.FrameHeader, payload []b... function parseRSTStreamFrame (line 200) | func parseRSTStreamFrame(_ *frameCache, fh http2.FrameHeader, p []byte) ... type SettingsFrame (line 215) | type SettingsFrame struct method IsAck (line 254) | func (f *SettingsFrame) IsAck() bool { method Value (line 258) | func (f *SettingsFrame) Value(id http2.SettingID) (v uint32, ok bool) { method Setting (line 269) | func (f *SettingsFrame) Setting(i int) http2.Setting { method NumSettings (line 277) | func (f *SettingsFrame) NumSettings() int { return len(f.p) / 6 } method HasDuplicates (line 280) | func (f *SettingsFrame) HasDuplicates() bool { method ForeachSetting (line 312) | func (f *SettingsFrame) ForeachSetting(fn func(http2.Setting) error) e... function parseSettingsFrame (line 220) | func parseSettingsFrame(_ *frameCache, fh http2.FrameHeader, p []byte) (... type PushPromiseFrame (line 326) | type PushPromiseFrame struct method HeaderBlockFragment (line 332) | func (f *PushPromiseFrame) HeaderBlockFragment() []byte { method HeadersEnded (line 336) | func (f *PushPromiseFrame) HeadersEnded() bool { function parsePushPromise (line 340) | func parsePushPromise(_ *frameCache, fh http2.FrameHeader, p []byte) (_ ... function parsePingFrame (line 376) | func parsePingFrame(_ *frameCache, fh http2.FrameHeader, payload []byte)... type GoAwayFrame (line 390) | type GoAwayFrame struct method DebugData (line 401) | func (f *GoAwayFrame) DebugData() []byte { function parseGoAwayFrame (line 405) | func parseGoAwayFrame(_ *frameCache, fh http2.FrameHeader, p []byte) (ht... function parseWindowUpdateFrame (line 420) | func parseWindowUpdateFrame(_ *frameCache, fh http2.FrameHeader, p []byt... type ContinuationFrame (line 445) | type ContinuationFrame struct method HeaderBlockFragment (line 457) | func (f *ContinuationFrame) HeaderBlockFragment() []byte { method HeadersEnded (line 461) | func (f *ContinuationFrame) HeadersEnded() bool { function parseContinuationFrame (line 450) | func parseContinuationFrame(_ *frameCache, fh http2.FrameHeader, p []byt... type UnknownFrame (line 467) | type UnknownFrame struct method Payload (line 477) | func (f *UnknownFrame) Payload() []byte { function parseUnknownFrame (line 481) | func parseUnknownFrame(_ *frameCache, fh http2.FrameHeader, p []byte) (h... type MetaHeadersFrame (line 491) | type MetaHeadersFrame struct method PseudoValue (line 514) | func (mh *MetaHeadersFrame) PseudoValue(pseudo string) string { method RegularFields (line 528) | func (mh *MetaHeadersFrame) RegularFields() []hpack.HeaderField { method PseudoFields (line 539) | func (mh *MetaHeadersFrame) PseudoFields() []hpack.HeaderField { method checkPseudos (line 548) | func (mh *MetaHeadersFrame) checkPseudos() error { FILE: pkg/remote/trans/nphttp2/grpc/grpcframe/frame_reader.go type Framer (line 29) | type Framer struct method maxHeaderListSize (line 73) | func (fr *Framer) maxHeaderListSize() uint32 { method SetReuseFrames (line 88) | func (fr *Framer) SetReuseFrames() { method SetMaxReadFrameSize (line 120) | func (fr *Framer) SetMaxReadFrameSize(v uint32) { method ErrorDetail (line 134) | func (fr *Framer) ErrorDetail() error { method ReadFrame (line 145) | func (fr *Framer) ReadFrame() (http2.Frame, error) { method connError (line 183) | func (fr *Framer) connError(code http2.ErrCode, reason string) error { method checkFrameOrder (line 191) | func (fr *Framer) checkFrameOrder(f http2.Frame) error { method maxHeaderStringLen (line 236) | func (fr *Framer) maxHeaderStringLen() int { method readMetaFrame (line 249) | func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, ... method readAndCheckFrameHeader (line 370) | func (fr *Framer) readAndCheckFrameHeader() (http2.FrameHeader, error) { constant minMaxFrameSize (line 81) | minMaxFrameSize = 1 << 14 constant maxFrameSize (line 82) | maxFrameSize = 1<<24 - 1 type frameCache (line 95) | type frameCache struct method getDataFrame (line 99) | func (fc *frameCache) getDataFrame() *DataFrame { function NewFramer (line 107) | func NewFramer(w io.Writer, r netpoll.Reader) *Framer { type headersEnder (line 227) | type headersEnder interface type headersOrContinuation (line 231) | type headersOrContinuation interface function validWireHeaderFieldName (line 341) | func validWireHeaderFieldName(v string) bool { function readByte (line 356) | func readByte(p []byte) (remain []byte, b byte, err error) { function readUint32 (line 363) | func readUint32(p []byte) (remain []byte, v uint32, err error) { FILE: pkg/remote/trans/nphttp2/grpc/grpcframe/frame_reader_test.go type mockNetpollReader (line 31) | type mockNetpollReader struct method Next (line 36) | func (r *mockNetpollReader) Next(n int) (p []byte, err error) { function getThriftApplicationExceptionBytes (line 40) | func getThriftApplicationExceptionBytes() []byte { function getHTTP2FrameHeaderBytes (line 46) | func getHTTP2FrameHeaderBytes() []byte { function Test_Framer_readAndCheckFrameHeader (line 61) | func Test_Framer_readAndCheckFrameHeader(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/grpcframe/frame_writer.go constant frameHeaderLen (line 21) | frameHeaderLen = 9 method startWrite (line 30) | func (fr *Framer) startWrite(ftype http2.FrameType, flags http2.Flags, s... method endWrite (line 47) | func (fr *Framer) endWrite() (err error) { method writeByte (line 52) | func (fr *Framer) writeByte(v byte) { fr.wbuf = append(fr.wbuf, v) } method writeBytes (line 53) | func (fr *Framer) writeBytes(v []byte) { fr.wbuf = append(fr.wbuf, v...) } method writeUint16 (line 54) | func (fr *Framer) writeUint16(v uint16) { fr.wbuf = append(fr.wbuf, byte... method writeUint32 (line 55) | func (fr *Framer) writeUint32(v uint32) { method WriteData (line 64) | func (fr *Framer) WriteData(streamID uint32, endStream bool, data []byte... method WriteHeaders (line 90) | func (fr *Framer) WriteHeaders(p http2.HeadersFrameParam) error { method WritePriority (line 139) | func (fr *Framer) WritePriority(streamID uint32, p http2.PriorityParam) ... method WriteRSTStream (line 165) | func (fr *Framer) WriteRSTStream(streamID uint32, code http2.ErrCode) er... method WriteSettings (line 182) | func (fr *Framer) WriteSettings(settings ...http2.Setting) error { method WriteSettingsAck (line 199) | func (fr *Framer) WriteSettingsAck() error { method WritePushPromise (line 214) | func (fr *Framer) WritePushPromise(p http2.PushPromiseParam) error { method WritePing (line 244) | func (fr *Framer) WritePing(ack bool, data [8]byte) error { method WriteGoAway (line 257) | func (fr *Framer) WriteGoAway(maxStreamID uint32, code http2.ErrCode, de... method WriteWindowUpdate (line 273) | func (fr *Framer) WriteWindowUpdate(streamID, incr uint32) error { method WriteContinuation (line 291) | func (fr *Framer) WriteContinuation(streamID uint32, endHeaders bool, he... method WriteRawFrame (line 309) | func (fr *Framer) WriteRawFrame(t http2.FrameType, flags http2.Flags, st... function validStreamIDOrZero (line 318) | func validStreamIDOrZero(streamID uint32) bool { function validStreamID (line 322) | func validStreamID(streamID uint32) bool { FILE: pkg/remote/trans/nphttp2/grpc/http2_client.go type http2Client (line 61) | type http2Client struct method newStream (line 383) | func (t *http2Client) newStream(ctx context.Context, callHdr *CallHdr)... method createHeaderFields (line 416) | func (t *http2Client) createHeaderFields(ctx context.Context, callHdr ... method setPeer (line 468) | func (t *http2Client) setPeer(ctx context.Context) { method NewStream (line 477) | func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr)... method CloseStream (line 601) | func (t *http2Client) CloseStream(s *Stream, err error) { method closeStream (line 620) | func (t *http2Client) closeStream(s *Stream, err error, rst bool, rstC... method Close (line 689) | func (t *http2Client) Close(err error) error { method GracefulClose (line 726) | func (t *http2Client) GracefulClose() { method Write (line 745) | func (t *http2Client) Write(s *Stream, hdr, data []byte, opts *Options... method getStream (line 769) | func (t *http2Client) getStream(f http2.Frame) *Stream { method adjustWindow (line 779) | func (t *http2Client) adjustWindow(s *Stream, n uint32) { method updateFlowControl (line 788) | func (t *http2Client) updateFlowControl(n uint32) { method updateWindow (line 812) | func (t *http2Client) updateWindow(s *Stream, n uint32) { method handleData (line 818) | func (t *http2Client) handleData(f *grpcframe.DataFrame) { method handleRSTStream (line 885) | func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) { method handleSettings (line 915) | func (t *http2Client) handleSettings(f *grpcframe.SettingsFrame, isFir... method handlePing (line 964) | func (t *http2Client) handlePing(f *http2.PingFrame) { method handleGoAway (line 977) | func (t *http2Client) handleGoAway(f *grpcframe.GoAwayFrame) { method setGoAwayReason (line 1060) | func (t *http2Client) setGoAwayReason(f *grpcframe.GoAwayFrame) { method GetGoAwayReason (line 1070) | func (t *http2Client) GetGoAwayReason() GoAwayReason { method handleWindowUpdate (line 1076) | func (t *http2Client) handleWindowUpdate(f *http2.WindowUpdateFrame) { method operateHeaders (line 1084) | func (t *http2Client) operateHeaders(frame *grpcframe.MetaHeadersFrame) { method reader (line 1146) | func (t *http2Client) reader() { method keepalive (line 1231) | func (t *http2Client) keepalive() { method Error (line 1306) | func (t *http2Client) Error() <-chan struct{} { method GoAway (line 1310) | func (t *http2Client) GoAway() <-chan struct{} { method RemoteAddr (line 1314) | func (t *http2Client) RemoteAddr() net.Addr { return t.remoteAddr } method LocalAddr (line 1315) | func (t *http2Client) LocalAddr() net.Addr { return t.localAddr } method IsActive (line 1318) | func (t *http2Client) IsActive() bool { method Dump (line 1324) | func (t *http2Client) Dump() interface{} { method getOutFlowWindowAndMaxConcurrentStreams (line 1375) | func (t *http2Client) getOutFlowWindowAndMaxConcurrentStreams() (int64... function newHTTP2Client (line 130) | func newHTTP2Client(ctx context.Context, conn net.Conn, opts ConnectOpti... type closeStreamTask (line 296) | type closeStreamTask struct method Tick (line 301) | func (task *closeStreamTask) Tick() { type clientTransportDump (line 323) | type clientTransportDump struct type streamDump (line 331) | type streamDump struct type preAllocatedStreamFields (line 340) | type preAllocatedStreamFields struct function fillStreamFields (line 350) | func fillStreamFields(s *Stream) { function preallocateForStream (line 365) | func preallocateForStream() { function allocateStreamFields (line 376) | func allocateStreamFields() preAllocatedStreamFields { function minTime (line 1223) | func minTime(a, b time.Duration) time.Duration { FILE: pkg/remote/trans/nphttp2/grpc/http2_server.go constant gracefulShutdownCode (line 56) | gracefulShutdownCode = http2.ErrCode(1000) constant gracefulShutdownMsg (line 57) | gracefulShutdownMsg = "graceful shutdown" function init (line 83) | func init() { type http2Server (line 88) | type http2Server struct method operateHeaders (line 312) | func (t *http2Server) operateHeaders(frame *grpcframe.MetaHeadersFrame... method HandleStreams (line 420) | func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx fun... method getStream (line 480) | func (t *http2Server) getStream(f http2.Frame) (*Stream, bool) { method adjustWindow (line 498) | func (t *http2Server) adjustWindow(s *Stream, n uint32) { method updateFlowControl (line 507) | func (t *http2Server) updateFlowControl(n uint32) { method updateWindow (line 531) | func (t *http2Server) updateWindow(s *Stream, n uint32) { method handleData (line 540) | func (t *http2Server) handleData(f *grpcframe.DataFrame) { method handleRSTStream (line 604) | func (t *http2Server) handleRSTStream(f *http2.RSTStreamFrame) { method handleSettings (line 623) | func (t *http2Server) handleSettings(f *grpcframe.SettingsFrame) { method handlePing (line 656) | func (t *http2Server) handlePing(f *http2.PingFrame) { method handleWindowUpdate (line 710) | func (t *http2Server) handleWindowUpdate(f *http2.WindowUpdateFrame) { method checkForHeaderListSize (line 730) | func (t *http2Server) checkForHeaderListSize(it interface{}) bool { method WriteHeader (line 746) | func (t *http2Server) WriteHeader(s *Stream, md metadata.MD) error { method setResetPingStrikes (line 769) | func (t *http2Server) setResetPingStrikes() { method writeHeaderLocked (line 775) | func (t *http2Server) writeHeaderLocked(s *Stream) error { method WriteStatus (line 806) | func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { method Write (line 871) | func (t *http2Server) Write(s *Stream, hdr, data []byte, opts *Options... method keepalive (line 901) | func (t *http2Server) keepalive() { method Close (line 991) | func (t *http2Server) Close() error { method closeLoopyWriter (line 1026) | func (t *http2Server) closeLoopyWriter(err error) { method rstActiveStreams (line 1035) | func (t *http2Server) rstActiveStreams(streams map[uint32]*Stream, can... method closeWithErr (line 1059) | func (t *http2Server) closeWithErr(reason error) error { method deleteStream (line 1082) | func (t *http2Server) deleteStream(s *Stream, eosReceived bool) { method finishStream (line 1094) | func (t *http2Server) finishStream(s *Stream, rst bool, rstCode http2.... method closeStream (line 1114) | func (t *http2Server) closeStream(s *Stream, err error, rst bool, rstC... method RemoteAddr (line 1130) | func (t *http2Server) RemoteAddr() net.Addr { method LocalAddr (line 1134) | func (t *http2Server) LocalAddr() net.Addr { method Drain (line 1138) | func (t *http2Server) Drain() { method drain (line 1142) | func (t *http2Server) drain(code http2.ErrCode, debugData []byte) { method outgoingGoAwayHandler (line 1159) | func (t *http2Server) outgoingGoAwayHandler(g *goAway) (bool, error) { function newHTTP2Server (line 145) | func newHTTP2Server(ctx context.Context, conn net.Conn, config *ServerCo... constant maxPingStrikes (line 652) | maxPingStrikes = 2 constant defaultPingTimeout (line 653) | defaultPingTimeout = 2 * time.Hour function appendHeaderFieldsFromMD (line 717) | func appendHeaderFieldsFromMD(headerFields []hpack.HeaderField, md metad... FILE: pkg/remote/trans/nphttp2/grpc/http_util.go constant http2MaxFrameLen (line 49) | http2MaxFrameLen = 16384 constant http2InitHeaderTableSize (line 51) | http2InitHeaderTableSize = 4096 constant baseContentType (line 57) | baseContentType = "application/grpc" type parsedHeaderData (line 110) | type parsedHeaderData struct type decodeState (line 151) | type decodeState struct method status (line 237) | func (d *decodeState) status() *status.Status { method bizStatusErr (line 245) | func (d *decodeState) bizStatusErr() kerrors.BizStatusErrorIface { method decodeHeader (line 293) | func (d *decodeState) decodeHeader(frame *grpcframe.MetaHeadersFrame) ... method constructHTTPErrMsg (line 346) | func (d *decodeState) constructHTTPErrMsg() string { method addMetadata (line 364) | func (d *decodeState) addMetadata(k, v string) { method processHeaderField (line 371) | func (d *decodeState) processHeaderField(f hpack.HeaderField) { function isReservedHeader (line 163) | func isReservedHeader(hdr string) bool { function isWhitelistedHeader (line 188) | func isWhitelistedHeader(hdr string) bool { function contentSubtype (line 210) | func contentSubtype(contentType string) (string, bool) { function contentType (line 230) | func contentType(contentSubtype string) string { function safeCastInt32 (line 257) | func safeCastInt32(n int) int32 { constant binHdrSuffix (line 264) | binHdrSuffix = "-bin" function encodeBinHeader (line 266) | func encodeBinHeader(v []byte) string { function decodeBinHeader (line 270) | func decodeBinHeader(v string) ([]byte, error) { function encodeMetadataHeader (line 278) | func encodeMetadataHeader(k, v string) string { function decodeMetadataHeader (line 285) | func decodeMetadataHeader(k, v string) (string, error) { type timeoutUnit (line 469) | type timeoutUnit constant hour (line 472) | hour timeoutUnit = 'H' constant minute (line 473) | minute timeoutUnit = 'M' constant second (line 474) | second timeoutUnit = 'S' constant millisecond (line 475) | millisecond timeoutUnit = 'm' constant microsecond (line 476) | microsecond timeoutUnit = 'u' constant nanosecond (line 477) | nanosecond timeoutUnit = 'n' function timeoutUnitToDuration (line 480) | func timeoutUnitToDuration(u timeoutUnit) (d time.Duration, ok bool) { constant maxTimeoutValue (line 499) | maxTimeoutValue int64 = 100000000 - 1 function div (line 503) | func div(d, r time.Duration) int64 { function encodeTimeout (line 511) | func encodeTimeout(t time.Duration) string { function decodeTimeout (line 534) | func decodeTimeout(s string) (time.Duration, error) { constant spaceByte (line 561) | spaceByte = ' ' constant tildeByte (line 562) | tildeByte = '~' constant percentByte (line 563) | percentByte = '%' function encodeGrpcMessage (line 573) | func encodeGrpcMessage(msg string) string { function encodeGrpcMessageUnchecked (line 587) | func encodeGrpcMessageUnchecked(msg string) string { function decodeGrpcMessage (line 614) | func decodeGrpcMessage(msg string) string { function decodeGrpcMessageUnchecked (line 627) | func decodeGrpcMessageUnchecked(msg string) string { FILE: pkg/remote/trans/nphttp2/grpc/http_util_test.go function TestEncoding (line 29) | func TestEncoding(t *testing.T) { function TestEncodeTimeout (line 48) | func TestEncodeTimeout(t *testing.T) { function TestTimeUnit (line 119) | func TestTimeUnit(t *testing.T) { function TestBufferWriter (line 148) | func TestBufferWriter(t *testing.T) { function TestBufferPool (line 447) | func TestBufferPool(t *testing.T) { function TestRecvBufferReader (line 453) | func TestRecvBufferReader(t *testing.T) { function TestConnectionError (line 484) | func TestConnectionError(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/keepalive.go type ClientKeepalive (line 33) | type ClientKeepalive struct type ServerKeepalive (line 50) | type ServerKeepalive struct type EnforcementPolicy (line 77) | type EnforcementPolicy struct FILE: pkg/remote/trans/nphttp2/grpc/keepalive_test.go constant defaultTestTimeout (line 37) | defaultTestTimeout = 10 * time.Second function TestMaxConnectionIdle (line 42) | func TestMaxConnectionIdle(t *testing.T) { function TestMaxConnectionIdleBusyClient (line 80) | func TestMaxConnectionIdleBusyClient(t *testing.T) { function TestKeepaliveServerClosesUnresponsiveClient (line 156) | func TestKeepaliveServerClosesUnresponsiveClient(t *testing.T) { function TestKeepaliveServerWithResponsiveClient (line 213) | func TestKeepaliveServerWithResponsiveClient(t *testing.T) { function TestKeepaliveClientClosesUnresponsiveServer (line 249) | func TestKeepaliveClientClosesUnresponsiveServer(t *testing.T) { function TestKeepaliveClientOpenWithUnresponsiveServer (line 285) | func TestKeepaliveClientOpenWithUnresponsiveServer(t *testing.T) { function TestKeepaliveClientClosesWithActiveStreams (line 318) | func TestKeepaliveClientClosesWithActiveStreams(t *testing.T) { function TestKeepaliveClientStaysHealthyWithResponsiveServer (line 356) | func TestKeepaliveClientStaysHealthyWithResponsiveServer(t *testing.T) { function TestKeepaliveClientFrequency (line 387) | func TestKeepaliveClientFrequency(t *testing.T) { function TestKeepaliveServerEnforcementWithAbusiveClientNoRPC (line 432) | func TestKeepaliveServerEnforcementWithAbusiveClientNoRPC(t *testing.T) { function TestKeepaliveServerEnforcementWithAbusiveClientWithRPC (line 476) | func TestKeepaliveServerEnforcementWithAbusiveClientWithRPC(t *testing.T) { function TestKeepaliveServerEnforcementWithObeyingClientNoRPC (line 523) | func TestKeepaliveServerEnforcementWithObeyingClientNoRPC(t *testing.T) { function TestKeepaliveServerEnforcementWithObeyingClientWithRPC (line 559) | func TestKeepaliveServerEnforcementWithObeyingClientWithRPC(t *testing.T) { function TestKeepaliveServerEnforcementWithDormantKeepaliveOnClient (line 599) | func TestKeepaliveServerEnforcementWithDormantKeepaliveOnClient(t *testi... FILE: pkg/remote/trans/nphttp2/grpc/mocks_test.go function newMockNpConn (line 30) | func newMockNpConn(address string) *mockNetpollConn { type mockNetpollConn (line 46) | type mockNetpollConn struct method Reader (line 50) | func (m *mockNetpollConn) Reader() netpoll.Reader { method Writer (line 54) | func (m *mockNetpollConn) Writer() netpoll.Writer { method IsActive (line 58) | func (m *mockNetpollConn) IsActive() bool { method SetReadTimeout (line 62) | func (m *mockNetpollConn) SetReadTimeout(timeout time.Duration) error { method SetWriteTimeout (line 66) | func (m *mockNetpollConn) SetWriteTimeout(timeout time.Duration) error { method SetIdleTimeout (line 70) | func (m *mockNetpollConn) SetIdleTimeout(timeout time.Duration) error { method SetOnRequest (line 74) | func (m *mockNetpollConn) SetOnRequest(on netpoll.OnRequest) error { method AddCloseCallback (line 78) | func (m *mockNetpollConn) AddCloseCallback(callback netpoll.CloseCallb... method WriteFrame (line 82) | func (m *mockNetpollConn) WriteFrame(hdr, data []byte) (n int, err err... method ReadFrame (line 86) | func (m *mockNetpollConn) ReadFrame() (hdr, data []byte, err error) { type mockConn (line 93) | type mockConn struct method Read (line 105) | func (m mockConn) Read(b []byte) (n int, err error) { method Write (line 113) | func (m mockConn) Write(b []byte) (n int, err error) { method Close (line 121) | func (m mockConn) Close() (e error) { method LocalAddr (line 129) | func (m mockConn) LocalAddr() (r net.Addr) { method RemoteAddr (line 137) | func (m mockConn) RemoteAddr() (r net.Addr) { method SetDeadline (line 145) | func (m mockConn) SetDeadline(t time.Time) (e error) { method SetReadDeadline (line 153) | func (m mockConn) SetReadDeadline(t time.Time) (e error) { method SetWriteDeadline (line 161) | func (m mockConn) SetWriteDeadline(t time.Time) (e error) { FILE: pkg/remote/trans/nphttp2/grpc/syscall/syscall_linux.go function GetCPUTime (line 37) | func GetCPUTime() int64 { function GetRusage (line 49) | func GetRusage() *Rusage { function CPUTimeDiff (line 57) | func CPUTimeDiff(first, latest *Rusage) (float64, float64) { function SetTCPUserTimeout (line 72) | func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error { function GetTCPUserTimeout (line 93) | func GetTCPUserTimeout(conn net.Conn) (opt int, err error) { FILE: pkg/remote/trans/nphttp2/grpc/syscall/syscall_nonlinux.go function log (line 38) | func log() { function GetCPUTime (line 46) | func GetCPUTime() int64 { type Rusage (line 52) | type Rusage struct function GetRusage (line 55) | func GetRusage() *Rusage { function CPUTimeDiff (line 62) | func CPUTimeDiff(first, latest *Rusage) (float64, float64) { function SetTCPUserTimeout (line 68) | func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error { function GetTCPUserTimeout (line 75) | func GetTCPUserTimeout(conn net.Conn) (int, error) { FILE: pkg/remote/trans/nphttp2/grpc/testutils/channel.go constant DefaultChanBufferSize (line 28) | DefaultChanBufferSize = 1 type Channel (line 31) | type Channel struct method Send (line 36) | func (c *Channel) Send(value interface{}) { method SendContext (line 42) | func (c *Channel) SendContext(ctx context.Context, value interface{}) ... method SendOrFail (line 53) | func (c *Channel) SendOrFail(value interface{}) bool { method ReceiveOrFail (line 64) | func (c *Channel) ReceiveOrFail() (interface{}, bool) { method Receive (line 75) | func (c *Channel) Receive(ctx context.Context) (interface{}, error) { method Replace (line 89) | func (c *Channel) Replace(value interface{}) { function NewChannel (line 100) | func NewChannel() *Channel { function NewChannelWithSize (line 105) | func NewChannelWithSize(bufSize int) *Channel { FILE: pkg/remote/trans/nphttp2/grpc/testutils/leakcheck/leakcheck.go function RegisterIgnoreGoroutine (line 53) | func RegisterIgnoreGoroutine(s string) { function ignore (line 57) | func ignore(g string) bool { function interestingGoroutines (line 82) | func interestingGoroutines() (gs []string) { type Errorfer (line 96) | type Errorfer interface function check (line 100) | func check(efer Errorfer, timeout time.Duration) { function Check (line 119) | func Check(efer Errorfer) { FILE: pkg/remote/trans/nphttp2/grpc/testutils/leakcheck/leakcheck_test.go type testErrorfer (line 30) | type testErrorfer struct method Errorf (line 35) | func (e *testErrorfer) Errorf(format string, args ...interface{}) { function TestCheck (line 40) | func TestCheck(t *testing.T) { function ignoredTestingLeak (line 57) | func ignoredTestingLeak(d time.Duration) { function TestCheckRegisterIgnore (line 61) | func TestCheckRegisterIgnore(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/testutils/status_equal.go function StatusErrEqual (line 31) | func StatusErrEqual(err1, err2 error) bool { FILE: pkg/remote/trans/nphttp2/grpc/testutils/status_equal_test.go function TestStatusErrEqual (line 42) | func TestStatusErrEqual(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/trace.go method handleStreamStartEvent (line 23) | func (t *http2Client) handleStreamStartEvent(st *Stream, event rpcinfo.S... method handleStreamRecvHeaderEvent (line 30) | func (t *http2Client) handleStreamRecvHeaderEvent(st *Stream, event rpci... method handleStreamFinishEvent (line 37) | func (t *http2Client) handleStreamFinishEvent(st *Stream, event rpcinfo.... FILE: pkg/remote/trans/nphttp2/grpc/trace_test.go constant normalUnaryMethod (line 33) | normalUnaryMethod = "normal_unary" constant normalClientStreamingMethod (line 34) | normalClientStreamingMethod = "normal_clientStreaming" constant normalServerStreamingMethod (line 35) | normalServerStreamingMethod = "normal_serverStreaming" constant normalBidiStreamingMethod (line 36) | normalBidiStreamingMethod = "normal_bidiStreaming" constant returnHandlerUnaryRecvHeaderTrailer (line 38) | returnHandlerUnaryRecvHeaderTrailer = "return_handler_unar... constant returnHandlerUnaryRecvTrailer (line 39) | returnHandlerUnaryRecvTrailer = "return_handler_unar... constant returnHandlerClientStreamingRecvHeaderDataTrailer (line 40) | returnHandlerClientStreamingRecvHeaderDataTrailer = "return_handler_clie... constant returnHandlerClientStreamingRecvHeaderTrailer (line 41) | returnHandlerClientStreamingRecvHeaderTrailer = "return_handler_clie... constant returnHandlerClientStreamingRecvTrailer (line 42) | returnHandlerClientStreamingRecvTrailer = "return_handler_clie... constant returnHandlerServerStreamingRecvHeaderDataTrailer (line 43) | returnHandlerServerStreamingRecvHeaderDataTrailer = "return_handler_serv... constant returnHandlerServerStreamingRecvHeaderTrailer (line 44) | returnHandlerServerStreamingRecvHeaderTrailer = "return_handler_serv... constant returnHandlerServerStreamingRecvTrailer (line 45) | returnHandlerServerStreamingRecvTrailer = "return_handler_serv... constant returnHandlerBidiStreamingRecvHeaderDataTrailer (line 46) | returnHandlerBidiStreamingRecvHeaderDataTrailer = "return_handler_bidi... constant returnHandlerBidiStreamingRecvHeaderTrailer (line 47) | returnHandlerBidiStreamingRecvHeaderTrailer = "return_handler_bidi... constant returnHandlerBidiStreamingRecvTrailer (line 48) | returnHandlerBidiStreamingRecvTrailer = "return_handler_bidi... constant cancelClientRecvNone (line 50) | cancelClientRecvNone = "cancel_client_recv_none" constant cancelClientRecvHeader (line 51) | cancelClientRecvHeader = "cancel_client_recv_header" constant cancelClientRecvHeaderData (line 52) | cancelClientRecvHeaderData = "cancel_client_recv_header_data" constant cancelServerRecvHeaderRst (line 53) | cancelServerRecvHeaderRst = "cancel_server_recv_header_rst" constant cancelServerRecvHeaderDataRst (line 54) | cancelServerRecvHeaderDataRst = "cancel_server_recv_header_data_rst" constant cancelServerRecvHeaderDataTrailerRst (line 55) | cancelServerRecvHeaderDataTrailerRst = "cancel_server_recv_header_data_t... type mockStreamTracer (line 58) | type mockStreamTracer struct method Start (line 64) | func (tracer *mockStreamTracer) Start(ctx context.Context) context.Con... method Finish (line 68) | func (tracer *mockStreamTracer) Finish(_ context.Context) {} method SetT (line 70) | func (tracer *mockStreamTracer) SetT(t *testing.T) { method HandleStreamStartEvent (line 76) | func (tracer *mockStreamTracer) HandleStreamStartEvent(_ context.Conte... method HandleStreamRecvEvent (line 82) | func (tracer *mockStreamTracer) HandleStreamRecvEvent(_ context.Contex... method HandleStreamSendEvent (line 88) | func (tracer *mockStreamTracer) HandleStreamSendEvent(_ context.Contex... method HandleStreamRecvHeaderEvent (line 94) | func (tracer *mockStreamTracer) HandleStreamRecvHeaderEvent(_ context.... method HandleStreamFinishEvent (line 100) | func (tracer *mockStreamTracer) HandleStreamFinishEvent(_ context.Cont... method Verify (line 106) | func (tracer *mockStreamTracer) Verify(expects ...stats.Event) { method Clean (line 116) | func (tracer *mockStreamTracer) Clean() { function Test_trace (line 122) | func Test_trace(t *testing.T) { FILE: pkg/remote/trans/nphttp2/grpc/transport.go type bufferPool (line 44) | type bufferPool struct method get (line 58) | func (p *bufferPool) get() *bytes.Buffer { method put (line 62) | func (p *bufferPool) put(b *bytes.Buffer) { function newBufferPool (line 48) | func newBufferPool() *bufferPool { type recvMsg (line 68) | type recvMsg struct type recvBuffer (line 82) | type recvBuffer struct method put (line 96) | func (b *recvBuffer) put(r recvMsg) { method load (line 117) | func (b *recvBuffer) load() { method get (line 134) | func (b *recvBuffer) get() <-chan recvMsg { function newRecvBuffer (line 89) | func newRecvBuffer() *recvBuffer { type recvBufferReader (line 140) | type recvBufferReader struct method Read (line 153) | func (r *recvBufferReader) Read(p []byte) (n int, err error) { method read (line 174) | func (r *recvBufferReader) read(p []byte) (n int, err error) { method readClient (line 183) | func (r *recvBufferReader) readClient(p []byte) (n int, err error) { method readAdditional (line 210) | func (r *recvBufferReader) readAdditional(m recvMsg, p []byte) (n int,... type streamState (line 225) | type streamState constant streamActive (line 228) | streamActive streamState = iota constant streamWriteDone (line 229) | streamWriteDone constant streamReadDone (line 230) | streamReadDone constant streamDone (line 231) | streamDone type Stream (line 235) | type Stream struct method isHeaderSent (line 299) | func (s *Stream) isHeaderSent() bool { method updateHeaderSent (line 305) | func (s *Stream) updateHeaderSent() bool { method swapState (line 309) | func (s *Stream) swapState(st streamState) streamState { method compareAndSwapState (line 313) | func (s *Stream) compareAndSwapState(oldState, newState streamState) b... method getState (line 317) | func (s *Stream) getState() streamState { method waitOnHeader (line 321) | func (s *Stream) waitOnHeader() { method RecvCompress (line 341) | func (s *Stream) RecvCompress() string { method SendCompress (line 348) | func (s *Stream) SendCompress() string { method SetSendCompress (line 354) | func (s *Stream) SetSendCompress(str string) { method Done (line 360) | func (s *Stream) Done() <-chan struct{} { method Header (line 372) | func (s *Stream) Header() (metadata.MD, error) { method tryGetHeader (line 388) | func (s *Stream) tryGetHeader() (metadata.MD, bool) { method getHeaderValid (line 401) | func (s *Stream) getHeaderValid() bool { method TrailersOnly (line 419) | func (s *Stream) TrailersOnly() bool { method Trailer (line 429) | func (s *Stream) Trailer() metadata.MD { method ContentSubtype (line 439) | func (s *Stream) ContentSubtype() string { method Context (line 444) | func (s *Stream) Context() context.Context { method Method (line 449) | func (s *Stream) Method() string { method Status (line 456) | func (s *Stream) Status() *status.Status { method SetBizStatusErr (line 460) | func (s *Stream) SetBizStatusErr(bizStatusErr kerrors.BizStatusErrorIf... method BizStatusErr (line 464) | func (s *Stream) BizStatusErr() kerrors.BizStatusErrorIface { method SetHeader (line 471) | func (s *Stream) SetHeader(md metadata.MD) error { method SendHeader (line 487) | func (s *Stream) SendHeader(md metadata.MD) error { method SetTrailer (line 494) | func (s *Stream) SetTrailer(md metadata.MD) error { method write (line 507) | func (s *Stream) write(m recvMsg) { method Read (line 512) | func (s *Stream) Read(p []byte) (n int, err error) { method getCloseStreamErr (line 521) | func (s *Stream) getCloseStreamErr() error { method BytesReceived (line 586) | func (s *Stream) BytesReceived() bool { method Unprocessed (line 592) | func (s *Stream) Unprocessed() bool { function StreamWrite (line 530) | func StreamWrite(s *Stream, buffer *bytes.Buffer) { function CreateStream (line 535) | func CreateStream(ctx context.Context, id uint32, requestRead func(i int... type transportReader (line 567) | type transportReader struct method Read (line 575) | func (t *transportReader) Read(p []byte) (n int, err error) { type transportState (line 597) | type transportState constant reachable (line 600) | reachable transportState = iota constant closing (line 601) | closing constant draining (line 602) | draining type ServerConfig (line 606) | type ServerConfig struct function DefaultServerConfig (line 619) | func DefaultServerConfig() *ServerConfig { type ConnectOptions (line 627) | type ConnectOptions struct function NewServerTransport (line 652) | func NewServerTransport(ctx context.Context, conn net.Conn, cfg *ServerC... function NewClientTransport (line 658) | func NewClientTransport(ctx context.Context, conn net.Conn, opts Connect... type Options (line 666) | type Options struct type CallHdr (line 673) | type CallHdr struct type IsActive (line 696) | type IsActive interface type ClientTransport (line 702) | type ClientTransport interface type ServerTransport (line 753) | type ServerTransport interface function connectionErrorf (line 783) | func connectionErrorf(temp bool, e error, format string, a ...interface{... function connectionErrorfWithIgnorable (line 792) | func connectionErrorfWithIgnorable(temp bool, e error, format string, a ... type ConnectionError (line 800) | type ConnectionError struct method Error (line 808) | func (e ConnectionError) Error() string { method Temporary (line 813) | func (e ConnectionError) Temporary() bool { method Origin (line 818) | func (e ConnectionError) Origin() error { method Code (line 829) | func (e ConnectionError) Code() int32 { method ignorable (line 833) | func (e ConnectionError) ignorable() bool { function isIgnorable (line 838) | func isIgnorable(rawErr error) bool { type GoAwayReason (line 865) | type GoAwayReason constant GoAwayInvalid (line 869) | GoAwayInvalid GoAwayReason = 0 constant GoAwayNoReason (line 871) | GoAwayNoReason GoAwayReason = 1 constant GoAwayTooManyPings (line 875) | GoAwayTooManyPings GoAwayReason = 2 function ContextErr (line 879) | func ContextErr(err error) error { function IsStreamDoneErr (line 894) | func IsStreamDoneErr(err error) bool { function TLSConfig (line 899) | func TLSConfig(tlsConfig *tls.Config) *tls.Config { constant alpnProtoStrH2 (line 914) | alpnProtoStrH2 = "h2" function tlsAppendH2ToALPNProtocols (line 916) | func tlsAppendH2ToALPNProtocols(ps []string) []string { FILE: pkg/remote/trans/nphttp2/grpc/transport_test.go type server (line 54) | type server struct method start (line 574) | func (s *server) start(t *testing.T, port int, serverConfig *ServerCon... method wait (line 712) | func (s *server) wait(t *testing.T, timeout time.Duration) { method stop (line 723) | func (s *server) stop() { method gracefulShutdown (line 738) | func (s *server) gracefulShutdown(finishCh chan struct{}) { method addr (line 769) | func (s *server) addr() string { function init (line 78) | func init() { type testStreamHandler (line 85) | type testStreamHandler struct method handleStreamAndNotify (line 109) | func (h *testStreamHandler) handleStreamAndNotify(s *Stream) { method handleStream (line 122) | func (h *testStreamHandler) handleStream(t *testing.T, s *Stream) { method handleStreamPingPong (line 145) | func (h *testStreamHandler) handleStreamPingPong(t *testing.T, s *Stre... method handleStreamMisbehave (line 172) | func (h *testStreamHandler) handleStreamMisbehave(t *testing.T, s *Str... method handleStreamEncodingRequiredStatus (line 203) | func (h *testStreamHandler) handleStreamEncodingRequiredStatus(t *test... method handleStreamInvalidHeaderField (line 208) | func (h *testStreamHandler) handleStreamInvalidHeaderField(t *testing.... method handleStreamDelayRead (line 222) | func (h *testStreamHandler) handleStreamDelayRead(t *testing.T, s *Str... method gracefulShutdown (line 307) | func (h *testStreamHandler) gracefulShutdown(t *testing.T, s *Stream) { method handleStreamCancel (line 325) | func (h *testStreamHandler) handleStreamCancel(t *testing.T, s *Stream) { method handleFullStreamingMode (line 379) | func (h *testStreamHandler) handleFullStreamingMode(t *testing.T, s *S... type hType (line 92) | type hType constant normal (line 95) | normal hType = iota constant suspended (line 96) | suspended constant notifyCall (line 97) | notifyCall constant misbehaved (line 98) | misbehaved constant encodingRequiredStatus (line 99) | encodingRequiredStatus constant invalidHeaderField (line 100) | invalidHeaderField constant delayRead (line 101) | delayRead constant pingpong (line 102) | pingpong constant fullStreamingMode (line 103) | fullStreamingMode constant gracefulShutdown (line 105) | gracefulShutdown constant cancel (line 106) | cancel function verifyCancelError (line 371) | func verifyCancelError(t *testing.T, err error) { function setUpServerOnly (line 776) | func setUpServerOnly(t *testing.T, port int, serverConfig *ServerConfig,... function setUp (line 783) | func setUp(t *testing.T, port int, maxStreams uint32, ht hType) (*server... function setUpWithOptions (line 787) | func setUpWithOptions(t *testing.T, port int, serverConfig *ServerConfig... function setUpWithNoPingServer (line 800) | func setUpWithNoPingServer(t *testing.T, copts ConnectOptions, connCh ch... function setUpWithOnGoAway (line 845) | func setUpWithOnGoAway(t *testing.T, port int, serverConfig *ServerConfi... function TestMain (line 858) | func TestMain(m *testing.M) { function TestInflightStreamClosing (line 868) | func TestInflightStreamClosing(t *testing.T) { function TestClientSendAndReceive (line 906) | func TestClientSendAndReceive(t *testing.T) { function TestClientErrorNotify (line 945) | func TestClientErrorNotify(t *testing.T) { function performOneRPC (line 957) | func performOneRPC(ct ClientTransport) { function TestClientMix (line 982) | func TestClientMix(t *testing.T) { function TestLargeMessage (line 998) | func TestLargeMessage(t *testing.T) { function TestLargeMessageWithDelayRead (line 1032) | func TestLargeMessageWithDelayRead(t *testing.T) { function TestLargeMessageSuspension (line 1191) | func TestLargeMessageSuspension(t *testing.T) { function TestMaxStreams (line 1223) | func TestMaxStreams(t *testing.T) { function TestServerContextCanceledOnClosedConnection (line 1316) | func TestServerContextCanceledOnClosedConnection(t *testing.T) { function TestClientConnDecoupledFromApplicationRead (line 1379) | func TestClientConnDecoupledFromApplicationRead(t *testing.T) { function TestServerConnDecoupledFromApplicationRead (line 1467) | func TestServerConnDecoupledFromApplicationRead(t *testing.T) { function TestServerWithMisbehavedClient (line 1536) | func TestServerWithMisbehavedClient(t *testing.T) { function TestEncodingRequiredStatus (line 1807) | func TestEncodingRequiredStatus(t *testing.T) { function TestInvalidHeaderField (line 1837) | func TestInvalidHeaderField(t *testing.T) { function TestGetClientStat (line 1858) | func TestGetClientStat(t *testing.T) { function TestHeaderChanClosedAfterReceivingAnInvalidHeader (line 1927) | func TestHeaderChanClosedAfterReceivingAnInvalidHeader(t *testing.T) { function TestIsReservedHeader (line 1946) | func TestIsReservedHeader(t *testing.T) { function TestContextErr (line 1971) | func TestContextErr(t *testing.T) { type windowSizeConfig (line 1988) | type windowSizeConfig struct function TestAccountCheckWindowSizeWithSmallWindow (line 2006) | func TestAccountCheckWindowSizeWithSmallWindow(t *testing.T) { function TestAccountCheckDynamicWindowSmallMessage (line 2017) | func TestAccountCheckDynamicWindowSmallMessage(t *testing.T) { function TestAccountCheckDynamicWindowLargeMessage (line 2021) | func TestAccountCheckDynamicWindowLargeMessage(t *testing.T) { function testFlowControlAccountCheck (line 2025) | func testFlowControlAccountCheck(t *testing.T, msgSize int, wc windowSiz... function waitWhileTrue (line 2146) | func waitWhileTrue(t *testing.T, condition func() (bool, error)) { function TestReadGivesSameErrorAfterAnyErrorOccurs (line 2172) | func TestReadGivesSameErrorAfterAnyErrorOccurs(t *testing.T) { function TestPingPong1B (line 2297) | func TestPingPong1B(t *testing.T) { function TestPingPong1KB (line 2301) | func TestPingPong1KB(t *testing.T) { function TestPingPong64KB (line 2305) | func TestPingPong64KB(t *testing.T) { function TestPingPong1MB (line 2309) | func TestPingPong1MB(t *testing.T) { function runPingPongTest (line 2314) | func runPingPongTest(t *testing.T, msgSize int) { type tableSizeLimit (line 2395) | type tableSizeLimit struct method add (line 2400) | func (t *tableSizeLimit) add(limit uint32) { method getLen (line 2406) | func (t *tableSizeLimit) getLen() int { method getIndex (line 2412) | func (t *tableSizeLimit) getIndex(i int) uint32 { function TestHeaderTblSize (line 2418) | func TestHeaderTblSize(t *testing.T) { function TestTLSConfig (line 2507) | func TestTLSConfig(t *testing.T) { function TestTlsAppendH2ToALPNProtocols (line 2516) | func TestTlsAppendH2ToALPNProtocols(t *testing.T) { function Test_isIgnorable (line 2525) | func Test_isIgnorable(t *testing.T) { function Test_closeStreamTask (line 2537) | func Test_closeStreamTask(t *testing.T) { function TestStreamGetHeaderValid (line 2562) | func TestStreamGetHeaderValid(t *testing.T) { FILE: pkg/remote/trans/nphttp2/meta_api.go function SetHeader (line 50) | func SetHeader(ctx context.Context, md metadata.MD) error { function SendHeader (line 69) | func SendHeader(ctx context.Context, md metadata.MD) error { function SetTrailer (line 86) | func SetTrailer(ctx context.Context, md metadata.MD) error { function serverTransportStreamFromContext (line 98) | func serverTransportStreamFromContext(ctx context.Context) streaming.Str... type headerKey (line 103) | type headerKey struct type trailerKey (line 104) | type trailerKey struct function GRPCHeader (line 108) | func GRPCHeader(ctx context.Context, md *metadata.MD) context.Context { function GRPCTrailer (line 113) | func GRPCTrailer(ctx context.Context, md *metadata.MD) context.Context { function GetHeaderMetadataFromCtx (line 118) | func GetHeaderMetadataFromCtx(ctx context.Context) *metadata.MD { function GetTrailerMetadataFromCtx (line 127) | func GetTrailerMetadataFromCtx(ctx context.Context) *metadata.MD { function unaryMetaHandleRecvHeaderEvent (line 140) | func unaryMetaHandleRecvHeaderEvent(ctx context.Context, ri rpcinfo.RPCI... function unaryMetaHandleFinishEvent (line 154) | func unaryMetaHandleFinishEvent(ctx context.Context, ri rpcinfo.RPCInfo,... function isUnary (line 170) | func isUnary(ri rpcinfo.RPCInfo) bool { FILE: pkg/remote/trans/nphttp2/meta_api_test.go function TestGetTrailerMetadataFromCtx (line 31) | func TestGetTrailerMetadataFromCtx(t *testing.T) { function TestGetHeaderMetadataFromCtx (line 44) | func TestGetHeaderMetadataFromCtx(t *testing.T) { function Test_unaryMetaTracer (line 57) | func Test_unaryMetaTracer(t *testing.T) { function verifyUnary (line 74) | func verifyUnary(t *testing.T, ctx context.Context, opt *remote.ClientOp... function verifyStreaming (line 125) | func verifyStreaming(t *testing.T, ctx context.Context, opt *remote.Clie... FILE: pkg/remote/trans/nphttp2/metadata/metadata.go function DecodeKeyValue (line 35) | func DecodeKeyValue(k, v string) (string, string, error) { type MD (line 41) | type MD method Len (line 94) | func (md MD) Len() int { method Copy (line 99) | func (md MD) Copy() MD { method Get (line 110) | func (md MD) Get(k string) []string { method Set (line 116) | func (md MD) Set(k string, vals ...string) { method Append (line 125) | func (md MD) Append(k string, vals ...string) { function New (line 55) | func New(m map[string]string) MD { function Pairs (line 77) | func Pairs(kv ...string) MD { function Join (line 136) | func Join(mds ...MD) MD { function AppendMD (line 151) | func AppendMD(md, other MD) MD { type mdIncomingKey (line 162) | type mdIncomingKey struct type mdOutgoingKey (line 163) | type mdOutgoingKey struct function NewIncomingContext (line 167) | func NewIncomingContext(ctx context.Context, md MD) context.Context { function NewOutgoingContext (line 174) | func NewOutgoingContext(ctx context.Context, md MD) context.Context { function AppendToOutgoingContext (line 181) | func AppendToOutgoingContext(ctx context.Context, kv ...string) context.... function FromIncomingContext (line 196) | func FromIncomingContext(ctx context.Context) (md MD, ok bool) { function FromOutgoingContextRaw (line 207) | func FromOutgoingContextRaw(ctx context.Context) (MD, [][]string, bool) { function FromOutgoingContext (line 219) | func FromOutgoingContext(ctx context.Context) (MD, bool) { type rawMD (line 233) | type rawMD struct FILE: pkg/remote/trans/nphttp2/metadata/metadata_test.go function TestDecodeKeyValue (line 27) | func TestDecodeKeyValue(t *testing.T) { function TestPairs (line 35) | func TestPairs(t *testing.T) { function TestMetadata (line 44) | func TestMetadata(t *testing.T) { function TestContext (line 74) | func TestContext(t *testing.T) { function TestAppendMD (line 95) | func TestAppendMD(t *testing.T) { FILE: pkg/remote/trans/nphttp2/mocks_test.go function newMockNpConn (line 47) | func newMockNpConn(address string) *mockNetpollConn { type mockFrame (line 97) | type mockFrame struct type mockNetpollConn (line 123) | type mockNetpollConn struct method mockReader (line 63) | func (mc *mockNetpollConn) mockReader(b []byte) (n int, err error) { method mockSettingFrame (line 108) | func (mc *mockNetpollConn) mockSettingFrame() { method mockMetaHeaderFrame (line 114) | func (mc *mockNetpollConn) mockMetaHeaderFrame() { method Reader (line 131) | func (m *mockNetpollConn) Reader() netpoll.Reader { method Writer (line 135) | func (m *mockNetpollConn) Writer() netpoll.Writer { method IsActive (line 139) | func (m *mockNetpollConn) IsActive() bool { method SetReadTimeout (line 143) | func (m *mockNetpollConn) SetReadTimeout(timeout time.Duration) error { method SetWriteTimeout (line 147) | func (m *mockNetpollConn) SetWriteTimeout(timeout time.Duration) error { method SetIdleTimeout (line 151) | func (m *mockNetpollConn) SetIdleTimeout(timeout time.Duration) error { method SetOnRequest (line 155) | func (m *mockNetpollConn) SetOnRequest(on netpoll.OnRequest) error { method AddCloseCallback (line 159) | func (m *mockNetpollConn) AddCloseCallback(callback netpoll.CloseCallb... method WriteFrame (line 163) | func (m *mockNetpollConn) WriteFrame(hdr, data []byte) (n int, err err... method ReadFrame (line 167) | func (m *mockNetpollConn) ReadFrame() (hdr, data []byte, err error) { type mockNetpollReader (line 174) | type mockNetpollReader struct method Next (line 178) | func (m *mockNetpollReader) Next(n int) (p []byte, err error) { method Peek (line 187) | func (m *mockNetpollReader) Peek(n int) (buf []byte, err error) ... method Skip (line 188) | func (m *mockNetpollReader) Skip(n int) (err error) ... method Until (line 189) | func (m *mockNetpollReader) Until(delim byte) (line []byte, err error)... method ReadString (line 190) | func (m *mockNetpollReader) ReadString(n int) (s string, err error) ... method ReadBinary (line 191) | func (m *mockNetpollReader) ReadBinary(n int) (p []byte, err error) ... method ReadByte (line 192) | func (m *mockNetpollReader) ReadByte() (b byte, err error) ... method Slice (line 193) | func (m *mockNetpollReader) Slice(n int) (r netpoll.Reader, err error)... method Release (line 194) | func (m *mockNetpollReader) Release() (err error) ... method Len (line 195) | func (m *mockNetpollReader) Len() (length int) ... type mockConn (line 200) | type mockConn struct method Read (line 212) | func (m mockConn) Read(b []byte) (n int, err error) { method Write (line 220) | func (m mockConn) Write(b []byte) (n int, err error) { method Close (line 228) | func (m mockConn) Close() (e error) { method LocalAddr (line 236) | func (m mockConn) LocalAddr() (r net.Addr) { method RemoteAddr (line 244) | func (m mockConn) RemoteAddr() (r net.Addr) { method SetDeadline (line 252) | func (m mockConn) SetDeadline(t time.Time) (e error) { method SetReadDeadline (line 260) | func (m mockConn) SetReadDeadline(t time.Time) (e error) { method SetWriteDeadline (line 268) | func (m mockConn) SetWriteDeadline(t time.Time) (e error) { constant defaultMockReadWriteBufferSize (line 280) | defaultMockReadWriteBufferSize = 16 function newMockConnPool (line 282) | func newMockConnPool(traceCtl *rpcinfo.TraceController) *connPool { function newMockConnOption (line 298) | func newMockConnOption() remote.ConnOption { function newMockServerOption (line 302) | func newMockServerOption() *remote.ServerOption { function newMockClientOption (line 331) | func newMockClientOption(ctl *rpcinfo.TraceController) *remote.ClientOpt... function newMockDialer (line 348) | func newMockDialer() *remote.SynthesizedDialer { function newMockDialerWithDialFunc (line 362) | func newMockDialerWithDialFunc(dialFunc func(network, address string, ti... function newMockCtxWithRPCInfo (line 368) | func newMockCtxWithRPCInfo(mode serviceinfo.StreamingMode) context.Conte... function newMockRPCInfo (line 372) | func newMockRPCInfo(mode serviceinfo.StreamingMode) rpcinfo.RPCInfo { function newMockNewMessage (line 386) | func newMockNewMessage() *mockmessage.MockMessage { function newMockServerTransport (line 399) | func newMockServerTransport(npConn *mockNetpollConn) (grpc.ServerTranspo... function mockStreamRecv (line 405) | func mockStreamRecv(s *grpc.Stream, data string) { function newMockStreamRecvHelloRequest (line 412) | func newMockStreamRecvHelloRequest(s *grpc.Stream) { constant _ (line 428) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 430) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HelloRequest (line 434) | type HelloRequest struct method Reset (line 442) | func (x *HelloRequest) Reset() { method String (line 451) | func (x *HelloRequest) String() string { method ProtoMessage (line 455) | func (*HelloRequest) ProtoMessage() {} method ProtoReflect (line 457) | func (x *HelloRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 470) | func (*HelloRequest) Descriptor() ([]byte, []int) { method GetName (line 474) | func (x *HelloRequest) GetName() string { type HelloReply (line 482) | type HelloReply struct method Reset (line 490) | func (x *HelloReply) Reset() { method String (line 499) | func (x *HelloReply) String() string { method ProtoMessage (line 503) | func (*HelloReply) ProtoMessage() {} method ProtoReflect (line 505) | func (x *HelloReply) ProtoReflect() protoreflect.Message { method Descriptor (line 518) | func (*HelloReply) Descriptor() ([]byte, []int) { method GetMessage (line 522) | func (x *HelloReply) GetMessage() string { function file_message_proto_rawDescGZIP (line 552) | func file_message_proto_rawDescGZIP() []byte { function init (line 577) | func init() { file_message_proto_init() } function file_message_proto_init (line 578) | func file_message_proto_init() { FILE: pkg/remote/trans/nphttp2/peer/peer.go type peerKey (line 24) | type peerKey struct type Peer (line 28) | type Peer struct function GRPCPeer (line 34) | func GRPCPeer(ctx context.Context, p *Peer) context.Context { function GetPeerFromContext (line 38) | func GetPeerFromContext(ctx context.Context) (peer *Peer, ok bool) { FILE: pkg/remote/trans/nphttp2/peer/peer_test.go function TestPeer (line 27) | func TestPeer(t *testing.T) { FILE: pkg/remote/trans/nphttp2/server_conn.go type serverConnKey (line 33) | type serverConnKey struct type serverConn (line 35) | type serverConn struct method ReadFrame (line 49) | func (c *serverConn) ReadFrame() (hdr, data []byte, err error) { method Read (line 75) | func (c *serverConn) Read(b []byte) (n int, err error) { method Write (line 80) | func (c *serverConn) Write(b []byte) (n int, err error) { method WriteFrame (line 87) | func (c *serverConn) WriteFrame(hdr, data []byte) (n int, err error) { method LocalAddr (line 93) | func (c *serverConn) LocalAddr() net.Addr { return c.tr... method RemoteAddr (line 94) | func (c *serverConn) RemoteAddr() net.Addr { return c.tr... method SetDeadline (line 95) | func (c *serverConn) SetDeadline(t time.Time) error { return nil } method SetReadDeadline (line 96) | func (c *serverConn) SetReadDeadline(t time.Time) error { return nil } method SetWriteDeadline (line 97) | func (c *serverConn) SetWriteDeadline(t time.Time) error { return nil } method Close (line 98) | func (c *serverConn) Close() error { function newServerConn (line 42) | func newServerConn(tr grpc.ServerTransport, s *grpc.Stream) *serverConn { function GetServerConn (line 66) | func GetServerConn(st streaming.Stream) (GRPCConn, error) { FILE: pkg/remote/trans/nphttp2/server_conn_test.go function TestServerConn (line 36) | func TestServerConn(t *testing.T) { type customStream (line 87) | type customStream struct method Context (line 92) | func (s *customStream) Context() context.Context { function TestGetServerConn (line 96) | func TestGetServerConn(t *testing.T) { FILE: pkg/remote/trans/nphttp2/server_handler.go type svrTransHandlerFactory (line 55) | type svrTransHandlerFactory struct method NewTransHandler (line 62) | func (f *svrTransHandlerFactory) NewTransHandler(opt *remote.ServerOpt... function NewSvrTransHandlerFactory (line 58) | func NewSvrTransHandlerFactory() remote.ServerTransHandlerFactory { function newSvrTransHandler (line 66) | func newSvrTransHandler(opt *remote.ServerOption) (*svrTransHandler, err... type svrTransHandler (line 77) | type svrTransHandler struct method ProtocolMatch (line 97) | func (t *svrTransHandler) ProtocolMatch(ctx context.Context, conn net.... method Write (line 115) | func (t *svrTransHandler) Write(ctx context.Context, conn net.Conn, ms... method Read (line 125) | func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, msg... method OnRead (line 134) | func (t *svrTransHandler) OnRead(ctx context.Context, conn net.Conn) e... method handleFunc (line 149) | func (t *svrTransHandler) handleFunc(s *grpcTransport.Stream, svrTrans... method OnMessage (line 334) | func (t *svrTransHandler) OnMessage(ctx context.Context, args, result ... method OnActive (line 358) | func (t *svrTransHandler) OnActive(ctx context.Context, conn net.Conn)... method OnInactive (line 388) | func (t *svrTransHandler) OnInactive(ctx context.Context, conn net.Con... method OnError (line 398) | func (t *svrTransHandler) OnError(ctx context.Context, err error, conn... method SetInvokeHandleFunc (line 407) | func (t *svrTransHandler) SetInvokeHandleFunc(inkHdlFunc endpoint.Endp... method SetPipeline (line 411) | func (t *svrTransHandler) SetPipeline(p *remote.TransPipeline) { method GracefulShutdown (line 414) | func (t *svrTransHandler) GracefulShutdown(ctx context.Context) error { method startTracer (line 472) | func (t *svrTransHandler) startTracer(ctx context.Context, ri rpcinfo.... method finishTracer (line 478) | func (t *svrTransHandler) finishTracer(ctx context.Context, ri rpcinfo... function invokeStreamUnaryHandler (line 307) | func invokeStreamUnaryHandler(ctx context.Context, st streaming.ServerSt... function getPayloadCodecFromContentType (line 324) | func getPayloadCodecFromContentType(ct string) serviceinfo.PayloadCodec { type svrTransKey (line 338) | type svrTransKey constant ctxKeySvrTransport (line 341) | ctxKeySvrTransport svrTransKey = 1 constant defaultGraceTime (line 343) | defaultGraceTime time.Duration = 5 * time.Second constant defaultMaxPollTime (line 346) | defaultMaxPollTime = 50 * time.Millisecond type SvrTrans (line 349) | type SvrTrans struct function parseGraceAndPollTime (line 456) | func parseGraceAndPollTime(ctx context.Context) (graceTime, pollTime tim... FILE: pkg/remote/trans/nphttp2/server_handler_test.go type mockMetaHandler (line 48) | type mockMetaHandler struct method OnConnectStream (line 52) | func (m mockMetaHandler) OnConnectStream(ctx context.Context) (context... method OnReadStream (line 56) | func (m mockMetaHandler) OnReadStream(ctx context.Context) (context.Co... function TestServerHandler (line 60) | func TestServerHandler(t *testing.T) { type mockStream (line 158) | type mockStream struct method RecvMsg (line 164) | func (s *mockStream) RecvMsg(ctx context.Context, m interface{}) error { method SendMsg (line 168) | func (s *mockStream) SendMsg(ctx context.Context, m interface{}) error { function Test_invokeStreamUnaryHandler (line 172) | func Test_invokeStreamUnaryHandler(t *testing.T) { function TestSvrTransHandlerProtocolMatch (line 322) | func TestSvrTransHandlerProtocolMatch(t *testing.T) { function Test_parseGraceAndPollTime (line 354) | func Test_parseGraceAndPollTime(t *testing.T) { function Test_RPCInfoReuse (line 377) | func Test_RPCInfoReuse(t *testing.T) { FILE: pkg/remote/trans/nphttp2/status/mock_test.go constant _ (line 29) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 31) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type MockReq (line 34) | type MockReq struct method Reset (line 44) | func (x *MockReq) Reset() { method String (line 53) | func (x *MockReq) String() string { method ProtoMessage (line 57) | func (*MockReq) ProtoMessage() {} method ProtoReflect (line 59) | func (x *MockReq) ProtoReflect() protoreflect.Message { method Descriptor (line 72) | func (*MockReq) Descriptor() ([]byte, []int) { method GetMsg (line 76) | func (x *MockReq) GetMsg() string { method GetStrMap (line 83) | func (x *MockReq) GetStrMap() map[string]string { method GetStrList (line 90) | func (x *MockReq) GetStrList() []string { function file_test_proto_rawDescGZIP (line 123) | func file_test_proto_rawDescGZIP() []byte { function init (line 147) | func init() { file_test_proto_init() } function file_test_proto_init (line 148) | func file_test_proto_init() { FILE: pkg/remote/trans/nphttp2/status/status.go type Iface (line 44) | type Iface interface type Status (line 50) | type Status struct method Code (line 85) | func (s *Status) Code() codes.Code { method Message (line 93) | func (s *Status) Message() string { method AppendMessage (line 101) | func (s *Status) AppendMessage(extraMsg string) *Status { method Proto (line 110) | func (s *Status) Proto() *spb.Status { method Err (line 118) | func (s *Status) Err() error { method WithDetails (line 127) | func (s *Status) WithDetails(details ...proto.Message) (*Status, error) { method Details (line 145) | func (s *Status) Details() []interface{} { function New (line 55) | func New(c codes.Code, msg string) *Status { function Newf (line 60) | func Newf(c codes.Code, format string, a ...interface{}) *Status { function ErrorProto (line 65) | func ErrorProto(s *spb.Status) error { function FromProto (line 70) | func FromProto(s *spb.Status) *Status { function Err (line 75) | func Err(c codes.Code, msg string) error { function Errorf (line 80) | func Errorf(c codes.Code, format string, a ...interface{}) error { type Error (line 163) | type Error struct method Error (line 167) | func (e *Error) Error() string { method GRPCStatus (line 172) | func (e *Error) GRPCStatus() *Status { method Is (line 178) | func (e *Error) Is(target error) bool { function FromError (line 189) | func FromError(err error) (s *Status, ok bool) { function Convert (line 202) | func Convert(err error) *Status { function Code (line 209) | func Code(err error) codes.Code { function FromContextError (line 224) | func FromContextError(err error) *Status { FILE: pkg/remote/trans/nphttp2/status/status_test.go function TestStatus (line 30) | func TestStatus(t *testing.T) { function TestError (line 68) | func TestError(t *testing.T) { function TestFromContextError (line 86) | func TestFromContextError(t *testing.T) { FILE: pkg/remote/trans/nphttp2/stream.go type grpcServerStream (line 31) | type grpcServerStream struct method Context (line 64) | func (s *grpcServerStream) Context() context.Context { method Trailer (line 68) | func (s *grpcServerStream) Trailer() metadata.MD { method Header (line 72) | func (s *grpcServerStream) Header() (metadata.MD, error) { method SendHeader (line 77) | func (s *grpcServerStream) SendHeader(md metadata.MD) error { method SetHeader (line 82) | func (s *grpcServerStream) SetHeader(md metadata.MD) error { method SetTrailer (line 87) | func (s *grpcServerStream) SetTrailer(md metadata.MD) { method RecvMsg (line 91) | func (s *grpcServerStream) RecvMsg(m interface{}) error { method SendMsg (line 95) | func (s *grpcServerStream) SendMsg(m interface{}) error { method Close (line 99) | func (s *grpcServerStream) Close() error { type serverStream (line 35) | type serverStream struct method GetGRPCStream (line 46) | func (s *serverStream) GetGRPCStream() streaming.Stream { method SetHeader (line 103) | func (s *serverStream) SetHeader(hd streaming.Header) error { method SendHeader (line 107) | func (s *serverStream) SendHeader(hd streaming.Header) error { method SetTrailer (line 111) | func (s *serverStream) SetTrailer(tl streaming.Trailer) error { method RecvMsg (line 119) | func (s *serverStream) RecvMsg(ctx context.Context, m interface{}) err... method SendMsg (line 131) | func (s *serverStream) SendMsg(ctx context.Context, m interface{}) err... function newServerStream (line 51) | func newServerStream(ctx context.Context, conn *serverConn, handler remo... type grpcClientStream (line 141) | type grpcClientStream struct method Context (line 176) | func (s *grpcClientStream) Context() context.Context { method Trailer (line 181) | func (s *grpcClientStream) Trailer() metadata.MD { method Header (line 186) | func (s *grpcClientStream) Header() (metadata.MD, error) { method Close (line 190) | func (s *grpcClientStream) Close() error { method SendHeader (line 194) | func (s *grpcClientStream) SendHeader(md metadata.MD) error { method SetHeader (line 198) | func (s *grpcClientStream) SetHeader(md metadata.MD) error { method SetTrailer (line 202) | func (s *grpcClientStream) SetTrailer(md metadata.MD) { method RecvMsg (line 206) | func (s *grpcClientStream) RecvMsg(m interface{}) error { method SendMsg (line 210) | func (s *grpcClientStream) SendMsg(m interface{}) error { type clientStream (line 145) | type clientStream struct method GetGRPCStream (line 157) | func (s *clientStream) GetGRPCStream() streaming.Stream { method Header (line 214) | func (s *clientStream) Header() (streaming.Header, error) { method Trailer (line 222) | func (s *clientStream) Trailer() (streaming.Trailer, error) { method RecvMsg (line 229) | func (s *clientStream) RecvMsg(ctx context.Context, m interface{}) err... method SendMsg (line 241) | func (s *clientStream) SendMsg(ctx context.Context, m interface{}) err... method CloseSend (line 251) | func (s *clientStream) CloseSend(ctx context.Context) error { method Context (line 255) | func (s *clientStream) Context() context.Context { method CancelWithErr (line 259) | func (s *clientStream) CancelWithErr(err error) { function NewClientStream (line 162) | func NewClientStream(ctx context.Context, svcInfo *serviceinfo.ServiceIn... function streamingHeaderToHTTP2MD (line 263) | func streamingHeaderToHTTP2MD(header streaming.Header) metadata.MD { function streamingTrailerToHTTP2MD (line 271) | func streamingTrailerToHTTP2MD(trailer streaming.Trailer) metadata.MD { function HandleStreamingMetadataMultipleValues (line 288) | func HandleStreamingMetadataMultipleValues(hd func(k string, v []string)... function http2MDToStreamingHeader (line 292) | func http2MDToStreamingHeader(md metadata.MD) (streaming.Header, error) { function http2MDToStreamingTrailer (line 307) | func http2MDToStreamingTrailer(md metadata.MD) (streaming.Trailer, error) { FILE: pkg/remote/trans/nphttp2/stream_test.go function TestStream (line 28) | func TestStream(t *testing.T) { FILE: pkg/remote/trans/ttstream/client_handler.go function NewCliTransHandlerFactory (line 34) | func NewCliTransHandlerFactory(opts ...ClientHandlerOption) remote.Clien... type clientTransHandler (line 43) | type clientTransHandler struct method NewStream (line 51) | func (c clientTransHandler) NewStream(ctx context.Context, ri rpcinfo.... FILE: pkg/remote/trans/ttstream/client_handler_option.go type ClientHandlerOption (line 22) | type ClientHandlerOption function WithClientMetaFrameHandler (line 28) | func WithClientMetaFrameHandler(handler MetaFrameHandler) ClientHandlerO... function WithClientHeaderFrameHandler (line 35) | func WithClientHeaderFrameHandler(handler HeaderFrameWriteHandler) Clien... function WithClientLongConnPool (line 42) | func WithClientLongConnPool(config LongConnConfig) ClientHandlerOption { function WithClientShortConnPool (line 49) | func WithClientShortConnPool() ClientHandlerOption { function WithClientMuxConnPool (line 56) | func WithClientMuxConnPool(config MuxConnConfig) ClientHandlerOption { function WithClientTraceController (line 63) | func WithClientTraceController(traceCtl *rpcinfo.TraceController) Client... FILE: pkg/remote/trans/ttstream/client_stream_cleanup.go method Tick (line 19) | func (t *clientTransport) Tick() { FILE: pkg/remote/trans/ttstream/client_trans_pool.go type transPool (line 25) | type transPool interface FILE: pkg/remote/trans/ttstream/client_trans_pool_longconn.go type LongConnConfig (line 29) | type LongConnConfig struct function newLongConnTransPool (line 33) | func newLongConnTransPool(config LongConnConfig) transPool { type longConnTransPool (line 43) | type longConnTransPool struct method Get (line 48) | func (c *longConnTransPool) Get(network, addr string) (trans *clientTr... method Put (line 70) | func (c *longConnTransPool) Put(trans *clientTransport) { FILE: pkg/remote/trans/ttstream/client_trans_pool_muxconn.go type MuxConnConfig (line 37) | type MuxConnConfig struct type muxConnTransList (line 44) | type muxConnTransList struct method Close (line 63) | func (tl *muxConnTransList) Close() { method Get (line 75) | func (tl *muxConnTransList) Get(network, addr string) (*clientTranspor... function newMuxConnTransList (line 52) | func newMuxConnTransList(size int, pool *muxConnTransPool) *muxConnTrans... function newMuxConnTransPool (line 113) | func newMuxConnTransPool(config MuxConnConfig) transPool { type muxConnTransPool (line 119) | type muxConnTransPool struct method Get (line 126) | func (p *muxConnTransPool) Get(network, addr string) (trans *clientTra... method Put (line 135) | func (p *muxConnTransPool) Put(trans *clientTransport) { FILE: pkg/remote/trans/ttstream/client_trans_pool_shortconn.go function newShortConnTransPool (line 24) | func newShortConnTransPool() transPool { type shortConnTransPool (line 28) | type shortConnTransPool struct method Get (line 30) | func (p *shortConnTransPool) Get(network, addr string) (*clientTranspo... method Put (line 41) | func (p *shortConnTransPool) Put(trans *clientTransport) { FILE: pkg/remote/trans/ttstream/container/linklist.go type linkNode (line 19) | type linkNode struct method reset (line 24) | func (n *linkNode[ValueType]) reset() { type doubleLinkNode (line 30) | type doubleLinkNode struct method reset (line 36) | func (n *doubleLinkNode[ValueType]) reset() { FILE: pkg/remote/trans/ttstream/container/object_pool.go type Object (line 28) | type Object interface type objectItem (line 32) | type objectItem struct function NewObjectPool (line 37) | func NewObjectPool(idleTimeout time.Duration) *ObjectPool { type ObjectPool (line 44) | type ObjectPool struct method Push (line 52) | func (s *ObjectPool) Push(key string, o Object) { method Pop (line 66) | func (s *ObjectPool) Pop(key string) Object { method Close (line 80) | func (s *ObjectPool) Close() { method cleaning (line 84) | func (s *ObjectPool) cleaning() { FILE: pkg/remote/trans/ttstream/container/object_pool_test.go type testObject (line 32) | type testObject struct method Close (line 36) | func (o *testObject) Close(exception error) error { function TestObjectPool (line 43) | func TestObjectPool(t *testing.T) { function TestObjectPool_cleaningLazyInit (line 74) | func TestObjectPool_cleaningLazyInit(t *testing.T) { function cleaningGoroutineExist (line 101) | func cleaningGoroutineExist() bool { FILE: pkg/remote/trans/ttstream/container/pipe.go constant pipeStateActive (line 29) | pipeStateActive pipeState = 0 constant pipeStateClosed (line 30) | pipeStateClosed pipeState = 1 constant pipeStateCanceled (line 31) | pipeStateCanceled pipeState = 2 type CtxDoneCallback (line 43) | type CtxDoneCallback type Pipe (line 46) | type Pipe struct function NewPipe (line 53) | func NewPipe[Item any](opts ...PipeOption) *Pipe[Item] { method Read (line 67) | func (p *Pipe[Item]) Read(ctx context.Context, items []Item) (n int, err... method Write (line 110) | func (p *Pipe[Item]) Write(ctx context.Context, items ...Item) (err erro... method Close (line 122) | func (p *Pipe[Item]) Close() { method Cancel (line 132) | func (p *Pipe[Item]) Cancel() { type PipeOptions (line 142) | type PipeOptions struct type PipeOption (line 146) | type PipeOption function WithCtxDoneCallback (line 148) | func WithCtxDoneCallback(callback CtxDoneCallback) PipeOption { FILE: pkg/remote/trans/ttstream/container/pipe_test.go function TestPipeline (line 32) | func TestPipeline(t *testing.T) { function TestPipelineWriteCloseAndRead (line 71) | func TestPipelineWriteCloseAndRead(t *testing.T) { function TestPipelineCancelCallback (line 106) | func TestPipelineCancelCallback(t *testing.T) { function BenchmarkPipeline (line 147) | func BenchmarkPipeline(b *testing.B) { FILE: pkg/remote/trans/ttstream/container/queue.go function NewQueue (line 25) | func NewQueue[ValueType any]() *Queue[ValueType] { type Queue (line 30) | type Queue struct method lock (line 40) | func (q *Queue[ValueType]) lock() { method unlock (line 46) | func (q *Queue[ValueType]) unlock() { method Size (line 50) | func (q *Queue[ValueType]) Size() int { method Get (line 54) | func (q *Queue[ValueType]) Get() (val ValueType, ok bool) { method Add (line 97) | func (q *Queue[ValueType]) Add(val ValueType) { FILE: pkg/remote/trans/ttstream/container/queue_test.go function TestQueue (line 26) | func TestQueue(t *testing.T) { FILE: pkg/remote/trans/ttstream/container/stack.go function NewStack (line 23) | func NewStack[ValueType any]() *Stack[ValueType] { type Stack (line 27) | type Stack struct method Size (line 35) | func (s *Stack[ValueType]) Size() (size int) { method RangeDelete (line 43) | func (s *Stack[ValueType]) RangeDelete(checking func(v ValueType) (delet... method pop (line 81) | func (s *Stack[ValueType]) pop() (node *doubleLinkNode[ValueType]) { method Pop (line 99) | func (s *Stack[ValueType]) Pop() (value ValueType, ok bool) { method popBottom (line 113) | func (s *Stack[ValueType]) popBottom() (node *doubleLinkNode[ValueType]) { method PopBottom (line 131) | func (s *Stack[ValueType]) PopBottom() (value ValueType, ok bool) { method Push (line 145) | func (s *Stack[ValueType]) Push(value ValueType) { FILE: pkg/remote/trans/ttstream/container/stack_test.go function TestStack (line 26) | func TestStack(t *testing.T) { function TestStackOrder (line 52) | func TestStackOrder(t *testing.T) { function TestStackPopBottomOrder (line 70) | func TestStackPopBottomOrder(t *testing.T) { function TestStackRangeDelete (line 88) | func TestStackRangeDelete(t *testing.T) { FILE: pkg/remote/trans/ttstream/context.go type contextWithCancelReason (line 27) | type contextWithCancelReason struct method Err (line 34) | func (c *contextWithCancelReason) Err() error { method CancelWithReason (line 42) | func (c *contextWithCancelReason) CancelWithReason(reason error) { type cancelWithReason (line 49) | type cancelWithReason function newContextWithCancelReason (line 51) | func newContextWithCancelReason(ctx context.Context, cancel context.Canc... FILE: pkg/remote/trans/ttstream/exception.go function newStreamRecvTimeoutException (line 48) | func newStreamRecvTimeoutException(cfg streaming.TimeoutConfig) *Excepti... constant setSide (line 53) | setSide = 1 << iota constant setCancelPath (line 54) | setCancelPath constant setCause (line 55) | setCause type Exception (line 58) | type Exception struct method newBuilder (line 81) | func (e *Exception) newBuilder() *Exception { method Error (line 86) | func (e *Exception) Error() string { method withCause (line 114) | func (e *Exception) withCause(cause error) *Exception { method withCauseAndTypeId (line 122) | func (e *Exception) withCauseAndTypeId(cause error, typeId int32) *Exc... method isCauseSet (line 129) | func (e *Exception) isCauseSet() bool { method withSide (line 133) | func (e *Exception) withSide(side sideType) *Exception { method isSideSet (line 139) | func (e *Exception) isSideSet() bool { method setOrAppendCancelPath (line 143) | func (e *Exception) setOrAppendCancelPath(cancelPath string) *Exception { method isCancelPathSet (line 149) | func (e *Exception) isCancelPathSet() bool { method Is (line 153) | func (e *Exception) Is(target error) bool { method getMessage (line 160) | func (e *Exception) getMessage() string { method TypeId (line 167) | func (e *Exception) TypeId() int32 { function newException (line 75) | func newException(message string, parent error, typeId int32) *Exception { function appendCancelPath (line 172) | func appendCancelPath(oriCp, node string) string { function formatCancelPath (line 179) | func formatCancelPath(cancelPath string) string { FILE: pkg/remote/trans/ttstream/exception_test.go function TestErrors (line 33) | func TestErrors(t *testing.T) { function TestCommonParentKerror (line 53) | func TestCommonParentKerror(t *testing.T) { function TestGetTypeId (line 87) | func TestGetTypeId(t *testing.T) { function TestCanceledException (line 111) | func TestCanceledException(t *testing.T) { function Test_utilFuncs (line 174) | func Test_utilFuncs(t *testing.T) { FILE: pkg/remote/trans/ttstream/frame.go constant metaFrameType (line 39) | metaFrameType int32 = 1 constant headerFrameType (line 40) | headerFrameType int32 = 2 constant dataFrameType (line 41) | dataFrameType int32 = 3 constant trailerFrameType (line 42) | trailerFrameType int32 = 4 constant rstFrameType (line 43) | rstFrameType int32 = 5 type Frame (line 62) | type Frame struct method String (line 68) | func (f *Frame) String() string { function newFrame (line 72) | func newFrame(sframe streamFrame, typ int32, payload []byte) (fr *Frame) { function recycleFrame (line 85) | func recycleFrame(frame *Frame) { function EncodeFrame (line 93) | func EncodeFrame(ctx context.Context, writer bufiox.Writer, fr *Frame) (... function DecodeFrame (line 134) | func DecodeFrame(ctx context.Context, reader bufiox.Reader) (fr *Frame, ... function EncodePayload (line 192) | func EncodePayload(ctx context.Context, msg any) ([]byte, error) { function DecodePayload (line 229) | func DecodePayload(ctx context.Context, payload []byte, msg any) error { function EncodeException (line 254) | func EncodeException(ctx context.Context, method string, seq int32, ex e... function getThriftMessageTypeStr (line 268) | func getThriftMessageTypeStr(typ gopkgthrift.TMessageType) string { function decodeException (line 285) | func decodeException(buf []byte) (*gopkgthrift.ApplicationException, err... function encodeFrameAndFlush (line 303) | func encodeFrameAndFlush(ctx context.Context, writer bufiox.Writer, fr *... FILE: pkg/remote/trans/ttstream/frame_handler.go type HeaderFrameHandler (line 25) | type HeaderFrameHandler interface type HeaderFrameWriteHandler (line 30) | type HeaderFrameWriteHandler interface type HeaderFrameReadHandler (line 34) | type HeaderFrameReadHandler interface type MetaFrameHandler (line 38) | type MetaFrameHandler interface FILE: pkg/remote/trans/ttstream/frame_test.go function TestFrameCodec (line 29) | func TestFrameCodec(t *testing.T) { function TestFrameWithoutPayloadCodec (line 70) | func TestFrameWithoutPayloadCodec(t *testing.T) { function TestPayloadCodec (line 82) | func TestPayloadCodec(t *testing.T) { FILE: pkg/remote/trans/ttstream/metadata.go type IntHeader (line 33) | type IntHeader type ClientStreamMeta (line 38) | type ClientStreamMeta interface type ServerStreamMeta (line 45) | type ServerStreamMeta interface FILE: pkg/remote/trans/ttstream/mock_test.go type testRequest (line 28) | type testRequest struct method FastRead (line 33) | func (p *testRequest) FastRead(buf []byte) (int, error) { method FastWriteNocopy (line 37) | func (p *testRequest) FastWriteNocopy(buf []byte, binaryWriter thrift.... method BLength (line 42) | func (p *testRequest) BLength() int { method DeepCopy (line 46) | func (p *testRequest) DeepCopy(s interface{}) error { FILE: pkg/remote/trans/ttstream/server_handler.go type serverTransCtxKey (line 50) | type serverTransCtxKey struct type svrTransHandlerFactory (line 63) | type svrTransHandlerFactory struct method NewTransHandler (line 70) | func (f *svrTransHandlerFactory) NewTransHandler(opts *remote.ServerOp... function NewSvrTransHandlerFactory (line 66) | func NewSvrTransHandlerFactory() remote.ServerTransHandlerFactory { type svrTransHandler (line 88) | type svrTransHandler struct method SetInvokeHandleFunc (line 94) | func (t *svrTransHandler) SetInvokeHandleFunc(inkHdlFunc endpoint.Endp... method ProtocolMatch (line 98) | func (t *svrTransHandler) ProtocolMatch(ctx context.Context, conn net.... method OnActive (line 118) | func (t *svrTransHandler) OnActive(ctx context.Context, conn net.Conn)... method OnRead (line 130) | func (t *svrTransHandler) OnRead(ctx context.Context, conn net.Conn) (... method OnStream (line 168) | func (t *svrTransHandler) OnStream(ctx context.Context, conn net.Conn,... method Write (line 249) | func (t *svrTransHandler) Write(ctx context.Context, conn net.Conn, se... method Read (line 253) | func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, msg... method OnInactive (line 257) | func (t *svrTransHandler) OnInactive(ctx context.Context, conn net.Con... method OnError (line 260) | func (t *svrTransHandler) OnError(ctx context.Context, err error, conn... method OnStreamFinish (line 269) | func (t *svrTransHandler) OnStreamFinish(ctx context.Context, ss strea... method OnMessage (line 310) | func (t *svrTransHandler) OnMessage(ctx context.Context, args, result ... method SetPipeline (line 314) | func (t *svrTransHandler) SetPipeline(pipeline *remote.TransPipeline) { method startTracer (line 317) | func (t *svrTransHandler) startTracer(ctx context.Context, ri rpcinfo.... method finishTracer (line 323) | func (t *svrTransHandler) finishTracer(ctx context.Context, ri rpcinfo... type onDisConnectSetter (line 113) | type onDisConnectSetter interface FILE: pkg/remote/trans/ttstream/server_handler_option.go type ServerHandlerOption (line 20) | type ServerHandlerOption function WithServerHeaderFrameHandler (line 26) | func WithServerHeaderFrameHandler(handler HeaderFrameReadHandler) Server... FILE: pkg/remote/trans/ttstream/server_handler_test.go type mockNetpollConn (line 45) | type mockNetpollConn struct method Reader (line 51) | func (m *mockNetpollConn) Reader() netpoll.Reader { method Writer (line 55) | func (m *mockNetpollConn) Writer() netpoll.Writer { method IsActive (line 59) | func (m *mockNetpollConn) IsActive() bool { method SetReadTimeout (line 63) | func (m *mockNetpollConn) SetReadTimeout(timeout time.Duration) error { method SetWriteTimeout (line 67) | func (m *mockNetpollConn) SetWriteTimeout(timeout time.Duration) error { method SetIdleTimeout (line 71) | func (m *mockNetpollConn) SetIdleTimeout(timeout time.Duration) error { method SetOnRequest (line 75) | func (m *mockNetpollConn) SetOnRequest(on netpoll.OnRequest) error { method AddCloseCallback (line 79) | func (m *mockNetpollConn) AddCloseCallback(callback netpoll.CloseCallb... method WriteFrame (line 83) | func (m *mockNetpollConn) WriteFrame(hdr, data []byte) (n int, err err... method ReadFrame (line 87) | func (m *mockNetpollConn) ReadFrame() (hdr, data []byte, err error) { method SetOnDisconnect (line 91) | func (m *mockNetpollConn) SetOnDisconnect(onDisconnect netpoll.OnDisco... type mockTracer (line 95) | type mockTracer struct method Start (line 99) | func (m *mockTracer) Start(ctx context.Context) context.Context { method Finish (line 103) | func (m *mockTracer) Finish(ctx context.Context) { type mockHeaderFrameReadHandler (line 109) | type mockHeaderFrameReadHandler struct method OnReadStream (line 113) | func (m *mockHeaderFrameReadHandler) OnReadStream(ctx context.Context,... function TestOnRead (line 122) | func TestOnRead(t *testing.T) { FILE: pkg/remote/trans/ttstream/stream.go function newBasicStream (line 42) | func newBasicStream(ctx context.Context, writer streamWriter, smeta stre... type streamFrame (line 54) | type streamFrame struct constant streamSigNone (line 63) | streamSigNone int32 = 0 constant streamSigActive (line 64) | streamSigActive int32 = 1 constant streamSigInactive (line 65) | streamSigInactive int32 = -1 constant streamSigCancel (line 66) | streamSigCancel int32 = -2 constant streamStateActive (line 70) | streamStateActive int32 = 0 constant streamStateHalfCloseLocal (line 71) | streamStateHalfCloseLocal int32 = 1 constant streamStateHalfCloseRemote (line 72) | streamStateHalfCloseRemote int32 = 2 constant streamStateInactive (line 73) | streamStateInactive int32 = 3 type stream (line 77) | type stream struct method Service (line 90) | func (s *stream) Service() string { method Method (line 97) | func (s *stream) Method() string { method TransportProtocol (line 101) | func (s *stream) TransportProtocol() ktransport.Protocol { method SendMsg (line 109) | func (s *stream) SendMsg(ctx context.Context, msg any) (err error) { method RecvMsg (line 126) | func (s *stream) RecvMsg(ctx context.Context, data any) error { method RegisterCloseCallback (line 151) | func (s *stream) RegisterCloseCallback(cb func(error)) { method setRecvTimeoutConfig (line 155) | func (s *stream) setRecvTimeoutConfig(cfg rpcinfo.RPCConfig) { method runCloseCallback (line 175) | func (s *stream) runCloseCallback(exception error) { method writeFrame (line 184) | func (s *stream) writeFrame(ftype int32, header streaming.Header, trai... method sendTrailer (line 191) | func (s *stream) sendTrailer(exception error) (err error) { method sendRst (line 209) | func (s *stream) sendRst(exception error, cancelPath string) (err erro... method onReadDataFrame (line 227) | func (s *stream) onReadDataFrame(fr *Frame) (err error) { FILE: pkg/remote/trans/ttstream/stream_client.go function newClientStream (line 37) | func newClientStream(ctx context.Context, writer streamWriter, smeta str... type clientStream (line 58) | type clientStream struct method Header (line 74) | func (s *clientStream) Header() (streaming.Header, error) { method Trailer (line 89) | func (s *clientStream) Trailer() (streaming.Trailer, error) { method SendMsg (line 104) | func (s *clientStream) SendMsg(ctx context.Context, req any) error { method RecvMsg (line 115) | func (s *clientStream) RecvMsg(ctx context.Context, resp any) error { method CloseSend (line 120) | func (s *clientStream) CloseSend(ctx context.Context) error { method Context (line 127) | func (s *clientStream) Context() context.Context { method ctxDoneCallback (line 133) | func (s *clientStream) ctxDoneCallback(ctx context.Context) { method parseCtxErr (line 140) | func (s *clientStream) parseCtxErr(ctx context.Context) (finalEx *Exce... method close (line 173) | func (s *clientStream) close(exception error, sendRst bool, cancelPath... method closeSignalMeta (line 211) | func (s *clientStream) closeSignalMeta(trailer streaming.Trailer) { method setMetaFrameHandler (line 234) | func (s *clientStream) setMetaFrameHandler(metaHandler MetaFrameHandle... method setTraceController (line 238) | func (s *clientStream) setTraceController(traceCtl *rpcinfo.TraceContr... method handleStreamStartEvent (line 242) | func (s *clientStream) handleStreamStartEvent(event rpcinfo.StreamStar... method handleStreamRecvHeaderEvent (line 249) | func (s *clientStream) handleStreamRecvHeaderEvent(event rpcinfo.Strea... method handleStreamFinishEvent (line 256) | func (s *clientStream) handleStreamFinishEvent(event rpcinfo.StreamFin... method onReadMetaFrame (line 265) | func (s *clientStream) onReadMetaFrame(fr *Frame) error { method onReadHeaderFrame (line 272) | func (s *clientStream) onReadHeaderFrame(fr *Frame) error { method onReadTrailerFrame (line 286) | func (s *clientStream) onReadTrailerFrame(fr *Frame) error { method onReadRstFrame (line 317) | func (s *clientStream) onReadRstFrame(fr *Frame) (err error) { method cancelSignalMeta (line 353) | func (s *clientStream) cancelSignalMeta() { FILE: pkg/remote/trans/ttstream/stream_client_test.go function newTestClientStream (line 34) | func newTestClientStream(ctx context.Context) *clientStream { function Test_clientStreamStateChange (line 38) | func Test_clientStreamStateChange(t *testing.T) { function Test_clientStream_parseCtxErr (line 89) | func Test_clientStream_parseCtxErr(t *testing.T) { function Test_clientStream_SendMsg (line 191) | func Test_clientStream_SendMsg(t *testing.T) { FILE: pkg/remote/trans/ttstream/stream_reader.go type streamReader (line 29) | type streamReader struct method input (line 52) | func (s *streamReader) input(ctx context.Context, payload []byte) { method output (line 63) | func (s *streamReader) output(ctx context.Context) (payload []byte, er... method close (line 88) | func (s *streamReader) close(exception error) { type streamMsg (line 35) | type streamMsg struct function newStreamReader (line 40) | func newStreamReader() *streamReader { function newStreamReaderWithCtxDoneCallback (line 46) | func newStreamReaderWithCtxDoneCallback(callback container.CtxDoneCallba... FILE: pkg/remote/trans/ttstream/stream_reader_test.go function TestStreamReader (line 28) | func TestStreamReader(t *testing.T) { FILE: pkg/remote/trans/ttstream/stream_server.go function newServerStream (line 34) | func newServerStream(ctx context.Context, writer streamWriter, smeta str... type serverStream (line 50) | type serverStream struct method SetHeader (line 56) | func (s *serverStream) SetHeader(hd streaming.Header) error { method SendHeader (line 60) | func (s *serverStream) SendHeader(hd streaming.Header) error { method writeHeader (line 68) | func (s *serverStream) writeHeader(hd streaming.Header) error { method sendHeader (line 79) | func (s *serverStream) sendHeader() (err error) { method SetTrailer (line 89) | func (s *serverStream) SetTrailer(tl streaming.Trailer) error { method writeTrailer (line 94) | func (s *serverStream) writeTrailer(tl streaming.Trailer) (err error) { method RecvMsg (line 104) | func (s *serverStream) RecvMsg(ctx context.Context, req any) error { method SendMsg (line 109) | func (s *serverStream) SendMsg(ctx context.Context, res any) error { method CloseSend (line 123) | func (s *serverStream) CloseSend(exception error) error { method closeRecv (line 134) | func (s *serverStream) closeRecv(exception error) error { method close (line 141) | func (s *serverStream) close(exception *Exception) error { method onReadTrailerFrame (line 158) | func (s *serverStream) onReadTrailerFrame(fr *Frame) (err error) { method onReadRstFrame (line 181) | func (s *serverStream) onReadRstFrame(fr *Frame) (err error) { method closeTest (line 220) | func (s *serverStream) closeTest(exception error, cancelPath string) e... FILE: pkg/remote/trans/ttstream/stream_server_test.go function newTestServerStream (line 32) | func newTestServerStream() *serverStream { function newTestServerStreamWithStreamWriter (line 36) | func newTestServerStreamWithStreamWriter(w streamWriter) *serverStream { function Test_serverStreamStateChange (line 44) | func Test_serverStreamStateChange(t *testing.T) { function Test_serverStreamReimburseHeaderFrame (line 99) | func Test_serverStreamReimburseHeaderFrame(t *testing.T) { FILE: pkg/remote/trans/ttstream/stream_test.go function TestGenericStreaming (line 32) | func TestGenericStreaming(t *testing.T) { function TestStreamRecvTimeout (line 63) | func TestStreamRecvTimeout(t *testing.T) { function TestStreamRecvWithCancellation (line 85) | func TestStreamRecvWithCancellation(t *testing.T) { function TestSetRecvTimeoutConfig (line 113) | func TestSetRecvTimeoutConfig(t *testing.T) { FILE: pkg/remote/trans/ttstream/stream_writer.go type streamWriter (line 24) | type streamWriter interface FILE: pkg/remote/trans/ttstream/test_utils.go type mockStreamWriter (line 32) | type mockStreamWriter struct method WriteFrame (line 37) | func (m mockStreamWriter) WriteFrame(f *Frame) error { method CloseStream (line 44) | func (m mockStreamWriter) CloseStream(sid int32) error { function newTestConnectionPipe (line 51) | func newTestConnectionPipe(t *testing.T) (netpoll.Connection, netpoll.Co... function newTestStreamPipe (line 61) | func newTestStreamPipe(sinfo *serviceinfo.ServiceInfo, method string) (*... FILE: pkg/remote/trans/ttstream/trace_test.go type mockStreamTracer (line 33) | type mockStreamTracer struct method Start (line 46) | func (tracer *mockStreamTracer) Start(ctx context.Context) context.Con... method Finish (line 50) | func (tracer *mockStreamTracer) Finish(ctx context.Context) { method SetT (line 54) | func (tracer *mockStreamTracer) SetT(t *testing.T) { method HandleStreamStartEvent (line 60) | func (tracer *mockStreamTracer) HandleStreamStartEvent(_ context.Conte... method HandleStreamRecvEvent (line 66) | func (tracer *mockStreamTracer) HandleStreamRecvEvent(_ context.Contex... method HandleStreamSendEvent (line 72) | func (tracer *mockStreamTracer) HandleStreamSendEvent(_ context.Contex... method HandleStreamRecvHeaderEvent (line 78) | func (tracer *mockStreamTracer) HandleStreamRecvHeaderEvent(_ context.... method HandleStreamFinishEvent (line 84) | func (tracer *mockStreamTracer) HandleStreamFinishEvent(_ context.Cont... method Verify (line 90) | func (tracer *mockStreamTracer) Verify(expects ...stats.Event) { method Clean (line 100) | func (tracer *mockStreamTracer) Clean() { function newMockStreamTracer (line 40) | func newMockStreamTracer() *mockStreamTracer { function TestTrace_trace (line 108) | func TestTrace_trace(t *testing.T) { FILE: pkg/remote/trans/ttstream/transport.go type sideType (line 26) | type sideType constant clientSide (line 29) | clientSide sideType = 1 constant serverSide (line 30) | serverSide sideType = 2 constant streamCacheSize (line 32) | streamCacheSize = 32 constant frameCacheSize (line 33) | frameCacheSize = 256 constant connStateOpen (line 35) | connStateOpen = 0 constant connStateClosed (line 36) | connStateClosed = 1 function isIgnoreError (line 39) | func isIgnoreError(err error) bool { FILE: pkg/remote/trans/ttstream/transport_buffer.go function newReaderBuffer (line 38) | func newReaderBuffer(reader netpoll.Reader) (rb *readerBuffer) { type readerBuffer (line 49) | type readerBuffer struct method Next (line 54) | func (c *readerBuffer) Next(n int) (p []byte, err error) { method ReadBinary (line 60) | func (c *readerBuffer) ReadBinary(bs []byte) (n int, err error) { method Peek (line 71) | func (c *readerBuffer) Peek(n int) (buf []byte, err error) { method Skip (line 75) | func (c *readerBuffer) Skip(n int) (err error) { method ReadLen (line 84) | func (c *readerBuffer) ReadLen() (n int) { method Release (line 88) | func (c *readerBuffer) Release(e error) (err error) { function newWriterBuffer (line 93) | func newWriterBuffer(writer netpoll.Writer) (wb *writerBuffer) { type writerBuffer (line 104) | type writerBuffer struct method Malloc (line 109) | func (c *writerBuffer) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 114) | func (c *writerBuffer) WriteBinary(bs []byte) (n int, err error) { method WriteDirect (line 120) | func (c *writerBuffer) WriteDirect(b []byte, remainCap int) (err error) { method WrittenLen (line 125) | func (c *writerBuffer) WrittenLen() (length int) { method Flush (line 129) | func (c *writerBuffer) Flush() (err error) { FILE: pkg/remote/trans/ttstream/transport_buffer_test.go function TestTransportBuffer (line 29) | func TestTransportBuffer(t *testing.T) { FILE: pkg/remote/trans/ttstream/transport_client.go type clientTransport (line 43) | type clientTransport struct method Addr (line 92) | func (t *clientTransport) Addr() net.Addr { method Close (line 99) | func (t *clientTransport) Close(exception error) error { method setClosedStateLocked (line 116) | func (t *clientTransport) setClosedStateLocked(err error) { method releaseResources (line 121) | func (t *clientTransport) releaseResources(err error) { method WaitClosed (line 139) | func (t *clientTransport) WaitClosed() { method IsActive (line 143) | func (t *clientTransport) IsActive() bool { method storeStream (line 150) | func (t *clientTransport) storeStream(s *clientStream) { method loadStream (line 154) | func (t *clientTransport) loadStream(sid int32) (s *clientStream, ok b... method deleteStream (line 163) | func (t *clientTransport) deleteStream(sid int32) { method readFrame (line 168) | func (t *clientTransport) readFrame(reader bufiox.Reader) error { method loopRead (line 205) | func (t *clientTransport) loopRead() error { method WriteFrame (line 218) | func (t *clientTransport) WriteFrame(fr *Frame) (err error) { method CloseStream (line 242) | func (t *clientTransport) CloseStream(sid int32) (err error) { method WriteStream (line 268) | func (t *clientTransport) WriteStream( function newClientTransport (line 56) | func newClientTransport(conn netpoll.Connection, pool transPool) *client... function genStreamID (line 254) | func genStreamID() int32 { FILE: pkg/remote/trans/ttstream/transport_server.go type serverTransport (line 35) | type serverTransport struct method Addr (line 83) | func (t *serverTransport) Addr() net.Addr { method Close (line 90) | func (t *serverTransport) Close(exception error) error { method setClosedStateLocked (line 107) | func (t *serverTransport) setClosedStateLocked(err error) { method releaseResources (line 112) | func (t *serverTransport) releaseResources(err error) { method WaitClosed (line 131) | func (t *serverTransport) WaitClosed() { method IsActive (line 135) | func (t *serverTransport) IsActive() bool { method storeStream (line 142) | func (t *serverTransport) storeStream(s *serverStream) { method loadStream (line 146) | func (t *serverTransport) loadStream(sid int32) (s *serverStream, ok b... method deleteStream (line 155) | func (t *serverTransport) deleteStream(sid int32) { method readFrame (line 160) | func (t *serverTransport) readFrame(reader bufiox.Reader) error { method loopRead (line 204) | func (t *serverTransport) loopRead() error { method WriteFrame (line 217) | func (t *serverTransport) WriteFrame(fr *Frame) (err error) { method CloseStream (line 241) | func (t *serverTransport) CloseStream(sid int32) (err error) { method ReadStream (line 248) | func (t *serverTransport) ReadStream(ctx context.Context) (*serverStre... function newServerTransport (line 50) | func newServerTransport(conn netpoll.Connection) *serverTransport { FILE: pkg/remote/trans/ttstream/transport_test.go function TestMain (line 61) | func TestMain(m *testing.M) { function TestTransportBasic (line 67) | func TestTransportBasic(t *testing.T) { function TestTransportServerStreaming (line 138) | func TestTransportServerStreaming(t *testing.T) { function TestTransportException (line 204) | func TestTransportException(t *testing.T) { function TestTransportClose (line 260) | func TestTransportClose(t *testing.T) { function TestStreamID (line 328) | func TestStreamID(t *testing.T) { function Test_clientStreamReceiveTrailer (line 338) | func Test_clientStreamReceiveTrailer(t *testing.T) { type mockMetaFrameHandler (line 388) | type mockMetaFrameHandler struct method OnMetaFrame (line 392) | func (hdl *mockMetaFrameHandler) OnMetaFrame(ctx context.Context, intH... function Test_clientStreamReceiveMetaFrame (line 396) | func Test_clientStreamReceiveMetaFrame(t *testing.T) { type mockProxy (line 469) | type mockProxy struct method SendRstToUpstream (line 487) | func (m *mockProxy) SendRstToUpstream(t *testing.T, ex error) { method SendRstToDownstream (line 492) | func (m *mockProxy) SendRstToDownstream(t *testing.T, ex error) { method Run (line 496) | func (m *mockProxy) Run(t *testing.T) { method Wait (line 550) | func (m *mockProxy) Wait() { function newMockProxy (line 478) | func newMockProxy(upSt *serverStream, downSt *clientStream, nodeName str... type proxyTestSuite (line 554) | type proxyTestSuite struct function initTestStreams (line 563) | func initTestStreams(t *testing.T, cCtx context.Context, method, cliNode... function sendClientStreaming (line 587) | func sendClientStreaming(t *testing.T, cliSt *clientStream) context.Cont... function recvClientStreaming (line 591) | func recvClientStreaming(t *testing.T, srvSt *serverStream) context.Cont... function sendServerStreaming (line 595) | func sendServerStreaming(t *testing.T, cliSt *clientStream) context.Cont... function recvServerStreaming (line 606) | func recvServerStreaming(t *testing.T, srvSt *serverStream) context.Cont... function bizCancelClientStreamingCancelWithoutSendingAnyReq (line 625) | func bizCancelClientStreamingCancelWithoutSendingAnyReq(t *testing.T, cl... function bizCancelClientStreamingCancelDuringNormalInteraction (line 656) | func bizCancelClientStreamingCancelDuringNormalInteraction(t *testing.T,... function bizCancelClientStreamingDeferCancel (line 693) | func bizCancelClientStreamingDeferCancel(t *testing.T, cliSt *clientStre... function bizCancelServerStreamingCancelRemoteServiceRespondingSlowly (line 722) | func bizCancelServerStreamingCancelRemoteServiceRespondingSlowly(t *test... function bizCancelServerStreamingCancelDuringNormalInteraction (line 759) | func bizCancelServerStreamingCancelDuringNormalInteraction(t *testing.T,... function bizCancelServerStreamingDeferCancel (line 799) | func bizCancelServerStreamingDeferCancel(t *testing.T, cliSt *clientStre... function bizCancelBidiStreamingCancelSerialSendRecv (line 829) | func bizCancelBidiStreamingCancelSerialSendRecv(t *testing.T, cliSt *cli... function bizCancelBidiStreamingCancelIndependentSendRecv (line 884) | func bizCancelBidiStreamingCancelIndependentSendRecv(t *testing.T, cliSt... function TestBizCancel (line 967) | func TestBizCancel(t *testing.T) { function initA2Egress2B (line 979) | func initA2Egress2B(t *testing.T, method string, withCancel bool) proxyT... function initA2Ingress2B (line 999) | func initA2Ingress2B(t *testing.T, method string, withCancel bool) proxy... function initA2Egress2Ingress2B (line 1019) | func initA2Egress2Ingress2B(t *testing.T, method string, withCancel bool... function proxyCancelClientStreaming (line 1050) | func proxyCancelClientStreaming(t *testing.T, cliSt *clientStream, srvSt... function TestProxyCancel (line 1088) | func TestProxyCancel(t *testing.T) { function TestRecvTimeout (line 1171) | func TestRecvTimeout(t *testing.T) { function testRecvTimeoutClientStreaming (line 1201) | func testRecvTimeoutClientStreaming(t *testing.T, setTimeoutConfig, setR... function testRecvTimeoutServerStreaming (line 1253) | func testRecvTimeoutServerStreaming(t *testing.T, setTimeoutConfig, setR... function testRecvTimeoutBidiStreaming (line 1308) | func testRecvTimeoutBidiStreaming(t *testing.T, setTimeoutConfig, setRec... function TestSendFailed (line 1358) | func TestSendFailed(t *testing.T) { function testSendFailedClientStreaming (line 1364) | func testSendFailedClientStreaming(t *testing.T) { function testSendFailedServerStreaming (line 1426) | func testSendFailedServerStreaming(t *testing.T) { function testSendFailedBidiStreaming (line 1508) | func testSendFailedBidiStreaming(t *testing.T) { function Test_handlerReturnCauseCascadedCancel (line 1626) | func Test_handlerReturnCauseCascadedCancel(t *testing.T) { FILE: pkg/remote/trans_errors.go constant UnknownApplicationException (line 28) | UnknownApplicationException = 0 constant UnknownMethod (line 29) | UnknownMethod = 1 constant InvalidMessageTypeException (line 30) | InvalidMessageTypeException = 2 constant WrongMethodName (line 31) | WrongMethodName = 3 constant BadSequenceID (line 32) | BadSequenceID = 4 constant MissingResult (line 33) | MissingResult = 5 constant InternalError (line 34) | InternalError = 6 constant ProtocolError (line 35) | ProtocolError = 7 constant InvalidTransform (line 36) | InvalidTransform = 8 constant InvalidProtocol (line 37) | InvalidProtocol = 9 constant UnsupportedClientType (line 38) | UnsupportedClientType = 10 constant UnknownService (line 40) | UnknownService = 20 constant NoServiceName (line 41) | NoServiceName = 21 type TransError (line 60) | type TransError struct method Error (line 67) | func (e TransError) Error() string { method TypeID (line 75) | func (e TransError) TypeID() int32 { method Unwrap (line 80) | func (e TransError) Unwrap() error { method Is (line 85) | func (e TransError) Is(target error) bool { method AppendMessage (line 90) | func (e TransError) AppendMessage(extraMsg string) *TransError { function NewTransErrorWithMsg (line 100) | func NewTransErrorWithMsg(typeID int32, message string) *TransError { function NewTransError (line 106) | func NewTransError(typeID int32, err error) *TransError { type TypeID (line 130) | type TypeID interface type TypeId (line 135) | type TypeId interface FILE: pkg/remote/trans_errors_test.go function TestTransError (line 27) | func TestTransError(t *testing.T) { FILE: pkg/remote/trans_handler.go type ClientTransHandlerFactory (line 29) | type ClientTransHandlerFactory interface type ServerTransHandlerFactory (line 34) | type ServerTransHandlerFactory interface type TransReadWriter (line 39) | type TransReadWriter interface type TransHandler (line 46) | type TransHandler interface type ClientTransHandler (line 55) | type ClientTransHandler interface type ServerTransHandler (line 60) | type ServerTransHandler interface type InvokeHandleFuncSetter (line 67) | type InvokeHandleFuncSetter interface type GracefulShutdown (line 72) | type GracefulShutdown interface type ClientStreamFactory (line 78) | type ClientStreamFactory interface FILE: pkg/remote/trans_meta.go type MetaHandler (line 24) | type MetaHandler interface type StreamingMetaHandler (line 30) | type StreamingMetaHandler interface FILE: pkg/remote/trans_pipeline.go type BoundHandler (line 25) | type BoundHandler interface type OutboundHandler (line 28) | type OutboundHandler interface type InboundHandler (line 34) | type InboundHandler interface type DuplexBoundHandler (line 43) | type DuplexBoundHandler interface type TransPipeline (line 49) | type TransPipeline struct method AddInboundHandler (line 74) | func (p *TransPipeline) AddInboundHandler(hdlr InboundHandler) *TransP... method AddOutboundHandler (line 80) | func (p *TransPipeline) AddOutboundHandler(hdlr OutboundHandler) *Tran... method Write (line 86) | func (p *TransPipeline) Write(ctx context.Context, conn net.Conn, send... method OnActive (line 97) | func (p *TransPipeline) OnActive(ctx context.Context, conn net.Conn) (... method OnInactive (line 112) | func (p *TransPipeline) OnInactive(ctx context.Context, conn net.Conn) { method OnRead (line 120) | func (p *TransPipeline) OnRead(ctx context.Context, conn net.Conn) err... method Read (line 135) | func (p *TransPipeline) Read(ctx context.Context, conn net.Conn, msg M... method OnError (line 140) | func (p *TransPipeline) OnError(ctx context.Context, err error, conn n... method OnMessage (line 145) | func (p *TransPipeline) OnMessage(ctx context.Context, args, result Me... method SetPipeline (line 160) | func (p *TransPipeline) SetPipeline(transPipe *TransPipeline) { method GracefulShutdown (line 165) | func (p *TransPipeline) GracefulShutdown(ctx context.Context) error { function newTransPipeline (line 61) | func newTransPipeline() *TransPipeline { function NewTransPipeline (line 66) | func NewTransPipeline(netHdlr TransHandler) *TransPipeline { FILE: pkg/remote/trans_server.go type TransServerFactory (line 26) | type TransServerFactory interface type TransServer (line 31) | type TransServer interface FILE: pkg/remote/transmeta/http_metakey.go constant HTTPDestService (line 24) | HTTPDestService = "destination-service" constant HTTPDestAddr (line 25) | HTTPDestAddr = "destination-addr" constant HTTPSourceService (line 26) | HTTPSourceService = "source-service" constant HTTPDestMethod (line 29) | HTTPDestMethod = "destination-method" constant HTTPSourceMethod (line 30) | HTTPSourceMethod = "source-method" constant HTTPStreamLogID (line 32) | HTTPStreamLogID = "stream-log-id" FILE: pkg/remote/transmeta/metakey.go constant MeshVersion (line 24) | MeshVersion uint16 = iota constant TransportType (line 25) | TransportType constant LogID (line 26) | LogID constant FromService (line 27) | FromService constant FromCluster (line 28) | FromCluster constant FromIDC (line 29) | FromIDC constant ToService (line 30) | ToService constant ToCluster (line 31) | ToCluster constant ToIDC (line 32) | ToIDC constant ToMethod (line 33) | ToMethod constant Env (line 34) | Env constant DestAddress (line 35) | DestAddress constant RPCTimeout (line 36) | RPCTimeout constant ReadTimeout (line 37) | ReadTimeout constant RingHashKey (line 38) | RingHashKey constant DDPTag (line 39) | DDPTag constant WithMeshHeader (line 40) | WithMeshHeader constant ConnectTimeout (line 41) | ConnectTimeout constant SpanContext (line 42) | SpanContext constant ShortConnection (line 43) | ShortConnection constant FromMethod (line 44) | FromMethod constant StressTag (line 45) | StressTag constant MsgType (line 46) | MsgType constant HTTPContentType (line 47) | HTTPContentType constant RawRingHashKey (line 48) | RawRingHashKey constant LBType (line 49) | LBType constant HeaderIDLServiceName (line 54) | HeaderIDLServiceName = "isn" constant HeaderTransRemoteAddr (line 55) | HeaderTransRemoteAddr = "rip" constant HeaderTransToCluster (line 56) | HeaderTransToCluster = "tc" constant HeaderTransToIDC (line 57) | HeaderTransToIDC = "ti" constant HeaderTransPerfTConnStart (line 58) | HeaderTransPerfTConnStart = "pcs" constant HeaderTransPerfTConnEnd (line 59) | HeaderTransPerfTConnEnd = "pce" constant HeaderTransPerfTSendStart (line 60) | HeaderTransPerfTSendStart = "pss" constant HeaderTransPerfTRecvStart (line 61) | HeaderTransPerfTRecvStart = "prs" constant HeaderTransPerfTRecvEnd (line 62) | HeaderTransPerfTRecvEnd = "pre" constant HeaderConnectionReadyToReset (line 64) | HeaderConnectionReadyToReset = "crrst" constant HeaderProcessAtTime (line 65) | HeaderProcessAtTime = "K_ProcessAtTime" constant HeaderCRC32C (line 67) | HeaderCRC32C = "crc32c" constant GDPRToken (line 77) | GDPRToken = metainfo.PrefixTransient + "gdpr-token" FILE: pkg/retry/backup.go constant maxBackupRetryTimes (line 24) | maxBackupRetryTimes = 2 constant defaultBackupRetryTimes (line 25) | defaultBackupRetryTimes = 1 function NewBackupPolicy (line 30) | func NewBackupPolicy(delayMS uint32) *BackupPolicy { method WithMaxRetryTimes (line 48) | func (p *BackupPolicy) WithMaxRetryTimes(retryTimes int) { method DisableChainRetryStop (line 56) | func (p *BackupPolicy) DisableChainRetryStop() { method WithRetryBreaker (line 61) | func (p *BackupPolicy) WithRetryBreaker(errRate float64) { method WithRetrySameNode (line 69) | func (p *BackupPolicy) WithRetrySameNode() { method String (line 74) | func (p *BackupPolicy) String() string { method Equals (line 79) | func (p *BackupPolicy) Equals(np *BackupPolicy) bool { method DeepCopy (line 99) | func (p *BackupPolicy) DeepCopy() *BackupPolicy { FILE: pkg/retry/backup_retryer.go function newBackupRetryer (line 40) | func newBackupRetryer(policy Policy, cbC *cbContainer) (Retryer, error) { type backupRetryer (line 48) | type backupRetryer struct method ShouldRetry (line 64) | func (r *backupRetryer) ShouldRetry(ctx context.Context, err error, ca... method AllowRetry (line 77) | func (r *backupRetryer) AllowRetry(ctx context.Context) (string, bool) { method Do (line 90) | func (r *backupRetryer) Do(ctx context.Context, rpcCall RPCCallFunc, f... method Prepare (line 162) | func (r *backupRetryer) Prepare(ctx context.Context, prevRI, retryRI r... method UpdatePolicy (line 167) | func (r *backupRetryer) UpdatePolicy(rp Policy) (err error) { method AppendErrMsgIfNeeded (line 195) | func (r *backupRetryer) AppendErrMsgIfNeeded(ctx context.Context, err ... method Dump (line 203) | func (r *backupRetryer) Dump() map[string]interface{} { method Type (line 214) | func (r *backupRetryer) Type() Type { type resultWrapper (line 57) | type resultWrapper struct function recordCost (line 219) | func recordCost(ct int32, start time.Time, recordCostDoing *int32, sb *u... FILE: pkg/retry/backup_test.go function TestBackupPolicy_String (line 32) | func TestBackupPolicy_String(t *testing.T) { function TestBackupPolicyCall (line 42) | func TestBackupPolicyCall(t *testing.T) { function TestBackupRetryWithRPCInfo (line 82) | func TestBackupRetryWithRPCInfo(t *testing.T) { function TestNewRetryer4BackupRequest (line 103) | func TestNewRetryer4BackupRequest(t *testing.T) { FILE: pkg/retry/failure.go constant maxFailureRetryTimes (line 29) | maxFailureRetryTimes = 5 function AllErrorRetry (line 32) | func AllErrorRetry() *ShouldResultRetry { function NewFailurePolicy (line 39) | func NewFailurePolicy() *FailurePolicy { function NewFailurePolicyWithResultRetry (line 54) | func NewFailurePolicyWithResultRetry(rr *ShouldResultRetry) *FailurePoli... method WithMaxRetryTimes (line 61) | func (p *FailurePolicy) WithMaxRetryTimes(retryTimes int) { method WithMaxDurationMS (line 69) | func (p *FailurePolicy) WithMaxDurationMS(maxMS uint32) { method DisableChainRetryStop (line 74) | func (p *FailurePolicy) DisableChainRetryStop() { method WithDDLStop (line 79) | func (p *FailurePolicy) WithDDLStop() { method WithFixedBackOff (line 84) | func (p *FailurePolicy) WithFixedBackOff(fixMS int) { method WithRandomBackOff (line 93) | func (p *FailurePolicy) WithRandomBackOff(minMS, maxMS int) { method WithRetryBreaker (line 103) | func (p *FailurePolicy) WithRetryBreaker(errRate float64) { method WithRetrySameNode (line 111) | func (p *FailurePolicy) WithRetrySameNode() { method WithSpecifiedResultRetry (line 116) | func (p *FailurePolicy) WithSpecifiedResultRetry(rr *ShouldResultRetry) { method String (line 123) | func (p *FailurePolicy) String() string { method Equals (line 129) | func (p *FailurePolicy) Equals(np *FailurePolicy) bool { method DeepCopy (line 153) | func (p *FailurePolicy) DeepCopy() *FailurePolicy { method isRespRetryWithCtxNonNil (line 167) | func (p *FailurePolicy) isRespRetryWithCtxNonNil() bool { method isErrorRetryWithCtxNonNil (line 172) | func (p *FailurePolicy) isErrorRetryWithCtxNonNil() bool { method isRespRetryNonNil (line 178) | func (p *FailurePolicy) isRespRetryNonNil() bool { method isErrorRetryNonNil (line 184) | func (p *FailurePolicy) isErrorRetryNonNil() bool { method isRetryForTimeout (line 189) | func (p *FailurePolicy) isRetryForTimeout() bool { method isRespRetry (line 194) | func (p *FailurePolicy) isRespRetry(ctx context.Context, resp interface{... method isErrorRetry (line 201) | func (p *FailurePolicy) isErrorRetry(ctx context.Context, err error, ri ... method convertResultRetry (line 208) | func (p *FailurePolicy) convertResultRetry() { type BackOff (line 226) | type BackOff interface function newFixedBackOff (line 233) | func newFixedBackOff(fixMS int) BackOff { function newRandomBackOff (line 239) | func newRandomBackOff(minMS, maxMS int) BackOff { type noneBackOff (line 246) | type noneBackOff struct method String (line 249) | func (p noneBackOff) String() string { method Wait (line 254) | func (p *noneBackOff) Wait(callTimes int) { type fixedBackOff (line 257) | type fixedBackOff struct method Wait (line 262) | func (p *fixedBackOff) Wait(callTimes int) { method String (line 267) | func (p fixedBackOff) String() string { type randomBackOff (line 271) | type randomBackOff struct method randomDuration (line 276) | func (p *randomBackOff) randomDuration() time.Duration { method Wait (line 281) | func (p *randomBackOff) Wait(callTimes int) { method String (line 286) | func (p randomBackOff) String() string { function checkFixedBackOff (line 290) | func checkFixedBackOff(fixMS int) error { function checkRandomBackOff (line 297) | func checkRandomBackOff(minMS, maxMS int) error { FILE: pkg/retry/failure_retryer.go function newFailureRetryer (line 34) | func newFailureRetryer(policy Policy, r *ShouldResultRetry, cbC *cbConta... type failureRetryer (line 42) | type failureRetryer struct method ShouldRetry (line 52) | func (r *failureRetryer) ShouldRetry(ctx context.Context, err error, c... method AllowRetry (line 62) | func (r *failureRetryer) AllowRetry(ctx context.Context) (string, bool) { method Do (line 78) | func (r *failureRetryer) Do(ctx context.Context, rpcCall RPCCallFunc, ... method UpdatePolicy (line 143) | func (r *failureRetryer) UpdatePolicy(rp Policy) (err error) { method AppendErrMsgIfNeeded (line 172) | func (r *failureRetryer) AppendErrMsgIfNeeded(ctx context.Context, err... method Prepare (line 180) | func (r *failureRetryer) Prepare(ctx context.Context, prevRI, retryRI ... method Type (line 185) | func (r *failureRetryer) Type() Type { method Dump (line 190) | func (r *failureRetryer) Dump() map[string]interface{} { type failureCommon (line 205) | type failureCommon struct method setSpecifiedResultRetryIfNeeded (line 211) | func (f *failureCommon) setSpecifiedResultRetryIfNeeded(rr *ShouldResu... method isRetryErr (line 230) | func (r *failureCommon) isRetryErr(ctx context.Context, err error, ri ... method shouldRetry (line 248) | func (r *failureCommon) shouldRetry(ctx context.Context, callTimes int... method isRetryResult (line 264) | func (r *failureCommon) isRetryResult(ctx context.Context, cRI rpcinfo... method dumpSpecifiedResultRetry (line 276) | func (r *failureCommon) dumpSpecifiedResultRetry(fp FailurePolicy) map... function initBackOff (line 286) | func initBackOff(policy *BackOffPolicy) (bo BackOff, err error) { function isExceedMaxDuration (line 321) | func isExceedMaxDuration(ctx context.Context, start time.Time, maxDurati... FILE: pkg/retry/failure_test.go function BenchmarkRandomBackOff_Wait (line 32) | func BenchmarkRandomBackOff_Wait(b *testing.B) { function TestRandomBackOff_Wait (line 47) | func TestRandomBackOff_Wait(t *testing.T) { function TestRandomBackOff_String (line 63) | func TestRandomBackOff_String(t *testing.T) { function TestFixedBackOff_Wait (line 74) | func TestFixedBackOff_Wait(t *testing.T) { function TestFixedBackOff_String (line 86) | func TestFixedBackOff_String(t *testing.T) { function TestNoneBackOff_String (line 95) | func TestNoneBackOff_String(t *testing.T) { function TestFailurePolicyCall (line 102) | func TestFailurePolicyCall(t *testing.T) { function TestRetryWithOneTimePolicy (line 142) | func TestRetryWithOneTimePolicy(t *testing.T) { function TestSpecifiedErrorRetry (line 194) | func TestSpecifiedErrorRetry(t *testing.T) { function TestSpecifiedRespRetry (line 297) | func TestSpecifiedRespRetry(t *testing.T) { function TestSpecifiedErrorRetryWithCtx (line 385) | func TestSpecifiedErrorRetryWithCtx(t *testing.T) { function TestSpecifiedErrorRetryHasOldAndNew (line 485) | func TestSpecifiedErrorRetryHasOldAndNew(t *testing.T) { function TestSpecifiedRespRetryWithCtx (line 532) | func TestSpecifiedRespRetryWithCtx(t *testing.T) { function TestResultRetryWithPolicyChange (line 642) | func TestResultRetryWithPolicyChange(t *testing.T) { function TestResultRetryWithCtxWhenPolicyChange (line 670) | func TestResultRetryWithCtxWhenPolicyChange(t *testing.T) { function TestFailureRetryWithRPCInfo (line 698) | func TestFailureRetryWithRPCInfo(t *testing.T) { function TestNewRetryer4FailureRetry (line 731) | func TestNewRetryer4FailureRetry(t *testing.T) { FILE: pkg/retry/item_retry.go constant TypeRetry (line 27) | TypeRetry iface.ItemType = "retry_config" type RetryConfig (line 35) | type RetryConfig struct method DeepCopy (line 52) | func (c *RetryConfig) DeepCopy() iface.ConfigValueItem { method EqualsTo (line 59) | func (c *RetryConfig) EqualsTo(other iface.ConfigValueItem) bool { function CopyDefaultRetryConfig (line 47) | func CopyDefaultRetryConfig() iface.ConfigValueItem { FILE: pkg/retry/mixed.go constant maxMixRetryTimes (line 21) | maxMixRetryTimes = 3 function NewMixedPolicy (line 24) | func NewMixedPolicy(delayMS uint32) *MixedPolicy { function NewMixedPolicyWithResultRetry (line 45) | func NewMixedPolicyWithResultRetry(delayMS uint32, rr *ShouldResultRetry... method String (line 52) | func (p *MixedPolicy) String() string { method Equals (line 58) | func (p *MixedPolicy) Equals(np *MixedPolicy) bool { method DeepCopy (line 74) | func (p *MixedPolicy) DeepCopy() *MixedPolicy { FILE: pkg/retry/mixed_retryer.go function newMixedRetryer (line 34) | func newMixedRetryer(policy Policy, r *ShouldResultRetry, cbC *cbContain... type mixedRetryer (line 42) | type mixedRetryer struct method ShouldRetry (line 54) | func (r *mixedRetryer) ShouldRetry(ctx context.Context, err error, cal... method AllowRetry (line 64) | func (r *mixedRetryer) AllowRetry(ctx context.Context) (string, bool) { method Do (line 80) | func (r *mixedRetryer) Do(ctx context.Context, rpcCall RPCCallFunc, fi... method UpdatePolicy (line 186) | func (r *mixedRetryer) UpdatePolicy(rp Policy) (err error) { method AppendErrMsgIfNeeded (line 221) | func (r *mixedRetryer) AppendErrMsgIfNeeded(ctx context.Context, err e... method Prepare (line 229) | func (r *mixedRetryer) Prepare(ctx context.Context, prevRI, retryRI rp... method Type (line 234) | func (r *mixedRetryer) Type() Type { method Dump (line 239) | func (r *mixedRetryer) Dump() map[string]interface{} { FILE: pkg/retry/mixed_test.go function TestMixedRetryPolicy (line 36) | func TestMixedRetryPolicy(t *testing.T) { function TestNewMixedPolicy (line 140) | func TestNewMixedPolicy(t *testing.T) { function TestMixedRetry (line 173) | func TestMixedRetry(t *testing.T) { function TestMockCase1WithDiffRetry (line 265) | func TestMockCase1WithDiffRetry(t *testing.T) { function TestMockCase2WithDiffRetry (line 348) | func TestMockCase2WithDiffRetry(t *testing.T) { function TestMockCase3WithDiffRetry (line 431) | func TestMockCase3WithDiffRetry(t *testing.T) { function TestMockCase4WithDiffRetry (line 515) | func TestMockCase4WithDiffRetry(t *testing.T) { function TestMockCase5WithDiffRetry (line 608) | func TestMockCase5WithDiffRetry(t *testing.T) { function BenchmarkMixedRetry (line 702) | func BenchmarkMixedRetry(b *testing.B) { function TestNewRetryer4MixedRetry (line 749) | func TestNewRetryer4MixedRetry(t *testing.T) { FILE: pkg/retry/percentage_limit.go function recordRetryStat (line 25) | func recordRetryStat(cbKey string, panel circuitbreaker.Panel, callTimes... FILE: pkg/retry/policy.go type Type (line 28) | type Type method String (line 38) | func (t Type) String() string { constant FailureType (line 32) | FailureType Type = iota constant BackupType (line 33) | BackupType constant MixedType (line 34) | MixedType function BuildFailurePolicy (line 51) | func BuildFailurePolicy(p *FailurePolicy) Policy { function BuildBackupRequest (line 59) | func BuildBackupRequest(p *BackupPolicy) Policy { function BuildMixedPolicy (line 67) | func BuildMixedPolicy(p *MixedPolicy) Policy { type Policy (line 76) | type Policy struct method DeepCopy (line 86) | func (p *Policy) DeepCopy() *Policy { method Equals (line 193) | func (p Policy) Equals(np Policy) bool { type FailurePolicy (line 101) | type FailurePolicy struct type BackupPolicy (line 115) | type BackupPolicy struct type MixedPolicy (line 123) | type MixedPolicy struct type StopPolicy (line 129) | type StopPolicy struct constant defaultCBErrRate (line 138) | defaultCBErrRate = 0.1 constant cbMinSample (line 139) | cbMinSample = 10 type CBPolicy (line 143) | type CBPolicy struct type BackOffPolicy (line 149) | type BackOffPolicy struct method Equals (line 213) | func (p *BackOffPolicy) Equals(np *BackOffPolicy) bool { method DeepCopy (line 235) | func (p *BackOffPolicy) DeepCopy() *BackOffPolicy { method copyCfgItems (line 245) | func (p *BackOffPolicy) copyCfgItems() map[BackOffCfgKey]float64 { type BackOffType (line 155) | type BackOffType constant NoneBackOffType (line 159) | NoneBackOffType BackOffType = "none" constant FixedBackOffType (line 160) | FixedBackOffType BackOffType = "fixed" constant RandomBackOffType (line 161) | RandomBackOffType BackOffType = "random" type BackOffCfgKey (line 165) | type BackOffCfgKey constant FixMSBackOffCfgKey (line 169) | FixMSBackOffCfgKey BackOffCfgKey = "fix_ms" constant MinMSBackOffCfgKey (line 170) | MinMSBackOffCfgKey BackOffCfgKey = "min_ms" constant MaxMSBackOffCfgKey (line 171) | MaxMSBackOffCfgKey BackOffCfgKey = "max_ms" constant InitialMSBackOffCfgKey (line 172) | InitialMSBackOffCfgKey BackOffCfgKey = "initial_ms" constant MultiplierBackOffCfgKey (line 173) | MultiplierBackOffCfgKey BackOffCfgKey = "multiplier" type ShouldResultRetry (line 177) | type ShouldResultRetry struct method IsValid (line 256) | func (rr *ShouldResultRetry) IsValid() bool { function checkCBErrorRate (line 260) | func checkCBErrorRate(p *CBPolicy) error { function checkStopPolicy (line 267) | func checkStopPolicy(sp *StopPolicy, maxRetryTimes int, retryer Retryer)... FILE: pkg/retry/policy_test.go constant method (line 34) | method = "test" function TestFailureRetryPolicy (line 38) | func TestFailureRetryPolicy(t *testing.T) { function TestFailureRetryPolicyWithResultRetry (line 137) | func TestFailureRetryPolicyWithResultRetry(t *testing.T) { function TestBackupRequest (line 167) | func TestBackupRequest(t *testing.T) { function TestRetryPolicyBothNotNil (line 192) | func TestRetryPolicyBothNotNil(t *testing.T) { function TestRetryPolicyBothNil (line 224) | func TestRetryPolicyBothNil(t *testing.T) { function TestRetryPolicyFailure (line 243) | func TestRetryPolicyFailure(t *testing.T) { function TestPolicyNotEqual (line 291) | func TestPolicyNotEqual(t *testing.T) { function TestPolicyNotRetryForTimeout (line 459) | func TestPolicyNotRetryForTimeout(t *testing.T) { function genRPCInfo (line 484) | func genRPCInfo(newResultFunc ...func() interface{}) rpcinfo.RPCInfo { function genRPCInfoWithFirstStats (line 500) | func genRPCInfoWithFirstStats(firstRI rpcinfo.RPCInfo) rpcinfo.RPCInfo { function genRPCInfoWithRemoteTag (line 508) | func genRPCInfoWithRemoteTag(tags map[string]string) rpcinfo.RPCInfo { function TestBackOffPolicy_copyCfgItems (line 514) | func TestBackOffPolicy_copyCfgItems(t *testing.T) { function TestBackOffPolicy_DeepCopy (line 568) | func TestBackOffPolicy_DeepCopy(t *testing.T) { function TestBackupPolicy_DeepCopy (line 626) | func TestBackupPolicy_DeepCopy(t *testing.T) { function TestFailurePolicy_DeepCopy (line 683) | func TestFailurePolicy_DeepCopy(t *testing.T) { function TestPolicy_DeepCopy (line 735) | func TestPolicy_DeepCopy(t *testing.T) { function TestCheckStopPolicy (line 795) | func TestCheckStopPolicy(t *testing.T) { FILE: pkg/retry/retryer.go type RPCCallFunc (line 34) | type RPCCallFunc type GenRetryKeyFunc (line 38) | type GenRetryKeyFunc type Retryer (line 41) | type Retryer interface function NewRetryContainerWithCB (line 68) | func NewRetryContainerWithCB(cc *circuitbreak.Control, cp circuitbreaker... function newCBSuite (line 72) | func newCBSuite(opts []circuitbreak.CBSuiteOption) *circuitbreak.CBSuite { function NewRetryContainerWithCBStat (line 82) | func NewRetryContainerWithCBStat(cc *circuitbreak.Control, cp circuitbre... function NewRetryContainerWithPercentageLimit (line 88) | func NewRetryContainerWithPercentageLimit() *Container { type ContainerOption (line 93) | type ContainerOption function WithContainerCBSuite (line 98) | func WithContainerCBSuite(cbs *circuitbreak.CBSuite) ContainerOption { function WithCustomizeKeyFunc (line 105) | func WithCustomizeKeyFunc(fn GenRetryKeyFunc) ContainerOption { function WithContainerCBSuiteOptions (line 112) | func WithContainerCBSuiteOptions(opts ...circuitbreak.CBSuiteOption) Con... function WithContainerCBControl (line 120) | func WithContainerCBControl(ctrl *circuitbreak.Control) ContainerOption { function WithContainerCBPanel (line 128) | func WithContainerCBPanel(panel circuitbreaker.Panel) ContainerOption { function WithContainerCBStat (line 135) | func WithContainerCBStat() ContainerOption { function WithContainerEnablePercentageLimit (line 142) | func WithContainerEnablePercentageLimit() ContainerOption { function NewRetryContainer (line 150) | func NewRetryContainer(opts ...ContainerOption) *Container { function defaultGenRetryKey (line 185) | func defaultGenRetryKey(_ context.Context, rpcInfo rpcinfo.RPCInfo) stri... type Container (line 190) | type Container struct method InitWithPolicies (line 236) | func (rc *Container) InitWithPolicies(methodPolicies map[string]Policy... method DeletePolicy (line 261) | func (rc *Container) DeletePolicy(key string) { method NotifyPolicyChange (line 277) | func (rc *Container) NotifyPolicyChange(key string, p Policy) { method Init (line 302) | func (rc *Container) Init(mp map[string]Policy, rr *ShouldResultRetry)... method WithRetryIfNeeded (line 345) | func (rc *Container) WithRetryIfNeeded(ctx context.Context, callOptRet... method getRetryer (line 394) | func (rc *Container) getRetryer(ctx context.Context, ri rpcinfo.RPCInf... method Dump (line 412) | func (rc *Container) Dump() interface{} { method initRetryer (line 429) | func (rc *Container) initRetryer(method string, p Policy) error { method updateRetryer (line 447) | func (rc *Container) updateRetryer(rr *ShouldResultRetry) { method Close (line 466) | func (rc *Container) Close() (err error) { type cbContainer (line 205) | type cbContainer struct method IsValid (line 230) | func (c *cbContainer) IsValid() bool { type retryContext (line 312) | type retryContext struct method Value (line 319) | func (p *retryContext) Value(k any) any { function PrepareRetryContext (line 329) | func PrepareRetryContext(ctx context.Context) context.Context { function NewRetryer (line 381) | func NewRetryer(p Policy, r *ShouldResultRetry, cbC *cbContainer) (retry... FILE: pkg/retry/retryer_test.go function TestNewRetryContainer (line 49) | func TestNewRetryContainer(t *testing.T) { function TestRetryInvalidPolicyInit (line 105) | func TestRetryInvalidPolicyInit(t *testing.T) { function TestContainer_Dump (line 370) | func TestContainer_Dump(t *testing.T) { function TestDifferentMethodConfig (line 488) | func TestDifferentMethodConfig(t *testing.T) { function TestPolicyNoRetryCall (line 560) | func TestPolicyNoRetryCall(t *testing.T) { function retryCall (line 641) | func retryCall(callTimes *int32, firstRI rpcinfo.RPCInfo, backup bool) R... type mockResult (line 669) | type mockResult struct method getResult (line 679) | func (r *mockResult) getResult() interface{} { method setResult (line 683) | func (r *mockResult) setResult(ret mockResp) { method setCallTimes (line 687) | func (r *mockResult) setCallTimes(ct int32) { method getCallTimes (line 691) | func (r *mockResult) getCallTimes() int32 { type mockResp (line 674) | type mockResp struct function TestNewRetryContainerWithOptions (line 695) | func TestNewRetryContainerWithOptions(t *testing.T) { function TestNewRetryContainerWithCBStat (line 776) | func TestNewRetryContainerWithCBStat(t *testing.T) { function TestNewRetryContainerWithCB (line 785) | func TestNewRetryContainerWithCB(t *testing.T) { function TestPrepareRetryContext (line 794) | func TestPrepareRetryContext(t *testing.T) { function BenchmarkPrepareRetryContext (line 805) | func BenchmarkPrepareRetryContext(b *testing.B) { function TestBugfix4InvalidRetry (line 821) | func TestBugfix4InvalidRetry(t *testing.T) { FILE: pkg/retry/util.go type ctxKey (line 37) | type ctxKey constant TransitKey (line 42) | TransitKey = "RetryReq" constant CtxReqOp (line 45) | CtxReqOp ctxKey = "K_REQ_OP" constant Wildcard (line 48) | Wildcard = "*" constant OpNo (line 53) | OpNo int32 = iota constant OpDoing (line 54) | OpDoing constant OpDone (line 55) | OpDone type DDLStopFunc (line 61) | type DDLStopFunc function RegisterDDLStop (line 66) | func RegisterDDLStop(f DDLStopFunc) { function ddlStop (line 73) | func ddlStop(ctx context.Context, policy StopPolicy) (bool, string) { function chainStop (line 84) | func chainStop(ctx context.Context, policy StopPolicy) (bool, string) { function circuitBreakerStop (line 94) | func circuitBreakerStop(ctx context.Context, policy StopPolicy, cbC *cbC... function handleRetryInstance (line 107) | func handleRetryInstance(retrySameNode bool, prevRI, retryRI rpcinfo.RPC... function makeRetryErr (line 121) | func makeRetryErr(ctx context.Context, msg string, callTimes int32) error { function panicToErr (line 141) | func panicToErr(ctx context.Context, panicInfo interface{}, ri rpcinfo.R... function appendErrMsg (line 152) | func appendErrMsg(err error, msg string) { function recordRetryInfo (line 159) | func recordRetryInfo(ri rpcinfo.RPCInfo, callTimes int32, lastCosts stri... function IsLocalRetryRequest (line 171) | func IsLocalRetryRequest(ctx context.Context) bool { function IsRemoteRetryRequest (line 179) | func IsRemoteRetryRequest(ctx context.Context) bool { function getNewRespFunc (line 184) | func getNewRespFunc(mi serviceinfo.MethodInfo) func() interface{} { function shallowCopyResults (line 196) | func shallowCopyResults(src, dst interface{}) { FILE: pkg/retry/util_test.go function mockRPCInfo (line 30) | func mockRPCInfo(retryTag string) rpcinfo.RPCInfo { function mockContext (line 41) | func mockContext(retryTag string) context.Context { function TestIsLocalRetryRequest (line 45) | func TestIsLocalRetryRequest(t *testing.T) { function TestIsRemoteRetryRequest (line 57) | func TestIsRemoteRetryRequest(t *testing.T) { function Test_shallowCopyResults (line 67) | func Test_shallowCopyResults(t *testing.T) { FILE: pkg/rpcinfo/basicinfo.go type EndpointBasicInfo (line 20) | type EndpointBasicInfo struct constant ConnResetTag (line 28) | ConnResetTag = "crrst" constant RetryTag (line 29) | RetryTag = "retry" constant RetryLastCostTag (line 30) | RetryLastCostTag = "last_cost" constant RetryPrevInstTag (line 31) | RetryPrevInstTag = "prev_inst" constant ShmIPCTag (line 32) | ShmIPCTag = "shmipc" constant RemoteClosedTag (line 33) | RemoteClosedTag = "remote_closed" constant HTTPURL (line 39) | HTTPURL = "http_url" constant HTTPHost (line 41) | HTTPHost = "http_host" constant HTTPHeader (line 43) | HTTPHeader = "http_header" FILE: pkg/rpcinfo/convert.go type Taggable (line 20) | type Taggable interface function AsTaggable (line 25) | func AsTaggable(i interface{}) Taggable { function AsMutableEndpointInfo (line 33) | func AsMutableEndpointInfo(ei EndpointInfo) MutableEndpointInfo { function AsMutableRPCStats (line 41) | func AsMutableRPCStats(r RPCStats) MutableRPCStats { function AsMutableRPCConfig (line 49) | func AsMutableRPCConfig(r RPCConfig) MutableRPCConfig { FILE: pkg/rpcinfo/convert_test.go function TestAsTaggable (line 33) | func TestAsTaggable(t *testing.T) { function TestAsMutableEndpointInfo (line 41) | func TestAsMutableEndpointInfo(t *testing.T) { function TestAsMutableRPCStats (line 80) | func TestAsMutableRPCStats(t *testing.T) { function TestAsMutableRPCConfig (line 115) | func TestAsMutableRPCConfig(t *testing.T) { FILE: pkg/rpcinfo/copy.go type plainRPCInfo (line 21) | type plainRPCInfo struct method From (line 29) | func (p *plainRPCInfo) From() EndpointInfo { method To (line 33) | func (p *plainRPCInfo) To() EndpointInfo { method Invocation (line 37) | func (p *plainRPCInfo) Invocation() Invocation { method Config (line 41) | func (p *plainRPCInfo) Config() RPCConfig { method Stats (line 45) | func (p *plainRPCInfo) Stats() RPCStats { function freeze (line 49) | func freeze(ri RPCInfo) RPCInfo { function copyMap (line 58) | func copyMap(src map[string]string) map[string]string { function copyEndpointInfo (line 66) | func copyEndpointInfo(ei EndpointInfo) EndpointInfo { function copyInvocation (line 83) | func copyInvocation(i Invocation) Invocation { function copyRPCConfig (line 118) | func copyRPCConfig(cfg RPCConfig) RPCConfig { FILE: pkg/rpcinfo/copy_test.go function TestFreezeRPCInfo (line 26) | func TestFreezeRPCInfo(t *testing.T) { function checkFreezeRPCInfo (line 55) | func checkFreezeRPCInfo(t *testing.T, ri, prevRI RPCInfo) { FILE: pkg/rpcinfo/ctx.go type ctxRPCInfoKeyType (line 25) | type ctxRPCInfoKeyType struct function NewCtxWithRPCInfo (line 30) | func NewCtxWithRPCInfo(ctx context.Context, ri RPCInfo) context.Context { function GetRPCInfo (line 39) | func GetRPCInfo(ctx context.Context) RPCInfo { function PutRPCInfo (line 47) | func PutRPCInfo(ri RPCInfo) { function FreezeRPCInfo (line 75) | func FreezeRPCInfo(ctx context.Context) context.Context { FILE: pkg/rpcinfo/ctx_test.go function TestNewCtxWithRPCInfo (line 28) | func TestNewCtxWithRPCInfo(t *testing.T) { function TestGetCtxRPCInfo (line 40) | func TestGetCtxRPCInfo(t *testing.T) { function TestPutRPCInfo (line 52) | func TestPutRPCInfo(t *testing.T) { FILE: pkg/rpcinfo/endpointInfo.go type endpointInfo (line 30) | type endpointInfo struct method ServiceName (line 46) | func (ei *endpointInfo) ServiceName() string { method Method (line 51) | func (ei *endpointInfo) Method() string { method Address (line 56) | func (ei *endpointInfo) Address() net.Addr { method Tag (line 61) | func (ei *endpointInfo) Tag(key string) (value string, exist bool) { method DefaultTag (line 67) | func (ei *endpointInfo) DefaultTag(key, def string) string { method SetServiceName (line 75) | func (ei *endpointInfo) SetServiceName(serviceName string) error { method SetMethod (line 81) | func (ei *endpointInfo) SetMethod(method string) error { method SetAddress (line 87) | func (ei *endpointInfo) SetAddress(addr net.Addr) error { method SetTag (line 93) | func (ei *endpointInfo) SetTag(key, value string) error { method ImmutableView (line 99) | func (ei *endpointInfo) ImmutableView() EndpointInfo { method Reset (line 104) | func (ei *endpointInfo) Reset() { method ResetFromBasicInfo (line 109) | func (ei *endpointInfo) ResetFromBasicInfo(bi *EndpointBasicInfo) { method zero (line 121) | func (ei *endpointInfo) zero() { method Recycle (line 131) | func (ei *endpointInfo) Recycle() { function init (line 37) | func init() { function newEndpointInfo (line 41) | func newEndpointInfo() interface{} { function NewMutableEndpointInfo (line 137) | func NewMutableEndpointInfo(serviceName, method string, address net.Addr... function NewEndpointInfo (line 149) | func NewEndpointInfo(serviceName, method string, address net.Addr, tags ... function FromBasicInfo (line 154) | func FromBasicInfo(bi *EndpointBasicInfo) EndpointInfo { function EmptyEndpointInfo (line 159) | func EmptyEndpointInfo() EndpointInfo { FILE: pkg/rpcinfo/endpointInfo_test.go function TestEndpointInfo (line 27) | func TestEndpointInfo(t *testing.T) { function TestFromBasicInfo (line 48) | func TestFromBasicInfo(t *testing.T) { function TestEmptyEndpointInfo (line 67) | func TestEmptyEndpointInfo(t *testing.T) { FILE: pkg/rpcinfo/interface.go type EndpointInfo (line 32) | type EndpointInfo interface type RPCStats (line 41) | type RPCStats interface type Event (line 57) | type Event interface type Timeouts (line 66) | type Timeouts interface type TimeoutProvider (line 73) | type TimeoutProvider interface type StreamConfig (line 77) | type StreamConfig interface type RPCConfig (line 83) | type RPCConfig interface type Invocation (line 93) | type Invocation interface type RPCInfo (line 105) | type RPCInfo interface FILE: pkg/rpcinfo/invocation.go constant InvocationServiceInfoKey (line 31) | InvocationServiceInfoKey = "service_info_key" function init (line 40) | func init() { type InvocationSetter (line 45) | type InvocationSetter interface type invocation (line 56) | type invocation struct method SeqID (line 102) | func (i *invocation) SeqID() int32 { method SetSeqID (line 107) | func (i *invocation) SetSeqID(seqID int32) { method PackageName (line 111) | func (i *invocation) PackageName() string { method SetPackageName (line 115) | func (i *invocation) SetPackageName(name string) { method ServiceName (line 119) | func (i *invocation) ServiceName() string { method SetServiceName (line 124) | func (i *invocation) SetServiceName(name string) { method MethodName (line 129) | func (i *invocation) MethodName() string { method SetMethodName (line 134) | func (i *invocation) SetMethodName(name string) { method MethodInfo (line 139) | func (i *invocation) MethodInfo() serviceinfo.MethodInfo { method SetMethodInfo (line 144) | func (i *invocation) SetMethodInfo(methodInfo serviceinfo.MethodInfo) { method StreamingMode (line 149) | func (i *invocation) StreamingMode() serviceinfo.StreamingMode { method SetStreamingMode (line 154) | func (i *invocation) SetStreamingMode(mode serviceinfo.StreamingMode) { method BizStatusErr (line 159) | func (i *invocation) BizStatusErr() kerrors.BizStatusErrorIface { method SetBizStatusErr (line 168) | func (i *invocation) SetBizStatusErr(err kerrors.BizStatusErrorIface) { method SetExtra (line 176) | func (i *invocation) SetExtra(key string, value interface{}) { method Extra (line 185) | func (i *invocation) Extra(key string) interface{} { method Reset (line 195) | func (i *invocation) Reset() { method Recycle (line 200) | func (i *invocation) Recycle() { method zero (line 205) | func (i *invocation) zero() { function NewInvocation (line 71) | func NewInvocation(service, method string, pkgOpt ...string) *invocation { function NewServerInvocation (line 83) | func NewServerInvocation() Invocation { function genSeqID (line 88) | func genSeqID() int32 { function newInvocation (line 97) | func newInvocation() interface{} { FILE: pkg/rpcinfo/invocation_test.go function TestInvocation (line 25) | func TestInvocation(t *testing.T) { FILE: pkg/rpcinfo/mocks_test.go type MockRPCConfig (line 33) | type MockRPCConfig struct method PayloadCodec (line 42) | func (m *MockRPCConfig) PayloadCodec() serviceinfo.PayloadCodec { method InteractionMode (line 47) | func (m *MockRPCConfig) InteractionMode() (r rpcinfo.InteractionMode) { method RPCTimeout (line 55) | func (m *MockRPCConfig) RPCTimeout() (r time.Duration) { method ConnectTimeout (line 63) | func (m *MockRPCConfig) ConnectTimeout() (r time.Duration) { method ReadWriteTimeout (line 71) | func (m *MockRPCConfig) ReadWriteTimeout() (r time.Duration) { method IOBufferSize (line 79) | func (m *MockRPCConfig) IOBufferSize() (r int) { method TransportProtocol (line 87) | func (m *MockRPCConfig) TransportProtocol() (r transport.Protocol) { method StreamRecvTimeout (line 94) | func (m *MockRPCConfig) StreamRecvTimeout() time.Duration { method StreamRecvTimeoutConfig (line 98) | func (m *MockRPCConfig) StreamRecvTimeoutConfig() streaming.TimeoutCon... method StreamSendTimeoutConfig (line 102) | func (m *MockRPCConfig) StreamSendTimeoutConfig() streaming.TimeoutCon... type MockRPCStats (line 106) | type MockRPCStats struct method Record (line 108) | func (m *MockRPCStats) Record(context.Context, stats.Event, stats.Stat... method SendSize (line 109) | func (m *MockRPCStats) SendSize() uint64 ... method RecvSize (line 110) | func (m *MockRPCStats) RecvSize() uint64 ... method Error (line 111) | func (m *MockRPCStats) Error() error ... method Panicked (line 112) | func (m *MockRPCStats) Panicked() (yes bool, val interface{}) ... method GetEvent (line 113) | func (m *MockRPCStats) GetEvent(event stats.Event) (e rpcinfo.Event) ... method Level (line 114) | func (m *MockRPCStats) Level() (lv stats.Level) ... method CopyForRetry (line 115) | func (m *MockRPCStats) CopyForRetry() rpcinfo.RPCStats ... method LastSendSize (line 116) | func (m *MockRPCStats) LastSendSize() uint64 ... method LastRecvSize (line 117) | func (m *MockRPCStats) LastRecvSize() uint64 ... FILE: pkg/rpcinfo/mutable.go type MutableEndpointInfo (line 30) | type MutableEndpointInfo interface type MutableRPCConfig (line 41) | type MutableRPCConfig interface type MutableRPCStats (line 62) | type MutableRPCStats interface FILE: pkg/rpcinfo/remoteinfo/remoteInfo.go type RemoteInfo (line 32) | type RemoteInfo interface type RefreshableInstance (line 50) | type RefreshableInstance interface type remoteInfo (line 59) | type remoteInfo struct method GetInstance (line 81) | func (ri *remoteInfo) GetInstance() (ins discovery.Instance) { method SetInstance (line 89) | func (ri *remoteInfo) SetInstance(ins discovery.Instance) { method ServiceName (line 96) | func (ri *remoteInfo) ServiceName() string { method SetServiceName (line 101) | func (ri *remoteInfo) SetServiceName(name string) { method Method (line 106) | func (ri *remoteInfo) Method() string { method Tag (line 111) | func (ri *remoteInfo) Tag(key string) (value string, exist bool) { method DefaultTag (line 125) | func (ri *remoteInfo) DefaultTag(key, def string) string { method SetRemoteAddr (line 133) | func (ri *remoteInfo) SetRemoteAddr(addr net.Addr) bool { method Address (line 144) | func (ri *remoteInfo) Address() net.Addr { method SetTagLock (line 154) | func (ri *remoteInfo) SetTagLock(key string) { method SetTag (line 161) | func (ri *remoteInfo) SetTag(key, value string) error { method ForceSetTag (line 172) | func (ri *remoteInfo) ForceSetTag(key, value string) { method ImmutableView (line 179) | func (ri *remoteInfo) ImmutableView() rpcinfo.EndpointInfo { method zero (line 183) | func (ri *remoteInfo) zero() { method Recycle (line 198) | func (ri *remoteInfo) Recycle() { function init (line 69) | func init() { function newRemoteInfo (line 73) | func newRemoteInfo() interface{} { function NewRemoteInfo (line 210) | func NewRemoteInfo(basicInfo *rpcinfo.EndpointBasicInfo, method string) ... function AsRemoteInfo (line 224) | func AsRemoteInfo(r rpcinfo.EndpointInfo) RemoteInfo { FILE: pkg/rpcinfo/remoteinfo/remoteInfo_test.go function TestRemoteInfo (line 34) | func TestRemoteInfo(t *testing.T) { function TestAsRemoteInfo (line 55) | func TestAsRemoteInfo(t *testing.T) { function TestSetTag (line 101) | func TestSetTag(t *testing.T) { function TestGetTag (line 139) | func TestGetTag(t *testing.T) { function TestRecycleRace (line 189) | func TestRecycleRace(t *testing.T) { FILE: pkg/rpcinfo/rpcconfig.go constant BitRPCTimeout (line 46) | BitRPCTimeout = 1 << iota constant BitConnectTimeout (line 47) | BitConnectTimeout constant BitReadWriteTimeout (line 48) | BitReadWriteTimeout constant BitIOBufferSize (line 49) | BitIOBufferSize type InteractionMode (line 52) | type InteractionMode constant PingPong (line 55) | PingPong InteractionMode = 0 constant Oneway (line 56) | Oneway InteractionMode = 1 constant Streaming (line 57) | Streaming InteractionMode = 2 type rpcConfig (line 61) | type rpcConfig struct method LockConfig (line 87) | func (r *rpcConfig) LockConfig(bits int) { method SetRPCTimeout (line 92) | func (r *rpcConfig) SetRPCTimeout(to time.Duration) error { method IsRPCTimeoutLocked (line 101) | func (r *rpcConfig) IsRPCTimeoutLocked() bool { method SetConnectTimeout (line 106) | func (r *rpcConfig) SetConnectTimeout(to time.Duration) error { method IsConnectTimeoutLocked (line 115) | func (r *rpcConfig) IsConnectTimeoutLocked() bool { method SetReadWriteTimeout (line 120) | func (r *rpcConfig) SetReadWriteTimeout(to time.Duration) error { method IsReadWriteTimeoutLocked (line 129) | func (r *rpcConfig) IsReadWriteTimeoutLocked() bool { method SetIOBufferSize (line 134) | func (r *rpcConfig) SetIOBufferSize(sz int) error { method ImmutableView (line 143) | func (r *rpcConfig) ImmutableView() RPCConfig { method RPCTimeout (line 148) | func (r *rpcConfig) RPCTimeout() time.Duration { method ConnectTimeout (line 153) | func (r *rpcConfig) ConnectTimeout() time.Duration { method ReadWriteTimeout (line 158) | func (r *rpcConfig) ReadWriteTimeout() time.Duration { method IOBufferSize (line 163) | func (r *rpcConfig) IOBufferSize() int { method TransportProtocol (line 168) | func (r *rpcConfig) TransportProtocol() transport.Protocol { method SetTransportProtocol (line 173) | func (r *rpcConfig) SetTransportProtocol(tp transport.Protocol) error { method SetInteractionMode (line 184) | func (r *rpcConfig) SetInteractionMode(mode InteractionMode) error { method InteractionMode (line 189) | func (r *rpcConfig) InteractionMode() InteractionMode { method SetPayloadCodec (line 193) | func (r *rpcConfig) SetPayloadCodec(codec serviceinfo.PayloadCodec) { method PayloadCodec (line 197) | func (r *rpcConfig) PayloadCodec() serviceinfo.PayloadCodec { method SetStreamRecvTimeout (line 201) | func (r *rpcConfig) SetStreamRecvTimeout(timeout time.Duration) { method StreamRecvTimeout (line 205) | func (r *rpcConfig) StreamRecvTimeout() time.Duration { method SetStreamRecvTimeoutConfig (line 209) | func (r *rpcConfig) SetStreamRecvTimeoutConfig(cfg streaming.TimeoutCo... method StreamRecvTimeoutConfig (line 213) | func (r *rpcConfig) StreamRecvTimeoutConfig() streaming.TimeoutConfig { method Clone (line 218) | func (r *rpcConfig) Clone() MutableRPCConfig { method CopyFrom (line 224) | func (r *rpcConfig) CopyFrom(from RPCConfig) { method initialize (line 229) | func (r *rpcConfig) initialize() { method Recycle (line 240) | func (r *rpcConfig) Recycle() { function init (line 76) | func init() { function newRPCConfig (line 80) | func newRPCConfig() interface{} { function NewRPCConfig (line 246) | func NewRPCConfig() RPCConfig { FILE: pkg/rpcinfo/rpcconfig_test.go function TestRPCConfig (line 29) | func TestRPCConfig(t *testing.T) { function TestSetTransportProtocol (line 40) | func TestSetTransportProtocol(t *testing.T) { function TestStreamConfig (line 146) | func TestStreamConfig(t *testing.T) { FILE: pkg/rpcinfo/rpcinfo.go function init (line 32) | func init() { function EnablePool (line 46) | func EnablePool(enable bool) { function PoolEnabled (line 55) | func PoolEnabled() bool { type rpcInfo (line 59) | type rpcInfo struct method From (line 68) | func (r *rpcInfo) From() EndpointInfo { return r.from } method To (line 71) | func (r *rpcInfo) To() EndpointInfo { return r.to } method Config (line 74) | func (r *rpcInfo) Config() RPCConfig { return r.config } method Invocation (line 77) | func (r *rpcInfo) Invocation() Invocation { return r.invocation } method Stats (line 80) | func (r *rpcInfo) Stats() RPCStats { return r.stats } method zero (line 82) | func (r *rpcInfo) zero() { method Recycle (line 91) | func (r *rpcInfo) Recycle() { function init (line 114) | func init() { function NewRPCInfo (line 119) | func NewRPCInfo(from, to EndpointInfo, ink Invocation, config RPCConfig,... function newRPCInfo (line 129) | func newRPCInfo() interface{} { FILE: pkg/rpcinfo/rpcinfo_test.go function TestEnablePool (line 25) | func TestEnablePool(t *testing.T) { FILE: pkg/rpcinfo/rpcstats.go type event (line 42) | type event struct method Event (line 50) | func (e *event) Event() stats.Event { method Status (line 55) | func (e *event) Status() stats.Status { method Info (line 60) | func (e *event) Info() string { method Time (line 65) | func (e *event) Time() time.Time { method IsNil (line 70) | func (e *event) IsNil() bool { method zero (line 74) | func (e *event) zero() { method Recycle (line 82) | func (e *event) Recycle() { type atomicErr (line 87) | type atomicErr struct type atomicPanicErr (line 91) | type atomicPanicErr struct type rpcStats (line 95) | type rpcStats struct method Record (line 148) | func (r *rpcStats) Record(ctx context.Context, e stats.Event, status s... method SendSize (line 176) | func (r *rpcStats) SendSize() uint64 { method LastSendSize (line 181) | func (r *rpcStats) LastSendSize() uint64 { method RecvSize (line 186) | func (r *rpcStats) RecvSize() uint64 { method LastRecvSize (line 191) | func (r *rpcStats) LastRecvSize() uint64 { method Error (line 196) | func (r *rpcStats) Error() error { method Panicked (line 202) | func (r *rpcStats) Panicked() (bool, interface{}) { method GetEvent (line 208) | func (r *rpcStats) GetEvent(e stats.Event) Event { method Level (line 218) | func (r *rpcStats) Level() stats.Level { method CopyForRetry (line 224) | func (r *rpcStats) CopyForRetry() RPCStats { method SetSendSize (line 248) | func (r *rpcStats) SetSendSize(size uint64) { method IncrSendSize (line 254) | func (r *rpcStats) IncrSendSize(size uint64) { method SetRecvSize (line 261) | func (r *rpcStats) SetRecvSize(size uint64) { method IncrRecvSize (line 267) | func (r *rpcStats) IncrRecvSize(size uint64) { method SetError (line 273) | func (r *rpcStats) SetError(err error) { method SetPanicked (line 278) | func (r *rpcStats) SetPanicked(x interface{}) { method SetLevel (line 283) | func (r *rpcStats) SetLevel(level stats.Level) { method Reset (line 288) | func (r *rpcStats) Reset() { method ImmutableView (line 304) | func (r *rpcStats) ImmutableView() RPCStats { method Recycle (line 309) | func (r *rpcStats) Recycle() { constant eventUnset (line 114) | eventUnset uint32 = 0b0000 constant eventUpdating (line 115) | eventUpdating uint32 = 0b0001 constant eventRecorded (line 116) | eventRecorded uint32 = 0b0010 constant eventStale (line 127) | eventStale uint32 = 0b0100 | eventRecorded function newRPCStats (line 130) | func newRPCStats() *rpcStats { function NewRPCStats (line 138) | func NewRPCStats() RPCStats { function NewEvent (line 166) | func NewEvent(statsEvent stats.Event, status stats.Status, info string) ... FILE: pkg/rpcinfo/rpcstats_test.go function TestRPCStats (line 30) | func TestRPCStats(t *testing.T) { function TestRPCStats_Record (line 91) | func TestRPCStats_Record(t *testing.T) { function BenchmarkCopyForRetry (line 113) | func BenchmarkCopyForRetry(b *testing.B) { function TestNewEvent (line 129) | func TestNewEvent(t *testing.T) { function Test_rpcStats_LastSendSize (line 138) | func Test_rpcStats_LastSendSize(t *testing.T) { function Test_rpcStats_LastRecvSize (line 148) | func Test_rpcStats_LastRecvSize(t *testing.T) { FILE: pkg/rpcinfo/stats_util.go function Record (line 29) | func Record(ctx context.Context, ri RPCInfo, event stats.Event, err erro... function CalcEventCostUs (line 45) | func CalcEventCostUs(start, end Event) uint64 { function ClientPanicToErr (line 53) | func ClientPanicToErr(ctx context.Context, panicInfo interface{}, ri RPC... FILE: pkg/rpcinfo/stats_util_test.go function TestUtil (line 28) | func TestUtil(t *testing.T) { FILE: pkg/rpcinfo/stream_tracer.go type ClientStreamEventHandler (line 29) | type ClientStreamEventHandler struct type ServerStreamEventHandler (line 38) | type ServerStreamEventHandler struct type StreamStartEvent (line 48) | type StreamStartEvent struct type StreamRecvEvent (line 53) | type StreamRecvEvent struct type StreamSendEvent (line 61) | type StreamSendEvent struct type StreamRecvHeaderEvent (line 69) | type StreamRecvHeaderEvent struct type StreamFinishEvent (line 78) | type StreamFinishEvent struct method AppendClientStreamEventHandler (line 85) | func (c *TraceController) AppendClientStreamEventHandler(hdl ClientStrea... method AppendServerStreamEventHandler (line 105) | func (c *TraceController) AppendServerStreamEventHandler(hdl ServerStrea... method HandleStreamStartEvent (line 120) | func (c *TraceController) HandleStreamStartEvent(ctx context.Context, ri... method HandleStreamRecvEvent (line 131) | func (c *TraceController) HandleStreamRecvEvent(ctx context.Context, ri ... method HandleStreamSendEvent (line 146) | func (c *TraceController) HandleStreamSendEvent(ctx context.Context, ri ... method HandleStreamRecvHeaderEvent (line 158) | func (c *TraceController) HandleStreamRecvHeaderEvent(ctx context.Contex... method HandleStreamFinishEvent (line 169) | func (c *TraceController) HandleStreamFinishEvent(ctx context.Context, r... method handleStreamRecvEventWrapper (line 181) | func (c *TraceController) handleStreamRecvEventWrapper(reporter StreamEv... method handleStreamSendEventWrapper (line 188) | func (c *TraceController) handleStreamSendEventWrapper(reporter StreamEv... method commonStreamIOEventWrapper (line 194) | func (c *TraceController) commonStreamIOEventWrapper(ctx context.Context... FILE: pkg/rpcinfo/stream_tracer_test.go function TestAppendStreamEventHandler (line 27) | func TestAppendStreamEventHandler(t *testing.T) { function TestTraceController_HandleStreamStartEvent (line 107) | func TestTraceController_HandleStreamStartEvent(t *testing.T) { function TestTraceController_HandleStreamRecvEvent (line 184) | func TestTraceController_HandleStreamRecvEvent(t *testing.T) { function TestTraceController_HandleStreamSendEvent (line 267) | func TestTraceController_HandleStreamSendEvent(t *testing.T) { function TestTraceController_HandleStreamRecvHeaderEvent (line 350) | func TestTraceController_HandleStreamRecvHeaderEvent(t *testing.T) { function TestTraceController_HandleStreamFinishEvent (line 420) | func TestTraceController_HandleStreamFinishEvent(t *testing.T) { FILE: pkg/rpcinfo/tracer.go type StreamEventReporter (line 31) | type StreamEventReporter interface type TraceController (line 38) | type TraceController struct method Append (line 50) | func (c *TraceController) Append(col stats.Tracer) { method DoStart (line 60) | func (c *TraceController) DoStart(ctx context.Context, ri RPCInfo) con... method DoFinish (line 71) | func (c *TraceController) DoFinish(ctx context.Context, ri RPCInfo, er... method ReportStreamEvent (line 94) | func (c *TraceController) ReportStreamEvent(ctx context.Context, stats... method GetStreamEventHandler (line 120) | func (c *TraceController) GetStreamEventHandler() stream.StreamEventHa... method HasTracer (line 128) | func (c *TraceController) HasTracer() bool { method HasStreamEventReporter (line 133) | func (c *TraceController) HasStreamEventReporter() bool { method tryRecover (line 137) | func (c *TraceController) tryRecover(ctx context.Context) { function buildStreamingEvent (line 85) | func buildStreamingEvent(statsEvent stats.Event, err error) Event { FILE: pkg/rpcinfo/tracer_test.go type mockTracer (line 31) | type mockTracer struct method Start (line 38) | func (mt *mockTracer) Start(ctx context.Context) context.Context { method Finish (line 46) | func (mt *mockTracer) Finish(ctx context.Context) { function TestOrder (line 53) | func TestOrder(t *testing.T) { function TestPanic (line 79) | func TestPanic(t *testing.T) { type mockStreamReporter (line 108) | type mockStreamReporter struct method ReportStreamEvent (line 113) | func (m mockStreamReporter) ReportStreamEvent(ctx context.Context, ri ... function TestTraceController_AppendStreamEventReporter (line 117) | func TestTraceController_AppendStreamEventReporter(t *testing.T) { function TestTraceController_ReportStreamEvent (line 133) | func TestTraceController_ReportStreamEvent(t *testing.T) { function Test_buildStreamingEvent (line 179) | func Test_buildStreamingEvent(t *testing.T) { FILE: pkg/rpctimeout/item_rpc_timeout.go constant TypeRPCTimeout (line 36) | TypeRPCTimeout iface.ItemType = "rpc_timeout" constant wildcardMethod (line 38) | wildcardMethod = "*" type RPCTimeout (line 46) | type RPCTimeout struct method DeepCopy (line 62) | func (r *RPCTimeout) DeepCopy() iface.ConfigValueItem { method EqualsTo (line 71) | func (r *RPCTimeout) EqualsTo(other iface.ConfigValueItem) bool { method RPCTimeout (line 78) | func (r *RPCTimeout) RPCTimeout() time.Duration { method ConnectTimeout (line 83) | func (r *RPCTimeout) ConnectTimeout() time.Duration { method ReadWriteTimeout (line 88) | func (r *RPCTimeout) ReadWriteTimeout() time.Duration { function CopyDefaultRPCTimeout (line 57) | func CopyDefaultRPCTimeout() iface.ConfigValueItem { function NewContainer (line 93) | func NewContainer() *Container { type rpcTimeoutConfig (line 103) | type rpcTimeoutConfig struct type Container (line 111) | type Container struct method NotifyPolicyChange (line 116) | func (c *Container) NotifyPolicyChange(configs map[string]*RPCTimeout) { method Timeouts (line 138) | func (c *Container) Timeouts(ri rpcinfo.RPCInfo) rpcinfo.Timeouts { FILE: pkg/rpctimeout/rpctimeout.go type timeoutAdjustKeyType (line 28) | type timeoutAdjustKeyType constant TimeoutAdjustKey (line 33) | TimeoutAdjustKey timeoutAdjustKeyType = 1 function MiddlewareBuilder (line 38) | func MiddlewareBuilder(moreTimeout time.Duration) endpoint.MiddlewareBui... function EnableGlobalNeedFineGrainedErrCode (line 52) | func EnableGlobalNeedFineGrainedErrCode() { function DisableGlobalNeedFineGrainedErrCode (line 57) | func DisableGlobalNeedFineGrainedErrCode() { function LoadGlobalNeedFineGrainedErrCode (line 62) | func LoadGlobalNeedFineGrainedErrCode() bool { function SetBusinessTimeoutThreshold (line 71) | func SetBusinessTimeoutThreshold(t time.Duration) { function LoadBusinessTimeoutThreshold (line 77) | func LoadBusinessTimeoutThreshold() time.Duration { FILE: pkg/serviceinfo/serviceinfo.go type PayloadCodec (line 24) | type PayloadCodec method String (line 195) | func (p PayloadCodec) String() string { constant Thrift (line 28) | Thrift PayloadCodec = iota constant Protobuf (line 29) | Protobuf constant Hessian2 (line 30) | Hessian2 constant GenericService (line 35) | GenericService = "$GenericService" constant GenericMethod (line 37) | GenericMethod = "$GenericCall" constant PackageName (line 39) | PackageName = "PackageName" constant CombineServiceKey (line 41) | CombineServiceKey = "combine_service" constant CombineServiceName (line 43) | CombineServiceName = "CombineService" type GenericMethodFunc (line 46) | type GenericMethodFunc type ServiceInfo (line 49) | type ServiceInfo struct method GetPackageName (line 82) | func (i *ServiceInfo) GetPackageName() (pkg string) { method MethodInfo (line 91) | func (i *ServiceInfo) MethodInfo(ctx context.Context, name string) Met... type StreamingMode (line 105) | type StreamingMode constant StreamingNone (line 108) | StreamingNone StreamingMode = 0b0000 constant StreamingUnary (line 109) | StreamingUnary StreamingMode = 0b0001 constant StreamingClient (line 110) | StreamingClient StreamingMode = 0b0010 constant StreamingServer (line 111) | StreamingServer StreamingMode = 0b0100 constant StreamingBidirectional (line 112) | StreamingBidirectional StreamingMode = 0b0110 type MethodInfo (line 116) | type MethodInfo interface type MethodHandler (line 126) | type MethodHandler type MethodInfoOption (line 129) | type MethodInfoOption function WithStreamingMode (line 132) | func WithStreamingMode(mode StreamingMode) MethodInfoOption { function NewMethodInfo (line 142) | func NewMethodInfo(methodHandler MethodHandler, newArgsFunc, newResultFu... type methodInfo (line 157) | type methodInfo struct method Handler (line 167) | func (m methodInfo) Handler() MethodHandler { method NewArgs (line 172) | func (m methodInfo) NewArgs() interface{} { method NewResult (line 177) | func (m methodInfo) NewResult() interface{} { method OneWay (line 182) | func (m methodInfo) OneWay() bool { method IsStreaming (line 186) | func (m methodInfo) IsStreaming() bool { method StreamingMode (line 190) | func (m methodInfo) StreamingMode() StreamingMode { FILE: pkg/serviceinfo/serviceinfo_test.go function TestServiceInfo (line 27) | func TestServiceInfo(t *testing.T) { function TestMethodInfo (line 44) | func TestMethodInfo(t *testing.T) { function TestPayloadCodec (line 59) | func TestPayloadCodec(t *testing.T) { function TestNewMethodInfoStreaming (line 67) | func TestNewMethodInfoStreaming(t *testing.T) { FILE: pkg/stats/event.go type EventIndex (line 26) | type EventIndex type Level (line 29) | type Level constant LevelDisabled (line 33) | LevelDisabled Level = iota constant LevelBase (line 34) | LevelBase constant LevelDetailed (line 35) | LevelDetailed type Event (line 39) | type Event interface type event (line 44) | type event struct method Index (line 50) | func (e event) Index() EventIndex { method Level (line 55) | func (e event) Level() Level { constant _ (line 60) | _ EventIndex = iota constant serverHandleStart (line 61) | serverHandleStart constant serverHandleFinish (line 62) | serverHandleFinish constant clientConnStart (line 63) | clientConnStart constant clientConnFinish (line 64) | clientConnFinish constant rpcStart (line 65) | rpcStart constant rpcFinish (line 66) | rpcFinish constant readStart (line 67) | readStart constant readFinish (line 68) | readFinish constant waitReadStart (line 69) | waitReadStart constant waitReadFinish (line 70) | waitReadFinish constant writeStart (line 71) | writeStart constant writeFinish (line 72) | writeFinish constant streamRecv (line 73) | streamRecv constant streamSend (line 74) | streamSend constant checksumGenerateStart (line 75) | checksumGenerateStart constant checksumGenerateFinish (line 76) | checksumGenerateFinish constant checksumValidateStart (line 77) | checksumValidateStart constant checksumValidateFinish (line 78) | checksumValidateFinish constant streamStart (line 79) | streamStart constant streamRecvHeader (line 80) | streamRecvHeader constant streamFinish (line 81) | streamFinish constant predefinedEventNum (line 84) | predefinedEventNum function FinishInitialization (line 129) | func FinishInitialization() { function DefineNewEvent (line 136) | func DefineNewEvent(name string, level Level) (Event, error) { function MaxEventNum (line 152) | func MaxEventNum() int { function PredefinedEventNum (line 159) | func PredefinedEventNum() int { function newEvent (line 163) | func newEvent(idx EventIndex, level Level) Event { FILE: pkg/stats/event_test.go function TestDefineNewEvent (line 25) | func TestDefineNewEvent(t *testing.T) { FILE: pkg/stats/status.go type Status (line 20) | type Status constant StatusInfo (line 24) | StatusInfo Status = 1 constant StatusWarn (line 25) | StatusWarn Status = 2 constant StatusError (line 26) | StatusError Status = 3 FILE: pkg/stats/tracer.go type Tracer (line 24) | type Tracer interface FILE: pkg/streaming/context.go type streamKey (line 24) | type streamKey struct function NewCtxWithStream (line 28) | func NewCtxWithStream(ctx context.Context, stream Stream) context.Context { function GetStream (line 33) | func GetStream(ctx context.Context) Stream { FILE: pkg/streaming/streaming.go type Stream (line 29) | type Stream interface type WithDoFinish (line 66) | type WithDoFinish interface type CloseCallbackRegister (line 71) | type CloseCallbackRegister interface type Args (line 76) | type Args struct type Result (line 84) | type Result struct type GRPCStreamGetter (line 91) | type GRPCStreamGetter interface FILE: pkg/streaming/streamx.go type Header (line 71) | type Header type Trailer (line 72) | type Trailer type ClientStream (line 76) | type ClientStream interface type ServerStream (line 103) | type ServerStream interface type ServerStreamingClient (line 129) | type ServerStreamingClient interface function NewServerStreamingClient (line 135) | func NewServerStreamingClient[Res any](st ClientStream) ServerStreamingC... type serverStreamingClientImpl (line 139) | type serverStreamingClientImpl struct method Recv (line 143) | func (s *serverStreamingClientImpl[Res]) Recv(ctx context.Context) (*Res... type ServerStreamingServer (line 149) | type ServerStreamingServer interface function NewServerStreamingServer (line 155) | func NewServerStreamingServer[Res any](st ServerStream) ServerStreamingS... type serverStreamingServerImpl (line 159) | type serverStreamingServerImpl struct method Send (line 163) | func (s *serverStreamingServerImpl[Res]) Send(ctx context.Context, res *... type ClientStreamingClient (line 168) | type ClientStreamingClient interface function NewClientStreamingClient (line 175) | func NewClientStreamingClient[Req, Res any](st ClientStream) ClientStrea... type clientStreamingClientImpl (line 179) | type clientStreamingClientImpl struct method Send (line 183) | func (s *clientStreamingClientImpl[Req, Res]) Send(ctx context.Context, ... method CloseAndRecv (line 187) | func (s *clientStreamingClientImpl[Req, Res]) CloseAndRecv(ctx context.C... type ClientStreamingServer (line 196) | type ClientStreamingServer interface function NewClientStreamingServer (line 203) | func NewClientStreamingServer[Req, Res any](st ServerStream) ClientStrea... type clientStreamingServerImpl (line 207) | type clientStreamingServerImpl struct method Recv (line 211) | func (s *clientStreamingServerImpl[Req, Res]) Recv(ctx context.Context) ... method SendAndClose (line 216) | func (s *clientStreamingServerImpl[Req, Res]) SendAndClose(ctx context.C... type BidiStreamingClient (line 221) | type BidiStreamingClient interface function NewBidiStreamingClient (line 228) | func NewBidiStreamingClient[Req, Res any](st ClientStream) BidiStreaming... type bidiStreamingClientImpl (line 232) | type bidiStreamingClientImpl struct method Send (line 236) | func (s *bidiStreamingClientImpl[Req, Res]) Send(ctx context.Context, re... method Recv (line 240) | func (s *bidiStreamingClientImpl[Req, Res]) Recv(ctx context.Context) (*... type BidiStreamingServer (line 246) | type BidiStreamingServer interface function NewBidiStreamingServer (line 253) | func NewBidiStreamingServer[Req, Res any](st ServerStream) BidiStreaming... type bidiStreamingServerImpl (line 257) | type bidiStreamingServerImpl struct method Recv (line 261) | func (s *bidiStreamingServerImpl[Req, Res]) Recv(ctx context.Context) (*... method Send (line 266) | func (s *bidiStreamingServerImpl[Req, Res]) Send(ctx context.Context, re... type EventHandler (line 271) | type EventHandler FILE: pkg/streaming/timeout.go type TimeoutConfig (line 30) | type TimeoutConfig struct function CallWithTimeout (line 49) | func CallWithTimeout(timeout time.Duration, cancel context.CancelFunc, f... FILE: pkg/streaming/timeout_test.go function TestCallWithTimeout (line 28) | func TestCallWithTimeout(t *testing.T) { FILE: pkg/streaming/util.go constant KitexUnusedProtection (line 28) | KitexUnusedProtection = 0 function UnaryCompatibleMiddleware (line 33) | func UnaryCompatibleMiddleware(mode serviceinfo.StreamingMode, allow boo... function FinishStream (line 43) | func FinishStream(s Stream, err error) { function FinishClientStream (line 60) | func FinishClientStream(s ClientStream, err error) { function GetServerStreamFromArg (line 73) | func GetServerStreamFromArg(arg interface{}) (ServerStream, error) { FILE: pkg/streaming/util_test.go function TestUnaryCompatibleMiddleware (line 27) | func TestUnaryCompatibleMiddleware(t *testing.T) { type mockStream (line 42) | type mockStream struct type mockStreamWithDoFinish (line 46) | type mockStreamWithDoFinish struct method DoFinish (line 51) | func (m *mockStreamWithDoFinish) DoFinish(err error) { function TestFinishStream (line 55) | func TestFinishStream(t *testing.T) { FILE: pkg/transmeta/http2.go type clientHTTP2Handler (line 33) | type clientHTTP2Handler struct method OnConnectStream (line 45) | func (*clientHTTP2Handler) OnConnectStream(ctx context.Context) (conte... method OnReadStream (line 62) | func (*clientHTTP2Handler) OnReadStream(ctx context.Context) (context.... method WriteMeta (line 66) | func (ch *clientHTTP2Handler) WriteMeta(ctx context.Context, msg remot... method ReadMeta (line 70) | func (ch *clientHTTP2Handler) ReadMeta(ctx context.Context, msg remote... function metaAppend (line 41) | func metaAppend(m metadata.MD, k, v string) { type serverHTTP2Handler (line 77) | type serverHTTP2Handler struct method OnConnectStream (line 79) | func (*serverHTTP2Handler) OnConnectStream(ctx context.Context) (conte... method OnReadStream (line 83) | func (*serverHTTP2Handler) OnReadStream(ctx context.Context) (context.... method WriteMeta (line 104) | func (sh *serverHTTP2Handler) WriteMeta(ctx context.Context, msg remot... method ReadMeta (line 108) | func (sh *serverHTTP2Handler) ReadMeta(ctx context.Context, msg remote... function isGRPC (line 112) | func isGRPC(ri rpcinfo.RPCInfo) bool { FILE: pkg/transmeta/http2_test.go function TestIsGRPC (line 32) | func TestIsGRPC(t *testing.T) { function TestHTTP2ClientOnConnectStream (line 233) | func TestHTTP2ClientOnConnectStream(t *testing.T) { function TestHTTP2ServerOnReadStream (line 260) | func TestHTTP2ServerOnReadStream(t *testing.T) { FILE: pkg/transmeta/metainfo.go type metainfoClientHandler (line 42) | type metainfoClientHandler struct method OnConnectStream (line 44) | func (mi *metainfoClientHandler) OnConnectStream(ctx context.Context) ... method OnReadStream (line 64) | func (mi *metainfoClientHandler) OnReadStream(ctx context.Context) (co... method WriteMeta (line 68) | func (mi *metainfoClientHandler) WriteMeta(ctx context.Context, sendMs... method ReadMeta (line 77) | func (mi *metainfoClientHandler) ReadMeta(ctx context.Context, recvMsg... type metainfoServerHandler (line 86) | type metainfoServerHandler struct method ReadMeta (line 88) | func (mi *metainfoServerHandler) ReadMeta(ctx context.Context, recvMsg... method OnConnectStream (line 96) | func (mi *metainfoServerHandler) OnConnectStream(ctx context.Context) ... method OnReadStream (line 100) | func (mi *metainfoServerHandler) OnReadStream(ctx context.Context) (co... method WriteMeta (line 126) | func (mi *metainfoServerHandler) WriteMeta(ctx context.Context, sendMs... function addStreamIDToContext (line 117) | func addStreamIDToContext(ctx context.Context, md metadata.MD) context.C... FILE: pkg/transmeta/metainfo_test.go function TestClientReadMetainfo (line 35) | func TestClientReadMetainfo(t *testing.T) { function TestClientWriteMetainfo (line 60) | func TestClientWriteMetainfo(t *testing.T) { function TestServerReadMetainfo (line 88) | func TestServerReadMetainfo(t *testing.T) { function TestServerWriteMetainfo (line 126) | func TestServerWriteMetainfo(t *testing.T) { function Test_addStreamID (line 152) | func Test_addStreamID(t *testing.T) { FILE: pkg/transmeta/ttheader.go constant framedTransportType (line 35) | framedTransportType = "framed" constant unframedTransportType (line 36) | unframedTransportType = "unframed" constant bizStatus (line 39) | bizStatus = "biz-status" constant bizMessage (line 40) | bizMessage = "biz-message" constant bizExtra (line 41) | bizExtra = "biz-extra" type clientTTHeaderHandler (line 51) | type clientTTHeaderHandler struct method WriteMeta (line 54) | func (ch *clientTTHeaderHandler) WriteMeta(ctx context.Context, msg re... method ReadMeta (line 111) | func (ch *clientTTHeaderHandler) ReadMeta(ctx context.Context, msg rem... function getIDLSvcName (line 92) | func getIDLSvcName(ri rpcinfo.RPCInfo) string { function ParseBizStatusErr (line 134) | func ParseBizStatusErr(strInfo map[string]string) (kerrors.BizStatusErro... type serverTTHeaderHandler (line 150) | type serverTTHeaderHandler struct method ReadMeta (line 153) | func (sh *serverTTHeaderHandler) ReadMeta(ctx context.Context, msg rem... method WriteMeta (line 181) | func (sh *serverTTHeaderHandler) WriteMeta(ctx context.Context, msg re... function isTTHeader (line 206) | func isTTHeader(msg remote.Message) bool { FILE: pkg/transmeta/ttheader_test.go function TestIsTTHeader (line 33) | func TestIsTTHeader(t *testing.T) { function TestTTHeaderClientWriteMetainfo (line 52) | func TestTTHeaderClientWriteMetainfo(t *testing.T) { function TestTTHeaderServerReadMetainfo (line 98) | func TestTTHeaderServerReadMetainfo(t *testing.T) { function TestTTHeaderServerWriteMetainfo (line 129) | func TestTTHeaderServerWriteMetainfo(t *testing.T) { FILE: pkg/utils/byte2str.go function SliceByteToString (line 26) | func SliceByteToString(b []byte) string { function StringToSliceByte (line 32) | func StringToSliceByte(s string) []byte { FILE: pkg/utils/byte2str_test.go function TestSliceByteToString (line 25) | func TestSliceByteToString(t *testing.T) { function TestStringToSliceByte (line 32) | func TestStringToSliceByte(t *testing.T) { FILE: pkg/utils/config.go constant EnvConfDir (line 27) | EnvConfDir = "KITEX_CONF_DIR" constant EnvConfFile (line 28) | EnvConfFile = "KITEX_CONF_FILE" constant EnvLogDir (line 29) | EnvLogDir = "KITEX_LOG_DIR" constant DefaultConfDir (line 31) | DefaultConfDir = "conf" constant DefaultConfFile (line 32) | DefaultConfFile = "kitex.yml" constant DefaultLogDir (line 33) | DefaultLogDir = "log" function GetConfDir (line 37) | func GetConfDir() string { function GetConfFile (line 45) | func GetConfFile() string { function GetEnvLogDir (line 54) | func GetEnvLogDir() string { function GetLogDir (line 60) | func GetLogDir() string { FILE: pkg/utils/config_test.go function TestGetConfDir (line 27) | func TestGetConfDir(t *testing.T) { function TestGetConfFile (line 37) | func TestGetConfFile(t *testing.T) { function TestGetEnvLogDir (line 47) | func TestGetEnvLogDir(t *testing.T) { function TestGetLogDir (line 57) | func TestGetLogDir(t *testing.T) { FILE: pkg/utils/contextmap/contextmap.go type contextMapKey (line 24) | type contextMapKey struct function WithContextMap (line 32) | func WithContextMap(ctx context.Context) context.Context { function GetContextMap (line 37) | func GetContextMap(ctx context.Context) (m *sync.Map, ok bool) { FILE: pkg/utils/contextmap/contextmap_test.go function TestContextMap (line 24) | func TestContextMap(t *testing.T) { FILE: pkg/utils/counter.go type AtomicInt (line 22) | type AtomicInt method Inc (line 25) | func (i *AtomicInt) Inc() { method Dec (line 30) | func (i *AtomicInt) Dec() { method Value (line 35) | func (i *AtomicInt) Value() int { FILE: pkg/utils/counter_test.go function TestAtomicInt_Inc (line 26) | func TestAtomicInt_Inc(t *testing.T) { function TestAtomicInt_Dec (line 42) | func TestAtomicInt_Dec(t *testing.T) { function TestAtomicInt_Value (line 58) | func TestAtomicInt_Value(t *testing.T) { FILE: pkg/utils/err_chain.go constant DefaultErrorSeparator (line 23) | DefaultErrorSeparator = " | " type ErrChain (line 27) | type ErrChain struct method UseSeparator (line 33) | func (e *ErrChain) UseSeparator(sep string) { method Append (line 38) | func (e *ErrChain) Append(err error) { method HasError (line 43) | func (e ErrChain) HasError() bool { method Error (line 48) | func (e ErrChain) Error() string { FILE: pkg/utils/err_chain_test.go function TestErrChain (line 26) | func TestErrChain(t *testing.T) { FILE: pkg/utils/fastthrift/fastthrift.go function FastMarshal (line 25) | func FastMarshal(msg thrift.FastCodec) []byte { function FastUnmarshal (line 31) | func FastUnmarshal(buf []byte, msg thrift.FastCodec) error { FILE: pkg/utils/fastthrift/fastthrift_test.go function newRequest (line 31) | func newRequest() *mocks.MockReq { function TestFastThrift (line 43) | func TestFastThrift(t *testing.T) { FILE: pkg/utils/func.go function GetFuncName (line 25) | func GetFuncName(i interface{}) string { FILE: pkg/utils/func_test.go function dump (line 26) | func dump() { /* just an empty function */ } function TestGetFuncName (line 28) | func TestGetFuncName(t *testing.T) { FILE: pkg/utils/int_len.go function GetUIntLen (line 20) | func GetUIntLen(n uint64) int { FILE: pkg/utils/int_len_test.go function TestGetUIntLen (line 21) | func TestGetUIntLen(t *testing.T) { FILE: pkg/utils/interface.go type KitexArgs (line 21) | type KitexArgs interface type KitexResult (line 27) | type KitexResult interface FILE: pkg/utils/json.go constant EmptyJSON (line 55) | EmptyJSON = "{}" constant Comma (line 56) | Comma = ',' constant Colon (line 57) | Colon = ':' constant DQuotation (line 58) | DQuotation = '"' constant LeftBrace (line 59) | LeftBrace = '{' constant RightBrace (line 60) | RightBrace = '}' constant t1 (line 64) | t1 = 0x00 constant tx (line 65) | tx = 0x80 constant t2 (line 66) | t2 = 0xC0 constant t3 (line 67) | t3 = 0xE0 constant t4 (line 68) | t4 = 0xF0 constant t5 (line 69) | t5 = 0xF8 constant maskx (line 71) | maskx = 0x3F constant rune1Max (line 73) | rune1Max = 1<<7 - 1 constant rune2Max (line 74) | rune2Max = 1<<11 - 1 constant rune3Max (line 75) | rune3Max = 1<<16 - 1 constant surrogateMin (line 77) | surrogateMin = 0xD800 constant surrogateMax (line 78) | surrogateMax = 0xDFFF constant maxRune (line 80) | maxRune = '\U0010FFFF' constant runeError (line 81) | runeError = '\uFFFD' constant hex (line 83) | hex = "0123456789abcdef" function _Map2JSONStr (line 87) | func _Map2JSONStr(mapInfo map[string]string) (str string, err error) { function _JSONStr2Map (line 123) | func _JSONStr2Map(jsonStr string) (mapInfo map[string]string, err error) { function readString (line 171) | func readString(buf []byte, idx, lastIdx int) (string, int, error) { function readByte (line 221) | func readByte(buf []byte, idx, lastIdx int) (byte, int, error) { function nextToken (line 230) | func nextToken(buf []byte, idx, lastIdx int) (byte, int, error) { function checkNull (line 247) | func checkNull(c byte, data []byte, idx, lastIdx int) (int, bool) { function readU4 (line 269) | func readU4(buf []byte, idx, lastIdx int) (rune, int, error) { function readEscapedChar (line 291) | func readEscapedChar(c byte, buf []byte, idx int, str []byte, lastIdx in... function wrapStrWithQuotation (line 353) | func wrapStrWithQuotation(s string, strBuilder *strings.Builder) { function appendRune (line 432) | func appendRune(p []byte, r rune) []byte { FILE: pkg/utils/json_fuzz_test.go function FuzzJSONStr2Map (line 32) | func FuzzJSONStr2Map(f *testing.F) { function FuzzMap2JSON (line 54) | func FuzzMap2JSON(f *testing.F) { FILE: pkg/utils/json_sonic.go function Map2JSONStr (line 33) | func Map2JSONStr(mapInfo map[string]string) (str string, err error) { function JSONStr2Map (line 47) | func JSONStr2Map(jsonStr string) (mapInfo map[string]string, err error) { FILE: pkg/utils/json_test.go function BenchmarkMap2JSONStr (line 42) | func BenchmarkMap2JSONStr(b *testing.B) { function BenchmarkJSONStr2Map (line 54) | func BenchmarkJSONStr2Map(b *testing.B) { function BenchmarkJSONMarshal (line 67) | func BenchmarkJSONMarshal(b *testing.B) { function BenchmarkJSONUnmarshal (line 76) | func BenchmarkJSONUnmarshal(b *testing.B) { function TestMap2JSONStr (line 88) | func TestMap2JSONStr(t *testing.T) { function TestJSONStr2Map (line 142) | func TestJSONStr2Map(t *testing.T) { function TestJSONUtil (line 220) | func TestJSONUtil(t *testing.T) { function prepareMap (line 257) | func prepareMap() map[string]string { function prepareMap2 (line 281) | func prepareMap2(keyLen, valLen, count, escaped int) map[string]string { function jsonMarshal (line 299) | func jsonMarshal(userExtraMap map[string]string) (string, error) { function TestJSONRecover (line 304) | func TestJSONRecover(t *testing.T) { FILE: pkg/utils/kitexutil/kitexutil.go function GetCaller (line 30) | func GetCaller(ctx context.Context) (string, bool) { function GetCallee (line 42) | func GetCallee(ctx context.Context) (string, bool) { function GetMethod (line 54) | func GetMethod(ctx context.Context) (string, bool) { function GetCallerHandlerMethod (line 67) | func GetCallerHandlerMethod(ctx context.Context) (string, bool) { function GetIDLServiceName (line 79) | func GetIDLServiceName(ctx context.Context) (string, bool) { function GetCallerAddr (line 91) | func GetCallerAddr(ctx context.Context) (net.Addr, bool) { function GetCallerIP (line 103) | func GetCallerIP(ctx context.Context) (string, bool) { function GetTransportProtocol (line 123) | func GetTransportProtocol(ctx context.Context) (string, bool) { function GetRPCInfo (line 135) | func GetRPCInfo(ctx context.Context) (rpcinfo.RPCInfo, bool) { function GetRealReqFromKitexArgs (line 146) | func GetRealReqFromKitexArgs(req interface{}) interface{} { function GetRealRespFromKitexResult (line 155) | func GetRealRespFromKitexResult(resp interface{}) interface{} { FILE: pkg/utils/kitexutil/kitexutil_test.go function TestMain (line 46) | func TestMain(m *testing.M) { function TestGetCaller (line 56) | func TestGetCaller(t *testing.T) { function TestGetCallee (line 83) | func TestGetCallee(t *testing.T) { function TestGetCallerAddr (line 110) | func TestGetCallerAddr(t *testing.T) { function TestGetCallerIP (line 140) | func TestGetCallerIP(t *testing.T) { function TestGetMethod (line 165) | func TestGetMethod(t *testing.T) { function TestGetCallerHandlerMethod (line 191) | func TestGetCallerHandlerMethod(t *testing.T) { function TestGetIDLServiceName (line 218) | func TestGetIDLServiceName(t *testing.T) { function TestGetRPCInfo (line 245) | func TestGetRPCInfo(t *testing.T) { function TestGetCtxTransportProtocol (line 271) | func TestGetCtxTransportProtocol(t *testing.T) { function TestGetRealRequest (line 298) | func TestGetRealRequest(t *testing.T) { function TestGetRealResponse (line 322) | func TestGetRealResponse(t *testing.T) { function buildRPCInfo (line 346) | func buildRPCInfo(caller, fromMethod, callee, method, idlServiceName str... type panicRPCInfo (line 358) | type panicRPCInfo struct method From (line 360) | func (m *panicRPCInfo) From() rpcinfo.EndpointInfo { panic("Panic ... method To (line 361) | func (m *panicRPCInfo) To() rpcinfo.EndpointInfo { panic("Panic ... method Invocation (line 362) | func (m *panicRPCInfo) Invocation() rpcinfo.Invocation { panic("Panic ... method Config (line 363) | func (m *panicRPCInfo) Config() rpcinfo.RPCConfig { panic("Panic ... method Stats (line 364) | func (m *panicRPCInfo) Stats() rpcinfo.RPCStats { panic("Panic ... FILE: pkg/utils/max_counter.go type MaxCounter (line 22) | type MaxCounter struct method Inc (line 35) | func (cl *MaxCounter) Inc() bool { method Dec (line 44) | func (cl *MaxCounter) Dec() { method DecN (line 49) | func (cl *MaxCounter) DecN(n int64) { method Now (line 53) | func (cl *MaxCounter) Now() int64 { function NewMaxCounter (line 28) | func NewMaxCounter(max int) *MaxCounter { FILE: pkg/utils/max_counter_test.go function TestMaxCounter_Inc (line 27) | func TestMaxCounter_Inc(t *testing.T) { function TestMaxCounter_Dec (line 76) | func TestMaxCounter_Dec(t *testing.T) { FILE: pkg/utils/netaddr.go type NetAddr (line 24) | type NetAddr struct method Network (line 35) | func (na *NetAddr) Network() string { method String (line 40) | func (na *NetAddr) String() string { function NewNetAddr (line 30) | func NewNetAddr(network, address string) net.Addr { FILE: pkg/utils/netaddr_test.go function TestNetAddr (line 26) | func TestNetAddr(t *testing.T) { FILE: pkg/utils/ring.go function NewRing (line 29) | func NewRing(size int) *Ring { type Ring (line 56) | type Ring struct method Push (line 62) | func (r *Ring) Push(obj interface{}) error { method Pop (line 78) | func (r *Ring) Pop() interface{} { method Dump (line 94) | func (r *Ring) Dump() interface{} { FILE: pkg/utils/ring_single.go type ring (line 22) | type ring struct method Push (line 44) | func (r *ring) Push(i interface{}) error { method Pop (line 56) | func (r *ring) Pop() interface{} { method Dump (line 75) | func (r *ring) Dump(m *ringDump) { method inc (line 86) | func (r *ring) inc() int { method dec (line 90) | func (r *ring) dec() int { method isEmpty (line 94) | func (r *ring) isEmpty() bool { method isFull (line 98) | func (r *ring) isFull() bool { function newRing (line 31) | func newRing(size int) *ring { type ringDump (line 68) | type ringDump struct FILE: pkg/utils/ring_test.go function TestNewRing (line 28) | func TestNewRing(t *testing.T) { function TestRing_Push (line 50) | func TestRing_Push(t *testing.T) { function TestRing_Pop (line 71) | func TestRing_Pop(t *testing.T) { function TestRing_Dump (line 98) | func TestRing_Dump(t *testing.T) { function TestRing_SingleDump (line 116) | func TestRing_SingleDump(t *testing.T) { function TestRing_Parallel (line 134) | func TestRing_Parallel(t *testing.T) { function BenchmarkRing (line 168) | func BenchmarkRing(b *testing.B) { function BenchmarkRing_Dump (line 184) | func BenchmarkRing_Dump(b *testing.B) { function BenchmarkRing_Parallel (line 199) | func BenchmarkRing_Parallel(b *testing.B) { FILE: pkg/utils/rpcstats.go function CalculateEventCost (line 28) | func CalculateEventCost(rpcstats rpcinfo.RPCStats, start, end stats.Even... FILE: pkg/utils/rpcstats_test.go function TestCalculateEventCost (line 30) | func TestCalculateEventCost(t *testing.T) { FILE: pkg/utils/runtimex.go function getGoroutineID (line 26) | func getGoroutineID() int { FILE: pkg/utils/runtimex_test.go function TestRuntimeXCompatibility (line 25) | func TestRuntimeXCompatibility(t *testing.T) { FILE: pkg/utils/sharedticker.go type TickerTask (line 27) | type TickerTask interface function NewSharedTicker (line 32) | func NewSharedTicker(interval time.Duration) *SharedTicker { function NewSyncSharedTicker (line 42) | func NewSyncSharedTicker(interval time.Duration) *SharedTicker { type SharedTicker (line 48) | type SharedTicker struct method Add (line 57) | func (t *SharedTicker) Add(b TickerTask) { method Delete (line 71) | func (t *SharedTicker) Delete(b TickerTask) { method Closed (line 87) | func (t *SharedTicker) Closed() bool { method Tick (line 93) | func (t *SharedTicker) Tick(interval time.Duration) { method syncExec (line 110) | func (t *SharedTicker) syncExec() { method asyncExec (line 124) | func (t *SharedTicker) asyncExec() { FILE: pkg/utils/sharedticker_test.go function TestSharedTickerAdd (line 29) | func TestSharedTickerAdd(t *testing.T) { function TestSharedTickerDeleteAndClose (line 46) | func TestSharedTickerDeleteAndClose(t *testing.T) { function TestSharedTickerTick (line 71) | func TestSharedTickerTick(t *testing.T) { type concurrentTask (line 92) | type concurrentTask struct method Tick (line 97) | func (ct *concurrentTask) Tick() { function TestSyncSharedTickerConcurrent (line 108) | func TestSyncSharedTickerConcurrent(t *testing.T) { FILE: pkg/utils/slice.go type Slice (line 20) | type Slice method Push (line 23) | func (s *Slice) Push(any interface{}) { method Pop (line 28) | func (s *Slice) Pop() (res interface{}) { FILE: pkg/utils/slice_test.go function TestSlice_Push (line 25) | func TestSlice_Push(t *testing.T) { function TestSlice_Pop (line 40) | func TestSlice_Pop(t *testing.T) { FILE: pkg/utils/strbuf.go function WriteInt64ToStringBuilder (line 34) | func WriteInt64ToStringBuilder(sb *strings.Builder, value int64) { FILE: pkg/utils/strbuf_test.go function TestWriteInt64ToStringBuilder (line 28) | func TestWriteInt64ToStringBuilder(t *testing.T) { FILE: pkg/utils/strings.go function StringDeepCopy (line 25) | func StringDeepCopy(s string) string { type StringBuilder (line 32) | type StringBuilder struct method WithLocked (line 40) | func (b *StringBuilder) WithLocked(f func(sb *strings.Builder) error) ... method RawStringBuilder (line 48) | func (b *StringBuilder) RawStringBuilder() *strings.Builder { method String (line 52) | func (b *StringBuilder) String() string { method Len (line 58) | func (b *StringBuilder) Len() int { method Cap (line 64) | func (b *StringBuilder) Cap() int { method Reset (line 70) | func (b *StringBuilder) Reset() { method Grow (line 76) | func (b *StringBuilder) Grow(n int) { method Write (line 82) | func (b *StringBuilder) Write(p []byte) (int, error) { method WriteByte (line 88) | func (b *StringBuilder) WriteByte(c byte) error { method WriteRune (line 94) | func (b *StringBuilder) WriteRune(r rune) (int, error) { method WriteString (line 100) | func (b *StringBuilder) WriteString(s string) (int, error) { FILE: pkg/utils/strings_test.go function TestStringBuilder (line 26) | func TestStringBuilder(t *testing.T) { FILE: pkg/utils/thrift.go type ThriftMessageCodec (line 30) | type ThriftMessageCodec struct method Encode (line 44) | func (t *ThriftMessageCodec) Encode(method string, msgType any, seqID ... method Decode (line 70) | func (t *ThriftMessageCodec) Decode(b []byte, msg any) (method string,... method Serialize (line 94) | func (t *ThriftMessageCodec) Serialize(msg any) (b []byte, err error) { method Deserialize (line 108) | func (t *ThriftMessageCodec) Deserialize(msg any, b []byte) (err error) { function NewThriftMessageCodec (line 33) | func NewThriftMessageCodec() *ThriftMessageCodec { function MarshalError (line 113) | func MarshalError(method string, err error) []byte { function UnmarshalError (line 126) | func UnmarshalError(b []byte) error { FILE: pkg/utils/thrift_test.go function TestThriftMessageCodec (line 30) | func TestThriftMessageCodec(t *testing.T) { function TestMarshalError (line 99) | func TestMarshalError(t *testing.T) { FILE: pkg/utils/yaml.go type YamlConfig (line 35) | type YamlConfig struct method Get (line 65) | func (yc *YamlConfig) Get(key string) (interface{}, bool) { method GetDuration (line 72) | func (yc *YamlConfig) GetDuration(key string) (time.Duration, bool) { function ReadYamlConfigFile (line 41) | func ReadYamlConfigFile(yamlFile string) (*YamlConfig, error) { FILE: pkg/utils/yaml_test.go function getTestYamlFile (line 29) | func getTestYamlFile(t *testing.T) string { function createTestYamlFile (line 35) | func createTestYamlFile(t *testing.T, path string) { function TestMain (line 82) | func TestMain(m *testing.M) { function Test_ReadYamlConfigFile (line 97) | func Test_ReadYamlConfigFile(t *testing.T) { function TestYamlConfig_Get (line 110) | func TestYamlConfig_Get(t *testing.T) { function TestYamlConfig_GetString (line 120) | func TestYamlConfig_GetString(t *testing.T) { function TestYamlConfig_GetBool (line 134) | func TestYamlConfig_GetBool(t *testing.T) { function TestYamlConfig_GetInt (line 148) | func TestYamlConfig_GetInt(t *testing.T) { function TestYamlConfig_GetInt64 (line 162) | func TestYamlConfig_GetInt64(t *testing.T) { function TestYamlConfig_GetFloat (line 176) | func TestYamlConfig_GetFloat(t *testing.T) { function TestYamlConfig_GetDuration (line 190) | func TestYamlConfig_GetDuration(t *testing.T) { FILE: pkg/warmup/pool_helper.go type PoolHelper (line 30) | type PoolHelper struct method WarmUp (line 35) | func (p *PoolHelper) WarmUp(po *PoolOption, pool remote.ConnPool, co r... type manager (line 70) | type manager struct method report (line 93) | func (m *manager) report() error { method watch (line 108) | func (m *manager) watch() { function newManager (line 81) | func newManager(ctx context.Context, po *PoolOption, eh ErrorHandling) *... function discard (line 136) | func discard(ch chan *job) { function split (line 141) | func split(targets map[string][]string, dup int) (js chan *job) { type job (line 156) | type job struct type worker (line 162) | type worker struct method fire (line 170) | func (w *worker) fire(ctx context.Context) { FILE: pkg/warmup/pool_helper_test.go type mockConn (line 35) | type mockConn struct type mockPool (line 41) | type mockPool struct method init (line 52) | func (p *mockPool) init(targets map[string][]string, dup int) *mockPool { method Get (line 62) | func (p *mockPool) Get(ctx context.Context, network, address string, o... method Put (line 75) | func (p *mockPool) Put(conn net.Conn) error { method report (line 92) | func (p *mockPool) report() error { type mockCounter (line 120) | type mockCounter struct method init (line 125) | func (mc *mockCounter) init(targets map[string][]string, cnt int) { method set (line 135) | func (mc *mockCounter) set(network, address string) { method report (line 144) | func (mc *mockCounter) report(op string, targets map[string][]string) ... function TestPoolHelper (line 163) | func TestPoolHelper(t *testing.T) { function TestPoolHelperFailFast (line 183) | func TestPoolHelperFailFast(t *testing.T) { function TestPoolHelperIgnoreError (line 208) | func TestPoolHelperIgnoreError(t *testing.T) { FILE: pkg/warmup/warmup.go type ErrorHandling (line 25) | type ErrorHandling constant IgnoreError (line 29) | IgnoreError ErrorHandling = iota constant WarningLog (line 30) | WarningLog constant ErrorLog (line 31) | ErrorLog constant FailFast (line 32) | FailFast type ClientOption (line 36) | type ClientOption struct type ResolverOption (line 43) | type ResolverOption struct type PoolOption (line 48) | type PoolOption struct type Pool (line 55) | type Pool interface FILE: pkg/xds/xds.go type ClientSuite (line 25) | type ClientSuite struct function CheckClientSuite (line 32) | func CheckClientSuite(cs ClientSuite) bool { FILE: server/deprecated.go function WithMultiProtocol (line 26) | func WithMultiProtocol() Option { FILE: server/genericserver/server.go function NewServer (line 29) | func NewServer(handler generic.Service, g generic.Generic, opts ...serve... function NewServerWithServiceInfo (line 35) | func NewServerWithServiceInfo(handler generic.Service, g generic.Generic... function NewServerV2 (line 49) | func NewServerV2(handler *generic.ServiceV2, g generic.Generic, opts ...... function RegisterService (line 59) | func RegisterService(svr server.Server, handler *generic.ServiceV2, g ge... FILE: server/genericserver/server_test.go function TestNewServer (line 32) | func TestNewServer(t *testing.T) { function TestNewServerWithServiceInfo (line 46) | func TestNewServerWithServiceInfo(t *testing.T) { type mockImpl (line 77) | type mockImpl struct method GenericCall (line 80) | func (g *mockImpl) GenericCall(ctx context.Context, method string, req... FILE: server/genericserver/unknownservice.go function RegisterUnknownServiceOrMethodHandler (line 56) | func RegisterUnknownServiceOrMethodHandler(svr server.Server, unknownHan... function NewUnknownServiceOrMethodServer (line 70) | func NewUnknownServiceOrMethodServer(unknownHandler *UnknownServiceOrMet... type UnknownServiceOrMethodHandler (line 79) | type UnknownServiceOrMethodHandler struct FILE: server/hooks.go function RegisterStartHook (line 22) | func RegisterStartHook(h func()) { function RegisterShutdownHook (line 29) | func RegisterShutdownHook(h func()) { type Hooks (line 36) | type Hooks method add (line 39) | func (h *Hooks) add(g func()) { FILE: server/invoke.go type InvokeCaller (line 30) | type InvokeCaller interface type Invoker (line 35) | type Invoker interface type tInvoker (line 41) | type tInvoker struct method Init (line 59) | func (s *tInvoker) Init() (err error) { method Call (line 82) | func (s *tInvoker) Call(msg invoke.Message) error { method newInvokeHandler (line 86) | func (s *tInvoker) newInvokeHandler() (handler invoke.Handler, err err... function NewInvoker (line 47) | func NewInvoker(opts ...Option) Invoker { FILE: server/invoke/message.go function NewMessage (line 29) | func NewMessage(local, remote net.Addr) Message { FILE: server/invoke/message_test.go function TestNewMessage (line 27) | func TestNewMessage(t *testing.T) { FILE: server/invoke_test.go function TestInvokerCall (line 34) | func TestInvokerCall(t *testing.T) { function TestInvokerInit (line 85) | func TestInvokerInit(t *testing.T) { FILE: server/middlewares.go function serverTimeoutMW (line 26) | func serverTimeoutMW(next endpoint.Endpoint) endpoint.Endpoint { FILE: server/middlewares_test.go type mockCtx (line 32) | type mockCtx struct method Deadline (line 40) | func (m *mockCtx) Deadline() (deadline time.Time, ok bool) { method Done (line 44) | func (m *mockCtx) Done() <-chan struct{} { method Err (line 48) | func (m *mockCtx) Err() error { method Value (line 52) | func (m *mockCtx) Value(key interface{}) interface{} { function Test_serverTimeoutMW (line 56) | func Test_serverTimeoutMW(t *testing.T) { FILE: server/mocks_test.go type MockRegistry (line 26) | type MockRegistry struct method Register (line 32) | func (m MockRegistry) Register(info *registry.Info) error { method Deregister (line 40) | func (m MockRegistry) Deregister(info *registry.Info) error { FILE: server/option.go type Suite (line 53) | type Suite interface function WithSuite (line 68) | func WithSuite(suite Suite) Option { function WithMuxTransport (line 85) | func WithMuxTransport() Option { function WithMiddleware (line 95) | func WithMiddleware(mw endpoint.Middleware) Option { function WithMiddlewareBuilder (line 106) | func WithMiddlewareBuilder(mwb endpoint.MiddlewareBuilder, funcName ...s... function WithReadWriteTimeout (line 116) | func WithReadWriteTimeout(d time.Duration) Option { function WithLogger (line 127) | func WithLogger(logger klog.FormatLogger) Option { function WithExitWaitTime (line 132) | func WithExitWaitTime(timeout time.Duration) Option { function WithMaxConnIdleTime (line 142) | func WithMaxConnIdleTime(timeout time.Duration) Option { function WithLimit (line 154) | func WithLimit(lim *limit.Option) Option { function WithConnectionLimiter (line 164) | func WithConnectionLimiter(conLimit limiter.ConcurrencyLimiter) Option { function WithQPSLimiter (line 174) | func WithQPSLimiter(qpsLimit limiter.RateLimiter) Option { function WithTracer (line 183) | func WithTracer(c stats.Tracer) Option { function WithStatsLevel (line 195) | func WithStatsLevel(level stats.Level) Option { function WithServiceAddr (line 204) | func WithServiceAddr(addr net.Addr) Option { function WithCodec (line 213) | func WithCodec(c remote.Codec) Option { function WithPayloadCodec (line 222) | func WithPayloadCodec(c remote.PayloadCodec) Option { function WithRegistry (line 241) | func WithRegistry(r registry.Registry) Option { function WithRegistryInfo (line 251) | func WithRegistryInfo(info *registry.Info) Option { function WithGRPCWriteBufferSize (line 265) | func WithGRPCWriteBufferSize(s uint32) Option { function WithGRPCReadBufferSize (line 279) | func WithGRPCReadBufferSize(s uint32) Option { function WithGRPCInitialWindowSize (line 290) | func WithGRPCInitialWindowSize(s uint32) Option { function WithGRPCInitialConnWindowSize (line 301) | func WithGRPCInitialConnWindowSize(s uint32) Option { function WithGRPCKeepaliveParams (line 311) | func WithGRPCKeepaliveParams(kp grpc.ServerKeepalive) Option { function WithGRPCKeepaliveEnforcementPolicy (line 325) | func WithGRPCKeepaliveEnforcementPolicy(kep grpc.EnforcementPolicy) Opti... function WithGRPCMaxConcurrentStreams (line 336) | func WithGRPCMaxConcurrentStreams(n uint32) Option { function WithGRPCMaxHeaderListSize (line 347) | func WithGRPCMaxHeaderListSize(s uint32) Option { function WithGRPCUnknownServiceHandler (line 355) | func WithGRPCUnknownServiceHandler(f func(ctx context.Context, methodNam... function WithGRPCReuseWriteBuffer (line 377) | func WithGRPCReuseWriteBuffer(cfg grpc.ReuseWriteBufferConfig) Option { function WithConcurrencyLimiter (line 385) | func WithConcurrencyLimiter(conLimit limiter.ConcurrencyLimiter) Option { function WithContextBackup (line 397) | func WithContextBackup(enable, async bool) Option { function WithRefuseTrafficWithoutServiceName (line 409) | func WithRefuseTrafficWithoutServiceName() Option { function WithEnableContextTimeout (line 433) | func WithEnableContextTimeout(enable bool) Option { FILE: server/option_advanced.go function WithServerBasicInfo (line 44) | func WithServerBasicInfo(ebi *rpcinfo.EndpointBasicInfo) Option { function WithDiagnosisService (line 55) | func WithDiagnosisService(ds diagnosis.Service) Option { function WithACLRules (line 65) | func WithACLRules(rules ...acl.RejectFunc) Option { function WithMetaHandler (line 78) | func WithMetaHandler(h remote.MetaHandler) Option { function WithProxy (line 87) | func WithProxy(p proxy.ReverseProxy) Option { function WithTransHandlerFactory (line 100) | func WithTransHandlerFactory(f remote.ServerTransHandlerFactory) Option { function WithTransServerFactory (line 110) | func WithTransServerFactory(f remote.TransServerFactory) Option { function WithLimitReporter (line 120) | func WithLimitReporter(r limiter.LimitReporter) Option { function WithGeneric (line 132) | func WithGeneric(g generic.Generic) Option { function WithErrorHandler (line 145) | func WithErrorHandler(f func(context.Context, error) error) Option { function WithBoundHandler (line 155) | func WithBoundHandler(h remote.BoundHandler) Option { function WithExitSignal (line 186) | func WithExitSignal(f func() <-chan error) Option { function WithListener (line 194) | func WithListener(ln net.Listener) Option { function WithReusePort (line 204) | func WithReusePort(reuse bool) Option { function WithProfiler (line 213) | func WithProfiler(pc profiler.Profiler) Option { function WithProfilerTransInfoTagging (line 225) | func WithProfilerTransInfoTagging(tagging remote.TransInfoTagging) Option { function WithProfilerMessageTagging (line 244) | func WithProfilerMessageTagging(tagging remote.MessageTagging) Option { FILE: server/option_advanced_test.go function TestWithServerBasicInfo (line 36) | func TestWithServerBasicInfo(t *testing.T) { function TestACLRulesOption (line 46) | func TestACLRulesOption(t *testing.T) { function TestProxyOptionPanic (line 71) | func TestProxyOptionPanic(t *testing.T) { type myLimitReporter (line 87) | type myLimitReporter struct method ConnOverloadReport (line 89) | func (m *myLimitReporter) ConnOverloadReport() { method QPSOverloadReport (line 92) | func (m *myLimitReporter) QPSOverloadReport() { function TestLimitReporterOption (line 96) | func TestLimitReporterOption(t *testing.T) { function TestGenericOptionPanic (line 113) | func TestGenericOptionPanic(t *testing.T) { function TestBoundHandlerOptionPanic (line 120) | func TestBoundHandlerOptionPanic(t *testing.T) { function TestWithBoundHandler (line 127) | func TestWithBoundHandler(t *testing.T) { function TestExitSignalOption (line 171) | func TestExitSignalOption(t *testing.T) { FILE: server/option_stream.go function WithStreamOptions (line 32) | func WithStreamOptions(opts ...StreamOption) Option { function WithStreamMiddleware (line 45) | func WithStreamMiddleware(mw sep.StreamMiddleware) StreamOption { function WithStreamMiddlewareBuilder (line 54) | func WithStreamMiddlewareBuilder(mwb sep.StreamMiddlewareBuilder) Stream... function WithStreamRecvMiddleware (line 63) | func WithStreamRecvMiddleware(mw sep.StreamRecvMiddleware) StreamOption { function WithStreamRecvMiddlewareBuilder (line 72) | func WithStreamRecvMiddlewareBuilder(mwb sep.StreamRecvMiddlewareBuilder... function WithStreamSendMiddleware (line 81) | func WithStreamSendMiddleware(mw sep.StreamSendMiddleware) StreamOption { function WithStreamSendMiddlewareBuilder (line 90) | func WithStreamSendMiddlewareBuilder(mwb sep.StreamSendMiddlewareBuilder... function WithStreamEventHandler (line 99) | func WithStreamEventHandler(hdl rpcinfo.ServerStreamEventHandler) Stream... function WithRecvMiddleware (line 108) | func WithRecvMiddleware(mw endpoint.RecvMiddleware) Option { function WithRecvMiddlewareBuilder (line 119) | func WithRecvMiddlewareBuilder(mwb endpoint.RecvMiddlewareBuilder) Option { function WithSendMiddleware (line 127) | func WithSendMiddleware(mw endpoint.SendMiddleware) Option { function WithSendMiddlewareBuilder (line 138) | func WithSendMiddlewareBuilder(mwb endpoint.SendMiddlewareBuilder) Option { function WithCompatibleMiddlewareForUnary (line 149) | func WithCompatibleMiddlewareForUnary() Option { FILE: server/option_stream_test.go function Test_WithStreamEventHandler (line 26) | func Test_WithStreamEventHandler(t *testing.T) { FILE: server/option_test.go function TestOptionDebugInfo (line 47) | func TestOptionDebugInfo(t *testing.T) { function TestProxyOption (line 84) | func TestProxyOption(t *testing.T) { type proxyMock (line 100) | type proxyMock struct method Replace (line 102) | func (p *proxyMock) Replace(addr net.Addr) (nAddr net.Addr, err error) { function newMockDiagnosis (line 109) | func newMockDiagnosis() *mockDiagnosis { type mockDiagnosis (line 113) | type mockDiagnosis struct method RegisterProbeFunc (line 117) | func (m *mockDiagnosis) RegisterProbeFunc(name diagnosis.ProbeName, pr... method ProbePairs (line 121) | func (m *mockDiagnosis) ProbePairs() map[diagnosis.ProbeName]diagnosis... function TestExitWaitTimeOption (line 126) | func TestExitWaitTimeOption(t *testing.T) { function TestMaxConnIdleTimeOption (line 140) | func TestMaxConnIdleTimeOption(t *testing.T) { type myTracer (line 153) | type myTracer struct method Start (line 155) | func (t *myTracer) Start(ctx context.Context) context.Context { method Finish (line 159) | func (t *myTracer) Finish(ctx context.Context) { function TestTracerOption (line 163) | func TestTracerOption(t *testing.T) { function TestStatsLevelOption (line 187) | func TestStatsLevelOption(t *testing.T) { type mySuiteOption (line 208) | type mySuiteOption struct method Options (line 212) | func (s *mySuiteOption) Options() []Option { function TestSuiteOption (line 217) | func TestSuiteOption(t *testing.T) { function TestMuxTransportOption (line 252) | func TestMuxTransportOption(t *testing.T) { function TestPayloadCodecOption (line 272) | func TestPayloadCodecOption(t *testing.T) { function TestRemoteOptGRPCCfgUintValueOption (line 376) | func TestRemoteOptGRPCCfgUintValueOption(t *testing.T) { function TestGRPCKeepaliveEnforcementPolicyOption (line 403) | func TestGRPCKeepaliveEnforcementPolicyOption(t *testing.T) { function TestGRPCKeepaliveParamsOption (line 423) | func TestGRPCKeepaliveParamsOption(t *testing.T) { function TestWithProfilerMessageTagging (line 449) | func TestWithProfilerMessageTagging(t *testing.T) { function TestRefuseTrafficWithoutServiceNameOption (line 480) | func TestRefuseTrafficWithoutServiceNameOption(t *testing.T) { function NewRemoteMsgWithPayloadType (line 491) | func NewRemoteMsgWithPayloadType(ct serviceinfo.PayloadCodec) remote.Mes... function TestWithGRPCReuseWriteBuffer (line 500) | func TestWithGRPCReuseWriteBuffer(t *testing.T) { FILE: server/option_ttstream.go function WithTTHeaderStreamingOptions (line 29) | func WithTTHeaderStreamingOptions(opts ...TTHeaderStreamingOption) Option { function WithTTHeaderStreamingTransportOptions (line 42) | func WithTTHeaderStreamingTransportOptions(opts ...ttstream.ServerHandle... FILE: server/option_unary.go function WithUnaryOptions (line 29) | func WithUnaryOptions(opts ...UnaryOption) Option { function WithUnaryMiddleware (line 42) | func WithUnaryMiddleware(mw endpoint.UnaryMiddleware) UnaryOption { function WithUnaryMiddlewareBuilder (line 51) | func WithUnaryMiddlewareBuilder(mwb endpoint.UnaryMiddlewareBuilder) Una... FILE: server/register_option.go function WithFallbackService (line 29) | func WithFallbackService() RegisterOption { FILE: server/register_option_test.go function TestWithFallbackService (line 26) | func TestWithFallbackService(t *testing.T) { FILE: server/server.go type Server (line 54) | type Server interface type server (line 61) | type server struct method init (line 84) | func (s *server) init() { method initOrResetRPCInfoFunc (line 108) | func (s *server) initOrResetRPCInfoFunc() func(rpcinfo.RPCInfo, net.Ad... method buildMiddlewares (line 147) | func (s *server) buildMiddlewares(ctx context.Context) []endpoint.Midd... method buildInvokeChain (line 175) | func (s *server) buildInvokeChain(ctx context.Context) { method RegisterService (line 181) | func (s *server) RegisterService(svcInfo *serviceinfo.ServiceInfo, han... method GetServiceInfos (line 202) | func (s *server) GetServiceInfos() map[string]*serviceinfo.ServiceInfo { method Run (line 207) | func (s *server) Run() (err error) { method Stop (line 276) | func (s *server) Stop() (err error) { method buildCoreMiddleware (line 303) | func (s *server) buildCoreMiddleware() endpoint.Middleware { method unaryOrStreamEndpoint (line 329) | func (s *server) unaryOrStreamEndpoint(ctx context.Context) endpoint.E... method invokeHandleEndpoint (line 352) | func (s *server) invokeHandleEndpoint() endpoint.UnaryEndpoint { method streamHandleEndpoint (line 395) | func (s *server) streamHandleEndpoint() sep.StreamEndpoint { method initBasicRemoteOption (line 450) | func (s *server) initBasicRemoteOption() { method richRemoteOption (line 458) | func (s *server) richRemoteOption() { method addBoundHandlers (line 464) | func (s *server) addBoundHandlers(opt *remote.ServerOption) { method buildLimiterWithOpt (line 499) | func (s *server) buildLimiterWithOpt() (handler remote.InboundHandler) { method check (line 536) | func (s *server) check() error { method newSvrTransHandler (line 572) | func (s *server) newSvrTransHandler() (handler remote.ServerTransHandl... method buildRegistryInfo (line 592) | func (s *server) buildRegistryInfo(lAddr net.Addr) { method registerDebugInfo (line 617) | func (s *server) registerDebugInfo() { method waitExit (line 627) | func (s *server) waitExit(errCh chan error) error { function NewServer (line 76) | func NewServer(ops ...Option) Server { function fillContext (line 101) | func fillContext(opt *internal_server.Options) context.Context { function doAddBoundHandlerToHead (line 540) | func doAddBoundHandlerToHead(h remote.BoundHandler, opt *remote.ServerOp... function doAddBoundHandler (line 557) | func doAddBoundHandler(h remote.BoundHandler, opt *remote.ServerOption) { FILE: server/server_test.go function getAddrForListener (line 62) | func getAddrForListener() net.Addr { function NewTestServer (line 70) | func NewTestServer(ops ...Option) (Server, net.Addr) { function WaitServer (line 77) | func WaitServer(s Server) { function goWaitAndStop (line 97) | func goWaitAndStop(t *testing.T, s Server) { function TestServerRun (line 107) | func TestServerRun(t *testing.T) { function TestReusePortServerRun (line 131) | func TestReusePortServerRun(t *testing.T) { function TestInitOrResetRPCInfo (line 157) | func TestInitOrResetRPCInfo(t *testing.T) { function TestServiceRegisterFailed (line 292) | func TestServiceRegisterFailed(t *testing.T) { function TestServiceDeregisterFailed (line 320) | func TestServiceDeregisterFailed(t *testing.T) { function TestServiceRegistryInfo (line 351) | func TestServiceRegistryInfo(t *testing.T) { function TestServiceRegistryNoInitInfo (line 395) | func TestServiceRegistryNoInitInfo(t *testing.T) { function TestServiceRegistryInfoWithNilTags (line 433) | func TestServiceRegistryInfoWithNilTags(t *testing.T) { function TestServiceRegistryInfoWithSkipListenAddr (line 478) | func TestServiceRegistryInfoWithSkipListenAddr(t *testing.T) { function TestServiceRegistryInfoWithoutSkipListenAddr (line 523) | func TestServiceRegistryInfoWithoutSkipListenAddr(t *testing.T) { function TestGRPCServerMultipleServices (line 567) | func TestGRPCServerMultipleServices(t *testing.T) { function TestServerBoundHandler (line 583) | func TestServerBoundHandler(t *testing.T) { function TestInvokeHandlerWithContextBackup (line 744) | func TestInvokeHandlerWithContextBackup(t *testing.T) { function testInvokeHandlerWithSession (line 750) | func testInvokeHandlerWithSession(t *testing.T, fail bool, ad string) { function TestInvokeHandlerExec (line 854) | func TestInvokeHandlerExec(t *testing.T) { function TestInvokeHandlerPanic (line 918) | func TestInvokeHandlerPanic(t *testing.T) { function TestRegisterService (line 981) | func TestRegisterService(t *testing.T) { type noopMetahandler (line 1064) | type noopMetahandler struct method WriteMeta (line 1066) | func (noopMetahandler) WriteMeta(ctx context.Context, msg remote.Messa... method ReadMeta (line 1070) | func (noopMetahandler) ReadMeta(ctx context.Context, msg remote.Messag... method OnConnectStream (line 1073) | func (noopMetahandler) OnConnectStream(ctx context.Context) (context.C... method OnReadStream (line 1074) | func (noopMetahandler) OnReadStream(ctx context.Context) (context.Cont... type mockSvrTransHandlerFactory (line 1076) | type mockSvrTransHandlerFactory struct method NewTransHandler (line 1080) | func (f *mockSvrTransHandlerFactory) NewTransHandler(opt *remote.Serve... type mockExtension (line 1085) | type mockExtension struct method SetReadTimeout (line 1087) | func (m mockExtension) SetReadTimeout(ctx context.Context, conn net.Co... method NewWriteByteBuffer (line 1090) | func (m mockExtension) NewWriteByteBuffer(ctx context.Context, conn ne... method NewReadByteBuffer (line 1094) | func (m mockExtension) NewReadByteBuffer(ctx context.Context, conn net... method ReleaseBuffer (line 1098) | func (m mockExtension) ReleaseBuffer(buffer remote.ByteBuffer, err err... method IsTimeoutErr (line 1102) | func (m mockExtension) IsTimeoutErr(err error) bool { method IsRemoteClosedErr (line 1106) | func (m mockExtension) IsRemoteClosedErr(err error) bool { type mockCodec (line 1110) | type mockCodec struct method Name (line 1115) | func (m *mockCodec) Name() string { method Encode (line 1119) | func (m *mockCodec) Encode(ctx context.Context, msg remote.Message, ou... method Decode (line 1126) | func (m *mockCodec) Decode(ctx context.Context, msg remote.Message, in... function TestDuplicatedRegisterInfoPanic (line 1133) | func TestDuplicatedRegisterInfoPanic(t *testing.T) { function TestRunServiceWithoutSvcInfo (line 1147) | func TestRunServiceWithoutSvcInfo(t *testing.T) { function inboundDeepEqual (line 1157) | func inboundDeepEqual(inbound1, inbound2 []remote.InboundHandler) bool { function withGRPCTransport (line 1169) | func withGRPCTransport() Option { type mockStream (line 1175) | type mockStream struct method GetGRPCStream (line 1183) | func (s *mockStream) GetGRPCStream() streaming.Stream { type mockGRPCStream (line 1179) | type mockGRPCStream struct type streamingMethodArg (line 1187) | type streamingMethodArg struct function newStreamingServer (line 1193) | func newStreamingServer(svcInfo *serviceinfo.ServiceInfo, mws []endpoint... function TestStreamCtxDiverge (line 1206) | func TestStreamCtxDiverge(t *testing.T) { FILE: server/service.go type service (line 33) | type service struct method getHandler (line 43) | func (s *service) getHandler(methodName string) interface{} { function newService (line 39) | func newService(svcInfo *serviceinfo.ServiceInfo, handler interface{}) *... type unknownService (line 53) | type unknownService struct method getSvc (line 59) | func (u *unknownService) getSvc(svcName string) *service { method getOrStoreSvc (line 66) | func (u *unknownService) getOrStoreSvc(svcName string, codecType servi... type services (line 96) | type services struct method addService (line 120) | func (s *services) addService(svcInfo *serviceinfo.ServiceInfo, handle... method getKnownSvcInfoMap (line 147) | func (s *services) getKnownSvcInfoMap() map[string]*serviceinfo.Servic... method check (line 155) | func (s *services) check(refuseTrafficWithoutServiceName bool) error { method getService (line 217) | func (s *services) getService(svcName string) *service { method searchByMethodName (line 227) | func (s *services) searchByMethodName(methodName string) *serviceinfo.... method SearchService (line 258) | func (s *services) SearchService(svcName, methodName string, strict bo... method searchUniqueByMethodName (line 292) | func (s *services) searchUniqueByMethodName(methodName string) (unique... method getTargetSvcInfo (line 313) | func (s *services) getTargetSvcInfo() *serviceinfo.ServiceInfo { function newServices (line 114) | func newServices() *services { function registerBinaryGenericMethodFunc (line 324) | func registerBinaryGenericMethodFunc(svcInfo *serviceinfo.ServiceInfo) *... FILE: server/service_inline.go function constructServerCtxWithMetadata (line 38) | func constructServerCtxWithMetadata(cliCtx context.Context) (serverCtx c... method constructServerRPCInfo (line 57) | func (s *server) constructServerRPCInfo(svrCtx context.Context, cliRPCIn... method BuildServiceInlineInvokeChain (line 88) | func (s *server) BuildServiceInlineInvokeChain() endpoint.Endpoint { FILE: server/service_inline_test.go constant serviceName (line 35) | serviceName = "MockService" constant methodName (line 37) | methodName = "method" type serviceInline (line 39) | type serviceInline interface function constructClientRPCInfo (line 43) | func constructClientRPCInfo() rpcinfo.RPCInfo { function newServiceInfo (line 63) | func newServiceInfo() *serviceinfo.ServiceInfo { function mockHandler (line 78) | func mockHandler(ctx context.Context, handler, args, result interface{})... function TestServiceInline (line 117) | func TestServiceInline(t *testing.T) { FILE: server/service_test.go function TestSearchService (line 62) | func TestSearchService(t *testing.T) { function TestAddService (line 452) | func TestAddService(t *testing.T) { function TestCheckService (line 512) | func TestCheckService(t *testing.T) { function TestRegisterBinaryGenericMethodFunc (line 627) | func TestRegisterBinaryGenericMethodFunc(t *testing.T) { function BenchmarkUnknownService (line 665) | func BenchmarkUnknownService(b *testing.B) { FILE: server/stream.go method wrapStreamMiddleware (line 28) | func (s *server) wrapStreamMiddleware() endpoint.Middleware { function newStream (line 48) | func newStream(ctx context.Context, s streaming.ServerStream, sendEP sep... type stream (line 69) | type stream struct method GetGRPCStream (line 82) | func (s *stream) GetGRPCStream() streaming.Stream { method RecvMsg (line 90) | func (s *stream) RecvMsg(ctx context.Context, m interface{}) (err erro... method handleStreamRecvEvent (line 96) | func (s *stream) handleStreamRecvEvent(err error) { method SendMsg (line 103) | func (s *stream) SendMsg(ctx context.Context, m interface{}) (err erro... method handleStreamSendEvent (line 109) | func (s *stream) handleStreamSendEvent(err error) { function newGRPCStream (line 115) | func newGRPCStream(st streaming.Stream, sendEP endpoint.SendEndpoint, re... type grpcStream (line 123) | type grpcStream struct method RecvMsg (line 132) | func (s *grpcStream) RecvMsg(m interface{}) (err error) { method SendMsg (line 138) | func (s *grpcStream) SendMsg(m interface{}) (err error) { type contextStream (line 147) | type contextStream struct method Context (line 152) | func (cs contextStream) Context() context.Context { type gRPCCompatibleServerStream (line 167) | type gRPCCompatibleServerStream struct method GetGRPCStream (line 172) | func (gs gRPCCompatibleServerStream) GetGRPCStream() streaming.Stream { FILE: server/stream_test.go type mockTracer (line 32) | type mockTracer struct function Test_server_initStreamMiddlewares (line 37) | func Test_server_initStreamMiddlewares(t *testing.T) { function Test_gRPCCompatibleServerStream (line 52) | func Test_gRPCCompatibleServerStream(t *testing.T) { function Test_gRPCCompatibleServerStream_with_middleware (line 76) | func Test_gRPCCompatibleServerStream_with_middleware(t *testing.T) { type wrappedStreamByMiddleware (line 199) | type wrappedStreamByMiddleware struct FILE: tool/cmd/kitex/args/args.go constant EnvPluginMode (line 37) | EnvPluginMode = "KITEX_PLUGIN_MODE" type ExtraFlag (line 41) | type ExtraFlag struct type Arguments (line 51) | type Arguments struct method AddExtraFlag (line 74) | func (a *Arguments) AddExtraFlag(e *ExtraFlag) { method buildFlags (line 78) | func (a *Arguments) buildFlags(version string) *flag.FlagSet { method ParseArgs (line 173) | func (a *Arguments) ParseArgs(version, curpath string, kitexArgs []str... method IsThrift (line 212) | func (a *Arguments) IsThrift() bool { method IsProtobuf (line 216) | func (a *Arguments) IsProtobuf() bool { method checkIDL (line 230) | func (a *Arguments) checkIDL(files []string) error { method checkServiceName (line 255) | func (a *Arguments) checkServiceName() error { method checkPath (line 291) | func (a *Arguments) checkPath(curpath string) error { method BuildCmd (line 349) | func (a *Arguments) BuildCmd(out io.Writer) (*exec.Cmd, error) { constant Thrift (line 57) | Thrift = "thrift" constant Protobuf (line 58) | Protobuf = "protobuf" constant Unknown (line 60) | Unknown = "unknown" constant cmdExample (line 63) | cmdExample = ` # Generate client codes or update kitex_gen codes when a... function guessIDLType (line 220) | func guessIDLType(idl string) (string, bool) { function refGoSrcPath (line 271) | func refGoSrcPath(curpath string) (string, bool) { function ValidateCMD (line 446) | func ValidateCMD(path, idlType string) error { function LookupTool (line 460) | func LookupTool(idlType, compilerPath string) string { function initGoMod (line 482) | func initGoMod(curpath, module string) error { FILE: tool/cmd/kitex/args/args_test.go function TestArguments_refGoSrcPath (line 27) | func TestArguments_refGoSrcPath(t *testing.T) { function TestArguments_guessIDLType (line 36) | func TestArguments_guessIDLType(t *testing.T) { FILE: tool/cmd/kitex/args/deprecated.go type deprecatedFlag (line 21) | type deprecatedFlag struct method Set (line 25) | func (deprecatedFlag) Set(_ string) error { method String (line 29) | func (deprecatedFlag) String() string { return "" } FILE: tool/cmd/kitex/args/deprecated_test.go function TestDeprecatedFlag (line 28) | func TestDeprecatedFlag(t *testing.T) { FILE: tool/cmd/kitex/main.go function init (line 42) | func init() { function main (line 68) | func main() { FILE: tool/cmd/kitex/sdk/kitex_sdk.go function init (line 39) | func init() { function RunKitexTool (line 56) | func RunKitexTool(wd string, plugins []plugin.SDKPlugin, kitexArgs ...st... function GetKiteXSDKPlugin (line 70) | func GetKiteXSDKPlugin(pwd string, rawKiteXArgs []string) (*KiteXSDKPlug... function InvokeThriftgoBySDK (line 95) | func InvokeThriftgoBySDK(pwd string, cmd *exec.Cmd) (err error) { type KiteXSDKPlugin (line 112) | type KiteXSDKPlugin struct method Invoke (line 118) | func (k *KiteXSDKPlugin) Invoke(req *plugin.Request) (res *plugin.Resp... method GetName (line 122) | func (k *KiteXSDKPlugin) GetName() string { method GetPluginParameters (line 126) | func (k *KiteXSDKPlugin) GetPluginParameters() []string { method GetThriftgoParameters (line 130) | func (k *KiteXSDKPlugin) GetThriftgoParameters() []string { function ParseKitexCmd (line 134) | func ParseKitexCmd(cmd *exec.Cmd) (thriftgoParams, kitexParams []string,... FILE: tool/cmd/kitex/utils/utils.go function OnKitexToolNormalExit (line 23) | func OnKitexToolNormalExit(args kargs.Arguments) { FILE: tool/cmd/kitex/versions/dependencies.go constant CompatibilityCheckExitCode (line 31) | CompatibilityCheckExitCode = 3 function init (line 36) | func init() { function RegisterMinDepVersion (line 41) | func RegisterMinDepVersion(depVer *MinDepVersion) error { function CheckDependency (line 68) | func CheckDependency() *CheckResult { function DefaultCheckDependencyAndProcess (line 74) | func DefaultCheckDependencyAndProcess() error { function defaultParseCheckResult (line 89) | func defaultParseCheckResult(cr *CheckResult) (prompt string, shouldExit... function defaultPromptWithCheckResult (line 109) | func defaultPromptWithCheckResult(cr *CheckResult) string { type MinDepVersion (line 123) | type MinDepVersion struct method init (line 134) | func (m *MinDepVersion) init() error { method parseGoModVersion (line 153) | func (m *MinDepVersion) parseGoModVersion() error { method getGoModVersion (line 174) | func (m *MinDepVersion) getGoModVersion() string { method isCompatible (line 178) | func (m *MinDepVersion) isCompatible() bool { type CheckResult (line 191) | type CheckResult struct method MinDepVersion (line 197) | func (cr *CheckResult) MinDepVersion() *MinDepVersion { method Err (line 202) | func (cr *CheckResult) Err() error { method GoModVersion (line 207) | func (cr *CheckResult) GoModVersion() string { type dependencyManager (line 211) | type dependencyManager struct method Register (line 215) | func (dm *dependencyManager) Register(depVer *MinDepVersion) error { method CheckDependency (line 224) | func (dm *dependencyManager) CheckDependency() *CheckResult { function runGoListCmd (line 232) | func runGoListCmd(refPath string) (string, error) { function runCommand (line 246) | func runCommand(input string) (string, error) { function parseGoListVersion (line 269) | func parseGoListVersion(str string) string { function generateCheckResult (line 296) | func generateCheckResult(depVer *MinDepVersion, err error) *CheckResult { FILE: tool/cmd/kitex/versions/dependencies_test.go function TestRegisterMinDepVersion (line 27) | func TestRegisterMinDepVersion(t *testing.T) { function TestCheckDependencies (line 85) | func TestCheckDependencies(t *testing.T) { function Test_defaultParseCheckResult (line 162) | func Test_defaultParseCheckResult(t *testing.T) { function Test_parseGoToolVersion (line 213) | func Test_parseGoToolVersion(t *testing.T) { function Test_runCommand (line 244) | func Test_runCommand(t *testing.T) { function Test_runGoListCmd (line 252) | func Test_runGoListCmd(t *testing.T) { function Test_generateCheckResult (line 265) | func Test_generateCheckResult(t *testing.T) { FILE: tool/cmd/kitex/versions/version.go constant partsNum (line 24) | partsNum = 3 type version (line 31) | type version struct method lessThan (line 81) | func (ver *version) lessThan(other *version) bool { method greatOrEqual (line 97) | func (ver *version) greatOrEqual(other *version) bool { method String (line 101) | func (ver *version) String() string { function newVersion (line 47) | func newVersion(verStr string) (*version, error) { FILE: tool/cmd/kitex/versions/version_test.go function Test_newVersion (line 24) | func Test_newVersion(t *testing.T) { function TestVersion_lessThan (line 68) | func TestVersion_lessThan(t *testing.T) { FILE: tool/internal_pkg/generator/completer.go type completer (line 39) | type completer struct method compare (line 71) | func (c *completer) compare(pkg *ast.Package) []*MethodInfo { method addImplementations (line 96) | func (c *completer) addImplementations(w io.Writer, newMethods []*Meth... method addImport (line 119) | func (c *completer) addImport(w io.Writer, newMethods []*MethodInfo, f... method process (line 161) | func (c *completer) process(w io.Writer) error { method CompleteMethods (line 192) | func (c *completer) CompleteMethods() (*File, error) { function newCompleter (line 46) | func newCompleter(allMethods []*MethodInfo, handlerPath, serviceName str... function parseFuncDecl (line 55) | func parseFuncDecl(fd *ast.FuncDecl) (recvName, funcName string) { type commonCompleter (line 201) | type commonCompleter struct method Complete (line 207) | func (c *commonCompleter) Complete() (*File, error) { method compare (line 236) | func (c *commonCompleter) compare() ([]*MethodInfo, error) { method addImport (line 297) | func (c *commonCompleter) addImport(w io.Writer, newMethods []*MethodI... method addImplementations (line 326) | func (c *commonCompleter) addImplementations(w io.Writer, newMethods [... method parseImports (line 346) | func (c *commonCompleter) parseImports(content string) (imports [][2]s... FILE: tool/internal_pkg/generator/custom_template.go type updateType (line 32) | type updateType constant skip (line 35) | skip updateType = "skip" constant cover (line 36) | cover updateType = "cover" constant incrementalUpdate (line 37) | incrementalUpdate updateType = "append" type Update (line 40) | type Update struct type Template (line 52) | type Template struct type customGenerator (line 67) | type customGenerator struct method loopGenerate (line 80) | func (c *customGenerator) loopGenerate(tpl *Template) error { method commonGenerate (line 114) | func (c *customGenerator) commonGenerate(tpl *Template) error { function NewCustomGenerator (line 73) | func NewCustomGenerator(pkg *PackageInfo, basePath string) *customGenera... method GenerateCustomPackage (line 169) | func (g *generator) GenerateCustomPackage(pkg *PackageInfo) (fs []*File,... function renderFile (line 204) | func renderFile(pkg *PackageInfo, outputPath string, tpl *Template) (fs ... function readTemplates (line 218) | func readTemplates(dir string) ([]*Template, error) { FILE: tool/internal_pkg/generator/feature.go type feature (line 17) | type feature constant placeHolder (line 20) | placeHolder feature = iota function HasFeature (line 29) | func HasFeature(list []feature, key string) bool { function RegisterFeature (line 43) | func RegisterFeature(key string) { function getFeature (line 50) | func getFeature(key string) (feature, bool) { FILE: tool/internal_pkg/generator/generator.go constant KitexGenPath (line 36) | KitexGenPath = "kitex_gen" constant DefaultCodec (line 37) | DefaultCodec = "thrift" constant BuildFileName (line 39) | BuildFileName = "build.sh" constant BootstrapFileName (line 40) | BootstrapFileName = "bootstrap.sh" constant ToolVersionFileName (line 41) | ToolVersionFileName = "kitex_info.yaml" constant HandlerFileName (line 42) | HandlerFileName = "handler.go" constant MainFileName (line 43) | MainFileName = "main.go" constant ClientFileName (line 44) | ClientFileName = "client.go" constant ServerFileName (line 45) | ServerFileName = "server.go" constant InvokerFileName (line 46) | InvokerFileName = "invoker.go" constant ServiceFileName (line 47) | ServiceFileName = "*service.go" constant ExtensionFilename (line 48) | ExtensionFilename = "extensions.yaml" constant DefaultThriftPluginTimeLimit (line 50) | DefaultThriftPluginTimeLimit = time.Minute constant MultipleServicesTpl (line 53) | MultipleServicesTpl = "multiple_services" function SetKitexImportPath (line 72) | func SetKitexImportPath(path string) { function ImportPathTo (line 80) | func ImportPathTo(pkg string) string { function AddGlobalMiddleware (line 85) | func AddGlobalMiddleware(mw Middleware) { function AddGlobalDependency (line 90) | func AddGlobalDependency(ref, path string) bool { type Generator (line 99) | type Generator interface type Config (line 106) | type Config struct method Pack (line 159) | func (c *Config) Pack() (res []string) { method Unpack (line 202) | func (c *Config) Unpack(args []string) error { method AddFeature (line 255) | func (c *Config) AddFeature(key string) bool { method ApplyExtension (line 264) | func (c *Config) ApplyExtension() error { method IsUsingMultipleServicesTpl (line 304) | func (c *Config) IsUsingMultipleServicesTpl() bool { method PkgOutputPath (line 313) | func (c *Config) PkgOutputPath(pkg string) string { function NewGenerator (line 322) | func NewGenerator(config *Config, middlewares []Middleware) Generator { type Middleware (line 332) | type Middleware type HandleFunc (line 335) | type HandleFunc type generator (line 337) | type generator struct method chainMWs (line 342) | func (g *generator) chainMWs(handle HandleFunc) HandleFunc { method GenerateMainPackage (line 349) | func (g *generator) GenerateMainPackage(pkg *PackageInfo) (fs []*File,... method generateHandler (line 429) | func (g *generator) generateHandler(pkg *PackageInfo, svc *ServiceInfo... method GenerateService (line 460) | func (g *generator) GenerateService(pkg *PackageInfo) ([]*File, error) { method updatePackageInfo (line 530) | func (g *generator) updatePackageInfo(pkg *PackageInfo) { method setImports (line 554) | func (g *generator) setImports(name string, pkg *PackageInfo) { function needCallOpt (line 658) | func needCallOpt(pkg *PackageInfo) bool { FILE: tool/internal_pkg/generator/generator_test.go function TestConfig_Pack (line 26) | func TestConfig_Pack(t *testing.T) { function TestConfig_Unpack (line 107) | func TestConfig_Unpack(t *testing.T) { function Test_needCallOpt (line 182) | func Test_needCallOpt(t *testing.T) { FILE: tool/internal_pkg/generator/template.go type APIExtension (line 26) | type APIExtension struct method Merge (line 142) | func (a *APIExtension) Merge(other *APIExtension) { type TemplateExtension (line 41) | type TemplateExtension struct method FromJSONFile (line 62) | func (p *TemplateExtension) FromJSONFile(filename string) error { method ToJSONFile (line 74) | func (p *TemplateExtension) ToJSONFile(filename string) error { method FromYAMLFile (line 83) | func (p *TemplateExtension) FromYAMLFile(filename string) error { method ToYAMLFile (line 94) | func (p *TemplateExtension) ToYAMLFile(filename string) error { method Merge (line 102) | func (p *TemplateExtension) Merge(other *TemplateExtension) { FILE: tool/internal_pkg/generator/template_test.go function TestNilSafe (line 24) | func TestNilSafe(t *testing.T) { function TestMarshal (line 35) | func TestMarshal(t *testing.T) { FILE: tool/internal_pkg/generator/type.go type File (line 28) | type File struct type PackageInfo (line 34) | type PackageInfo struct method AddImport (line 57) | func (p *PackageInfo) AddImport(pkg, path string) { method AddImports (line 75) | func (p *PackageInfo) AddImports(pkgs ...string) { method UpdateImportPath (line 97) | func (p *PackageInfo) UpdateImportPath(pkg, newPath string) { method toExternalGenPath (line 127) | func (p *PackageInfo) toExternalGenPath(path string) string { type PkgInfo (line 137) | type PkgInfo struct type ServiceInfo (line 144) | type ServiceInfo struct method AllMethods (line 164) | func (s *ServiceInfo) AllMethods() (ms []*MethodInfo) { method FixHasStreamingForExtendedService (line 173) | func (s *ServiceInfo) FixHasStreamingForExtendedService() { method HasStreamingRecursive (line 185) | func (s *ServiceInfo) HasStreamingRecursive() bool { type MethodInfo (line 196) | type MethodInfo struct method StreamingMode (line 216) | func (m *MethodInfo) StreamingMode() string { type Parameter (line 233) | type Parameter struct function AddTemplateFunc (line 252) | func AddTemplateFunc(key string, f interface{}) { function wrapTemplate (line 266) | func wrapTemplate(point, content string) string { function SetTemplateExtension (line 280) | func SetTemplateExtension(name, text string) { function applyExtension (line 286) | func applyExtension(name string, x *template.Template) (*template.Templa... type Task (line 299) | type Task struct method Build (line 308) | func (t *Task) Build() error { method makeExtension (line 342) | func (t *Task) makeExtension() (res []string) { method Render (line 357) | func (t *Task) Render(data interface{}) (*File, error) { method RenderString (line 373) | func (t *Task) RenderString(data interface{}) (string, error) { function fileTemplateExtension (line 329) | func fileTemplateExtension(name string) (option, eof string) { function FilterImports (line 389) | func FilterImports(Imports map[string]map[string]bool, ms []*MethodInfo)... function BackQuoted (line 410) | func BackQuoted(s string) string { FILE: tool/internal_pkg/generator/type_test.go function TestSetTemplateExtension (line 23) | func TestSetTemplateExtension(t *testing.T) { function TestAddTemplateFunc (line 38) | func TestAddTemplateFunc(t *testing.T) { function TestServiceInfo_HasStreamingRecursive (line 46) | func TestServiceInfo_HasStreamingRecursive(t *testing.T) { function TestServiceInfo_FixHasStreamingForExtendedService (line 75) | func TestServiceInfo_FixHasStreamingForExtendedService(t *testing.T) { function TestPkgInfo_UpdateImportPath (line 112) | func TestPkgInfo_UpdateImportPath(t *testing.T) { FILE: tool/internal_pkg/log/log.go type Logger (line 27) | type Logger interface type LoggerFunc (line 32) | type LoggerFunc method Printf (line 34) | func (f LoggerFunc) Printf(format string, a ...interface{}) { function DefaultLogger (line 42) | func DefaultLogger() Logger { function SetDefaultLogger (line 47) | func SetDefaultLogger(l Logger) { function Error (line 52) | func Error(v ...interface{}) { function Errorf (line 57) | func Errorf(format string, v ...interface{}) { function Warn (line 62) | func Warn(v ...interface{}) { function Warnf (line 67) | func Warnf(format string, v ...interface{}) { function Info (line 72) | func Info(v ...interface{}) { function Infof (line 77) | func Infof(format string, v ...interface{}) { function Debug (line 82) | func Debug(v ...interface{}) { function Debugf (line 90) | func Debugf(format string, v ...interface{}) { FILE: tool/internal_pkg/pluginmode/protoc/plugin.go type protocPlugin (line 34) | type protocPlugin struct method Name (line 44) | func (pp *protocPlugin) Name() string { method init (line 49) | func (pp *protocPlugin) init() { method parseM (line 57) | func (pp *protocPlugin) parseM() { method GenerateFile (line 81) | func (pp *protocPlugin) GenerateFile(gen *protogen.Plugin, file *proto... method process (line 149) | func (pp *protocPlugin) process(gen *protogen.Plugin) { method convertTypes (line 228) | func (pp *protocPlugin) convertTypes(file *protogen.File) (ss []*gener... method getCombineServiceName (line 313) | func (pp *protocPlugin) getCombineServiceName(name string, svcs []*gen... method convertParameter (line 322) | func (pp *protocPlugin) convertParameter(msg *protogen.Message, paramN... method makeRenderArgs (line 339) | func (pp *protocPlugin) makeRenderArgs(gf *protogen.GeneratedFile, fil... method adjustPath (line 361) | func (pp *protocPlugin) adjustPath(path string) (ret string) { method fixImport (line 380) | func (pp *protocPlugin) fixImport(path string) string { FILE: tool/internal_pkg/pluginmode/protoc/protoc.go constant PluginName (line 34) | PluginName = "protoc-gen-kitex" function Run (line 37) | func Run() int { function DoRun (line 46) | func DoRun(opts protogen.Options) error { function GenKitex (line 71) | func GenKitex(req *pluginpb.CodeGeneratorRequest, opts protogen.Options)... FILE: tool/internal_pkg/pluginmode/protoc/util.go function goSanitized (line 25) | func goSanitized(s string) string { type pathElements (line 41) | type pathElements struct method getImportPath (line 46) | func (p *pathElements) getImportPath(pkg string) (path string, ok bool) { FILE: tool/internal_pkg/pluginmode/thriftgo/ast.go function offsetTPL (line 22) | func offsetTPL(assign, offset string) string { function ZeroWriter (line 26) | func ZeroWriter(t *parser.Type, oprot, buf, offset string) string { function ZeroBLength (line 60) | func ZeroBLength(t *parser.Type, oprot, offset string) string { FILE: tool/internal_pkg/pluginmode/thriftgo/convertor.go type converter (line 43) | type converter struct method init (line 52) | func (c *converter) init(req *plugin.Request) error { method initLogs (line 68) | func (c *converter) initLogs() backend.LogFunc { method avoidIncludeConflict (line 88) | func (c *converter) avoidIncludeConflict(ast *parser.Thrift, ref strin... method copyTreeWithRef (line 109) | func (c *converter) copyTreeWithRef(ast *parser.Thrift, ref string) *p... method copyFunctionWithRef (line 135) | func (c *converter) copyFunctionWithRef(f *parser.Function, ref string... method copyTypeWithRef (line 156) | func (c *converter) copyTypeWithRef(t *parser.Type, ref string) (res *... method getImports (line 187) | func (c *converter) getImports(t *parser.Type) (res []generator.PkgInf... method fixImportConflicts (line 211) | func (c *converter) fixImportConflicts() { method convertTypes (line 281) | func (c *converter) convertTypes(req *plugin.Request) error { method fixStreamingForExtendedServices (line 397) | func (c *converter) fixStreamingForExtendedServices(ast *parser.Thrift... method makeService (line 409) | func (c *converter) makeService(pkg generator.PkgInfo, svc *golang.Ser... method makeMethod (line 436) | func (c *converter) makeMethod(si *generator.ServiceInfo, f *golang.Fu... method persist (line 496) | func (c *converter) persist(res *plugin.Response) error { method getCombineServiceName (line 520) | func (c *converter) getCombineServiceName(name string, svcs []*generat... method IsHessian2 (line 529) | func (c *converter) IsHessian2() bool { method copyAnnotations (line 533) | func (c *converter) copyAnnotations(annotations parser.Annotations) pa... type ast2svc (line 263) | type ast2svc method findService (line 265) | func (t ast2svc) findService(ast *parser.Thrift, name string) *generat... FILE: tool/internal_pkg/pluginmode/thriftgo/file_tpl.go constant File (line 17) | File = ` constant Imports (line 43) | Imports = ` constant Body (line 59) | Body = ` constant PatchArgsAndResult (line 76) | PatchArgsAndResult = ` FILE: tool/internal_pkg/pluginmode/thriftgo/hessian2.go constant JavaExtensionOption (line 34) | JavaExtensionOption = "java_extension" constant DubboCodec (line 36) | DubboCodec = "github.com/kitex-contrib/codec-dubbo" constant JavaThrift (line 37) | JavaThrift = "java.thrift" constant JavaThriftAddress (line 38) | JavaThriftAddress = "https://raw.githubusercontent.com/kitex-contrib/cod... function Hessian2PreHook (line 42) | func Hessian2PreHook(cfg *generator.Config) error { function IsHessian2 (line 57) | func IsHessian2(a generator.Config) bool { function EnableJavaExtension (line 61) | func EnableJavaExtension(a generator.Config) bool { function runOption (line 71) | func runOption(cfg *generator.Config, opt string) error { function runJavaExtensionOption (line 80) | func runJavaExtensionOption(cfg *generator.Config) error { function patchIDLRefConfig (line 98) | func patchIDLRefConfig(cfg *generator.Config) error { function loadIDLRefConfig (line 138) | func loadIDLRefConfig(fileName string, reader io.Reader) (*config.RawCon... function Hessian2PatchByReplace (line 165) | func Hessian2PatchByReplace(args generator.Config, subDirPath string) er... function replaceJavaObject (line 210) | func replaceJavaObject(content []byte) []byte { function replaceJavaException (line 214) | func replaceJavaException(content []byte) []byte { function replaceJavaExceptionEmptyVerification (line 233) | func replaceJavaExceptionEmptyVerification(content []byte) []byte { FILE: tool/internal_pkg/pluginmode/thriftgo/hessian2_test.go function Test_loadIDLRefConfig (line 28) | func Test_loadIDLRefConfig(t *testing.T) { FILE: tool/internal_pkg/pluginmode/thriftgo/patcher.go type PatchFunc (line 39) | type PatchFunc function AppendToTemplate (line 44) | func AppendToTemplate(text string) { function AppendExtensionPatches (line 48) | func AppendExtensionPatches(f PatchFunc) { constant kitexUnusedProtection (line 52) | kitexUnusedProtection = ` type Patcher (line 60) | type Patcher struct method GetModule (line 78) | func (p *Patcher) GetModule() string { method GetUtils (line 82) | func (p *Patcher) GetUtils() *golang.CodeUtils { method UseFrugalForStruct (line 87) | func (p *Patcher) UseFrugalForStruct(st *golang.StructLike) bool { method UseLib (line 107) | func (p *Patcher) UseLib(path, alias string) string { method buildTemplates (line 115) | func (p *Patcher) buildTemplates() (err error) { method patch (line 265) | func (p *Patcher) patch(req *plugin.Request) (patches []*plugin.Genera... method patchHessian (line 409) | func (p *Patcher) patchHessian(path string, scope *golang.Scope, pkgNa... method extractLocalLibs (line 442) | func (p *Patcher) extractLocalLibs(imports []util.Import) []util.Import { method reorderStructFields (line 503) | func (p *Patcher) reorderStructFields(fields []*golang.Field) ([]*gola... method isBinaryOrStringType (line 524) | func (p *Patcher) isBinaryOrStringType(t *parser.Type) bool { method IsHessian2 (line 528) | func (p *Patcher) IsHessian2() bool { constant ImportInsertPoint (line 263) | ImportInsertPoint = "// imports insert-point" function getBashPath (line 435) | func getBashPath() string { function doRecord (line 464) | func doRecord(recordCmd []string) string { FILE: tool/internal_pkg/pluginmode/thriftgo/plugin.go constant PluginName (line 29) | PluginName = "thrift-gen-kitex" constant TheUseOptionMessage (line 32) | TheUseOptionMessage = "kitex_gen is not generated due to the -use option" function Run (line 36) | func Run() int { method failResp (line 52) | func (c *converter) failResp(err error) *plugin.Response { function HandleRequest (line 56) | func HandleRequest(req *plugin.Request) *plugin.Response { function exit (line 171) | func exit(res *plugin.Response) int { FILE: tool/internal_pkg/pluginmode/thriftgo/register_tpl.go constant RegisterHessian (line 17) | RegisterHessian = ` constant StructLikeProtocol (line 139) | StructLikeProtocol = ` constant JavaClassName (line 183) | JavaClassName = ` FILE: tool/internal_pkg/pluginmode/thriftgo/struct_tpl.go constant StructLikeCodec (line 17) | StructLikeCodec = ` constant StructLikeFastRead (line 41) | StructLikeFastRead = ` constant StructLikeFastReadField (line 151) | StructLikeFastReadField = ` constant StructLikeDeepEqualEmpty (line 187) | StructLikeDeepEqualEmpty = ` constant StructLikeDeepCopy (line 196) | StructLikeDeepCopy = ` constant StructLikeFastWrite (line 216) | StructLikeFastWrite = ` constant StructLikeFastWriteNocopy (line 225) | StructLikeFastWriteNocopy = ` constant StructLikeLength (line 266) | StructLikeLength = ` constant StructLikeFastWriteField (line 303) | StructLikeFastWriteField = ` constant StructLikeFieldLength (line 348) | StructLikeFieldLength = ` constant FieldFastRead (line 393) | FieldFastRead = ` constant FieldFastReadStructLike (line 405) | FieldFastReadStructLike = ` constant FieldFastReadBaseType (line 425) | FieldFastReadBaseType = ` constant FieldFastReadContainer (line 453) | FieldFastReadContainer = ` constant FieldFastReadMap (line 465) | FieldFastReadMap = ` constant FieldFastReadSet (line 536) | FieldFastReadSet = ` constant FieldFastReadList (line 582) | FieldFastReadList = ` constant FieldDeepCopy (line 628) | FieldDeepCopy = ` constant FieldDeepCopyStructLike (line 640) | FieldDeepCopyStructLike = ` constant FieldDeepCopyContainer (line 658) | FieldDeepCopyContainer = ` constant FieldDeepCopyMap (line 670) | FieldDeepCopyMap = ` constant FieldDeepCopyList (line 695) | FieldDeepCopyList = ` constant FieldDeepCopySet (line 714) | FieldDeepCopySet = ` constant FieldDeepCopyBaseType (line 733) | FieldDeepCopyBaseType = ` constant FieldFastWrite (line 766) | FieldFastWrite = ` constant FieldLength (line 778) | FieldLength = ` constant FieldFastWriteStructLike (line 790) | FieldFastWriteStructLike = ` constant FieldStructLikeLength (line 803) | FieldStructLikeLength = ` constant FieldFastWriteBaseType (line 816) | FieldFastWriteBaseType = ` constant FieldBaseTypeLength (line 830) | FieldBaseTypeLength = ` constant FieldFixedLengthTypeLength (line 844) | FieldFixedLengthTypeLength = ` constant FieldFastWriteContainer (line 850) | FieldFastWriteContainer = ` constant FieldContainerLength (line 862) | FieldContainerLength = ` constant FieldFastWriteMap (line 874) | FieldFastWriteMap = ` constant FieldMapLength (line 915) | FieldMapLength = ` constant FieldFastWriteSet (line 956) | FieldFastWriteSet = ` constant FieldSetLength (line 984) | FieldSetLength = ` constant FieldFastWriteList (line 1011) | FieldFastWriteList = ` constant FieldListLength (line 1038) | FieldListLength = ` constant Processor (line 1064) | Processor = ` constant ValidateSet (line 1081) | ValidateSet = ` FILE: tool/internal_pkg/prutal/prutal.go type PrutalGen (line 34) | type PrutalGen struct method initPackageInfo (line 49) | func (pg *PrutalGen) initPackageInfo(f *prutalgen.Proto) *generator.Pa... method generateClientServerFiles (line 59) | func (pg *PrutalGen) generateClientServerFiles(f *prutalgen.Proto, p *... method Process (line 74) | func (pg *PrutalGen) Process() error { method convertTypes (line 162) | func (pg *PrutalGen) convertTypes(f *prutalgen.Proto) (ss []*generator... method convertParameter (line 252) | func (pg *PrutalGen) convertParameter(f *prutalgen.Proto, t *prutalgen... function NewPrutalGen (line 41) | func NewPrutalGen(c generator.Config) *PrutalGen { function getCombineServiceName (line 243) | func getCombineServiceName(name string, svcs []*generator.ServiceInfo) s... function genStructsAndKitexInterfaces (line 273) | func genStructsAndKitexInterfaces(f *prutalgen.Proto, c *generator.Confi... function genKitexServiceInterface (line 293) | func genKitexServiceInterface(f *prutalgen.Proto, w *prutalgen.CodeWrite... function getImportPath (line 330) | func getImportPath(pkg, module, prefix string) (string, bool) { function writeFile (line 348) | func writeFile(fn string, data []byte) { FILE: tool/internal_pkg/prutal/prutal_test.go function TestPrutal (line 29) | func TestPrutal(t *testing.T) { FILE: tool/internal_pkg/tpl/pbtpl/pbtpl.go type Args (line 26) | type Args struct type Service (line 32) | type Service struct type Method (line 38) | type Method struct function Render (line 48) | func Render(w io.Writer, in *Args) { function renderService (line 58) | func renderService(fm func(format string, aa ...any), s *Service, stream... function notPtr (line 127) | func notPtr(s string) string { FILE: tool/internal_pkg/tpl/pbtpl/pbtpl_test.go function TestRender (line 25) | func TestRender(t *testing.T) { FILE: tool/internal_pkg/tpl/templates_test.go function TestEmbedOK (line 23) | func TestEmbedOK(t *testing.T) { FILE: tool/internal_pkg/util/dump.go function ReadInput (line 26) | func ReadInput() ([]byte, error) { FILE: tool/internal_pkg/util/env/env.go function UseProtoc (line 27) | func UseProtoc() bool { function UsePrutalMarshal (line 36) | func UsePrutalMarshal() bool { FILE: tool/internal_pkg/util/env/env_test.go function TestUseProtoc (line 25) | func TestUseProtoc(t *testing.T) { function TestUsePrutalMarshal (line 41) | func TestUsePrutalMarshal(t *testing.T) { FILE: tool/internal_pkg/util/util.go type StringSlice (line 38) | type StringSlice method String (line 40) | func (ss *StringSlice) String() string { method Set (line 45) | func (ss *StringSlice) Set(value string) error { function FormatCode (line 51) | func FormatCode(code []byte) ([]byte, error) { function GetGOPATH (line 60) | func GetGOPATH() (string, error) { function Exists (line 85) | func Exists(path string) bool { function LowerFirst (line 94) | func LowerFirst(s string) string { function ReplaceString (line 101) | func ReplaceString(s, old, new string, n int) string { function SnakeString (line 106) | func SnakeString(s string) string { function UpperFirst (line 124) | func UpperFirst(s string) string { function NotPtr (line 131) | func NotPtr(s string) string { function SearchGoMod (line 137) | func SearchGoMod(cwd string) (moduleName, path string, found bool) { function RunGitCommand (line 164) | func RunGitCommand(gitLink string) (string, string, error) { function CombineOutputPath (line 229) | func CombineOutputPath(outputPath, ns string) string { function JoinPath (line 248) | func JoinPath(elem ...string) string { function DownloadFile (line 256) | func DownloadFile(remotePath, localPath string) error { function IDLName (line 278) | func IDLName(filename string) string { type Import (line 282) | type Import struct method PackageName (line 322) | func (i Import) PackageName() string { function SortImports (line 287) | func SortImports(imps map[string]string, localPrefix string) (ret []Impo... function PrintlImports (line 330) | func PrintlImports(imports []Import) string { function TruncateAllFastPBFiles (line 346) | func TruncateAllFastPBFiles(dir string) { function TruncateFastPBFile (line 372) | func TruncateFastPBFile(fn string) (success bool) { FILE: tool/internal_pkg/util/util_test.go function TestCombineOutputPath (line 24) | func TestCombineOutputPath(t *testing.T) { function TestGetGOPATH (line 37) | func TestGetGOPATH(t *testing.T) { FILE: transport/keys.go type Protocol (line 21) | type Protocol method String (line 59) | func (tp Protocol) String() string { constant PurePayload (line 25) | PurePayload Protocol = 0 constant TTHeader (line 28) | TTHeader Protocol = 1 << iota constant Framed (line 31) | Framed constant HTTP (line 34) | HTTP constant GRPC (line 37) | GRPC constant HESSIAN2 (line 40) | HESSIAN2 constant TTHeaderStreaming (line 44) | TTHeaderStreaming constant GRPCStreaming (line 49) | GRPCStreaming constant TTHeaderFramed (line 52) | TTHeaderFramed = TTHeader | Framed constant Unknown (line 56) | Unknown = "Unknown" FILE: version.go constant Name (line 21) | Name = "Kitex" constant Version (line 22) | Version = "v0.16.1"