Documentation ¶
Overview ¶
Package grpc provides a gRPC client
Package grpc provides a gRPC options
Index ¶
- Variables
- func AuthTLS(t *tls.Config) client.Option
- func CallOptions(opts ...grpc.CallOption) client.CallOption
- func Codec(contentType string, c encoding.Codec) client.Option
- func DialOptions(opts ...grpc.DialOption) client.CallOption
- func MaxRecvMsgSize(s int) client.Option
- func MaxSendMsgSize(s int) client.Option
- func NewClient(opts ...client.Option) client.Client
- func UseNumber()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultMaxRecvMsgSize maximum message that client can receive // (4 MB). DefaultMaxRecvMsgSize = 1024 * 1024 * 4 // DefaultMaxSendMsgSize maximum message that client can send // (4 MB). DefaultMaxSendMsgSize = 1024 * 1024 * 4 )
Functions ¶
func CallOptions ¶
func CallOptions(opts ...grpc.CallOption) client.CallOption
CallOptions to be used to configure gRPC call options
func DialOptions ¶
func DialOptions(opts ...grpc.DialOption) client.CallOption
DialOptions to be used to configure gRPC dial options
func MaxRecvMsgSize ¶
MaxRecvMsgSize set the maximum size of message that client can receive.
func MaxSendMsgSize ¶
MaxSendMsgSize set the maximum size of message that client can send.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.