Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ClosedErr pool has closed ClosedErr = stderr.New("grpc pool has closed") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder func() (*grpc.ClientConn, error)
Builder builer for create grpc client connection
type ClientConn ¶
type ClientConn interface {
grpc.ClientConnInterface
// contains filtered or unexported methods
}
ClientConn wrapper for *grpc.ClientConn
type Option ¶
type Option func(*option)
Option optional configs
func WithEnablePrometheus ¶
func WithEnablePrometheus() Option
WithEnablePrometheus enable to record prometheus metrics
type Stub ¶
type Stub interface {
Conn() ClientConn
// contains filtered or unexported methods
}
Stub the real handler in pool
Click to show internal directories.
Click to hide internal directories.