Documentation ¶
Index ¶
- func MetadataStreamInterceptor(md map[string][]string) grpc.StreamClientInterceptor
- func MetadataUnaryInterceptor(md map[string][]string) grpc.UnaryClientInterceptor
- func WithStatsCtx(parentCtx context.Context) context.Context
- type ConnFactoryOption
- func WithAuthority(authority string) ConnFactoryOption
- func WithConnCred(insecure bool, caCert string, cert string, certKey string) ConnFactoryOption
- func WithHeaders(h map[string][]string) ConnFactoryOption
- func WithKeepalive(keepalive bool, keepaliveTime time.Duration) ConnFactoryOption
- func WithMaxRecvMsgSize(messageSize int) ConnFactoryOption
- type ConnectionOptions
- type GrpcConnFactory
- type GrpcConnFactorySettings
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataStreamInterceptor ¶
func MetadataStreamInterceptor(md map[string][]string) grpc.StreamClientInterceptor
func MetadataUnaryInterceptor ¶
func MetadataUnaryInterceptor(md map[string][]string) grpc.UnaryClientInterceptor
Types ¶
type ConnFactoryOption ¶
type ConnFactoryOption func(*GrpcConnFactorySettings)
func WithAuthority ¶
func WithAuthority(authority string) ConnFactoryOption
func WithConnCred ¶
func WithConnCred(insecure bool, caCert string, cert string, certKey string) ConnFactoryOption
func WithHeaders ¶
func WithHeaders(h map[string][]string) ConnFactoryOption
func WithKeepalive ¶
func WithKeepalive(keepalive bool, keepaliveTime time.Duration) ConnFactoryOption
func WithMaxRecvMsgSize ¶
func WithMaxRecvMsgSize(messageSize int) ConnFactoryOption
type ConnectionOptions ¶
func NewConnectionOpts ¶
func NewConnectionOpts(target string) (*ConnectionOptions, error)
type GrpcConnFactory ¶
type GrpcConnFactory struct {
// contains filtered or unexported fields
}
func NewGrpcConnFactory ¶
func NewGrpcConnFactory(opts ...ConnFactoryOption) *GrpcConnFactory
func (*GrpcConnFactory) Close ¶
func (f *GrpcConnFactory) Close() error
func (*GrpcConnFactory) CloseConn ¶
func (f *GrpcConnFactory) CloseConn(target string) error
func (*GrpcConnFactory) GetConn ¶
func (f *GrpcConnFactory) GetConn(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
type GrpcConnFactorySettings ¶
type GrpcConnFactorySettings struct {
// contains filtered or unexported fields
}
type Stats ¶
func ExtractRpcStats ¶
func (*Stats) FullMethod ¶
func (*Stats) ReqHeaders ¶
func (*Stats) RespHeaders ¶
func (*Stats) RespTrailers ¶
Click to show internal directories.
Click to hide internal directories.