Documentation ¶
Index ¶
- Constants
- func IsBadConn(err error, goodConnCodes ...grpcCodes.Code) bool
- func UseWrapping(ctx context.Context) bool
- func WithAppendOptions(cc grpc.ClientConnInterface, appendOpts ...grpc.CallOption) grpc.ClientConnInterface
- func WithBeforeFunc(cc grpc.ClientConnInterface, before func()) grpc.ClientConnInterface
- func WithContextModifier(cc grpc.ClientConnInterface, ...) grpc.ClientConnInterface
- func WithoutWrapping(ctx context.Context) context.Context
- type Config
- type Conn
- type Pool
- type State
Constants ¶
View Source
const ( Unknown = State(iota) Created Online Banned Offline Destroyed )
Variables ¶
This section is empty.
Functions ¶
func UseWrapping ¶ added in v3.42.5
func WithAppendOptions ¶ added in v3.40.0
func WithAppendOptions(cc grpc.ClientConnInterface, appendOpts ...grpc.CallOption) grpc.ClientConnInterface
func WithBeforeFunc ¶ added in v3.42.0
func WithBeforeFunc( cc grpc.ClientConnInterface, before func(), ) grpc.ClientConnInterface
func WithContextModifier ¶ added in v3.40.0
func WithContextModifier( cc grpc.ClientConnInterface, modifyCtx func(ctx context.Context) context.Context, ) grpc.ClientConnInterface
Types ¶
type Conn ¶
Click to show internal directories.
Click to hide internal directories.