Documentation
¶
Index ¶
- func ContextWithConnPool(ctx context.Context) context.Context
- func RegisterImplementor(cp ConnPool)
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- func WithContext(ctx context.Context, keyID int64) context.Context
- func WithMetadata(md *common.Metadata, keyID int64) context.Context
- type ConnPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
StreamServerInterceptor returns a new streaming server interceptor for gRPC client connection pool.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptor for gRPC client connection pool.
Types ¶
type ConnPool ¶
type ConnPool interface { Get(target string) *grpc.ClientConn Close() }
gRPC client connection pool interface.
func ContextConnPool ¶
Click to show internal directories.
Click to hide internal directories.