Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConn ¶
func NewConn( addr string, opt ...OptionConn, ) ( *grpc.ClientConn, error, )
NewConn creates a client connection to the given addr.
Types ¶
type OptionConn ¶
type OptionConn interface {
// contains filtered or unexported methods
}
OptionConn configures how we set up the connection.
func WithClientUnaryInterceptor ¶ added in v0.0.14
func WithClientUnaryInterceptor(interceptor grpc.UnaryClientInterceptor) OptionConn
WithClientUnaryInterceptor adds an interceptor for client calls.
func WithContextDialer ¶
WithContextDialer wraps the grpc.WithContextDialer option.
func WithNoTLS ¶
func WithNoTLS() OptionConn
WithNoTLS disables transport security for the client. Replacement for grpc.WithInsecure().
func WithOTEL ¶ added in v0.0.24
func WithOTEL(handlerOptions ...otelgrpc.Option) OptionConn
WithOTEL adds OpenTelemetry instrumentation to the client.
Click to show internal directories.
Click to hide internal directories.