Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallFunc ¶
type CallFunc func(ctx context.Context, addr string, req *client.GRPCRequest, rsp interface{}, opts client.GRPCCallOptions) error
type CallMiddlewareFunc ¶
type LookupFunc ¶
type LookupFunc func(context.Context, *client.GRPCRequest, client.GRPCCallOptions) ([]string, error)
type MiddlewareFunc ¶
type MiddlewareFunc func(client client.GRPCClient) client.GRPCClient
type Options ¶
type Options struct { Context context.Context ContentType string `env:"CONTENT_TYPE" envDefault:"application/protobuf" comment:"Set GRPC client request content-type"` // Grpc DialOptions WriteBufferSize *int `` /* 253-byte string literal not displayed */ ReadBufferSize *int `` /* 191-byte string literal not displayed */ InitialWindowSize *int32 `` /* 175-byte string literal not displayed */ InitialConnWindowSize *int32 `` /* 184-byte string literal not displayed */ MaxHeaderListSize *int32 `` /* 140-byte string literal not displayed */ MaxRecvMsgSize *int `env:"MAX_RECV_MSG_SIZE" comment:"Sets the maximum message size in bytes the client can receive (default 16 MB)"` MaxSendMsgSize *int `env:"MAX_SEND_MSG_SIZE" comment:"Sets the maximum message size in bytes the client can send (default 16 MB)"` UserAgent *string `env:"USER_AGENT" envDefault:"application/protobuf" comment:"Sets the specifies a user agent string for all the RPCs"` Resolver string `env:"RESOLVER" envDefault:"local" comment:"Define resolver used as service registry [local, file, plugin]. "` Selector selector.Selector Pool PoolOptions CallOptions client.GRPCCallOptions }
type PoolOptions ¶
Click to show internal directories.
Click to hide internal directories.