Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnaryInterceptor ¶
func UnaryInterceptor(opts ...CallOption) func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
Types ¶
type CallOption ¶
type CallOption func(opt *options)
func WithCodes ¶
func WithCodes(errorCodes ...codes.Code) CallOption
func WithNewConnection ¶
func WithNewConnection(f NewConnectionFunc) CallOption
type NewConnectionFunc ¶
type NewConnectionFunc func(context.Context, *grpc.ClientConn, ...grpc.CallOption) (context.Context, *grpc.ClientConn, []grpc.CallOption, error)
Click to show internal directories.
Click to hide internal directories.