Documentation ¶
Index ¶
- Constants
- 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, product ...string) context.Context
- func WithMetadata(incomingMD *common.Metadata, keyID int64) context.Context
- type ConnPool
Constants ¶
View Source
const (
DefaultIssuer = "appootb"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterImplementor ¶
func RegisterImplementor(cp ConnPool)
RegisterImplementor registers the gRPC connection pool service implementor.
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.
func WithContext ¶
Types ¶
type ConnPool ¶
type ConnPool interface { Get(target string) *grpc.ClientConn Close() }
ConnPool is gRPC client connection pool interface.
func ContextConnPool ¶
func Implementor ¶
func Implementor() ConnPool
Implementor returns the gRPC connection pool service implementor.
Click to show internal directories.
Click to hide internal directories.