Documentation
¶
Index ¶
- Variables
- type Client
- type Option
- func NewFlagSet() (*pflag.FlagSet, Option)
- func WithAddress(address string) Option
- func WithDialOptions(opts ...grpc.DialOption) Option
- func WithInterceptors(i ...interceptors.ClientInterceptors) Option
- func WithName(name string) Option
- func WithRegistry(registry registry.Registry) Option
- func WithSecure(s bool) Option
- func WithStreamInterceptors(i ...grpc.StreamClientInterceptor) Option
- func WithTLSConfig(conf *tls.Config) Option
- func WithUnaryInterceptors(i ...grpc.UnaryClientInterceptor) Option
- func WithVersion(version string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultPoolSize sets the connection pool size DefaultPoolSize = 100 // DefaultPoolTTL sets the connection pool ttl DefaultPoolTTL = time.Minute // DefaultPoolMaxStreams maximum streams on a connectioin // (20) DefaultPoolMaxStreams = 20 // DefaultPoolMaxIdle maximum idle conns of a pool // (50) DefaultPoolMaxIdle = 50 // 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 ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { grpc.ClientConnInterface }
type Option ¶
type Option func(*options)
func NewFlagSet ¶
func WithAddress ¶
func WithDialOptions ¶
func WithDialOptions(opts ...grpc.DialOption) Option
func WithInterceptors ¶
func WithInterceptors(i ...interceptors.ClientInterceptors) Option
func WithRegistry ¶
func WithSecure ¶
func WithStreamInterceptors ¶
func WithStreamInterceptors(i ...grpc.StreamClientInterceptor) Option
func WithTLSConfig ¶
func WithUnaryInterceptors ¶
func WithUnaryInterceptors(i ...grpc.UnaryClientInterceptor) Option
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.