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 ¶ added in v1.2.0
type ConnFactoryOption func(*GrpcConnFactorySettings)
func WithAuthority ¶ added in v1.3.0
func WithAuthority(authority string) ConnFactoryOption
func WithConnCred ¶ added in v1.2.0
func WithConnCred(insecure bool, caCert string, cert string, certKey string) ConnFactoryOption
func WithHeaders ¶ added in v1.6.0
func WithHeaders(h map[string][]string) ConnFactoryOption
func WithKeepalive ¶ added in v1.7.0
func WithKeepalive(keepalive bool, keepaliveTime time.Duration) ConnFactoryOption
func WithMaxRecvMsgSize ¶ added in v1.9.0
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 ¶ added in v1.2.0
type GrpcConnFactorySettings struct {
// contains filtered or unexported fields
}
type Stats ¶
func ExtractRpcStats ¶
func (*Stats) FullMethod ¶ added in v1.6.0
func (*Stats) ReqHeaders ¶ added in v1.6.0
func (*Stats) RespHeaders ¶ added in v1.6.0
func (*Stats) RespTrailers ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.