client

package
v0.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogUnaryClientInterceptor

func LogUnaryClientInterceptor(logger *zap.Logger) grpc.UnaryClientInterceptor

func MetricsUnaryClientInterceptor

func MetricsUnaryClientInterceptor() grpc.UnaryClientInterceptor

func NewClientConn

func NewClientConn(addr string, certPath string, opts ...Option) (*grpc.ClientConn, error)

func NewPerRPCCredentials

func NewPerRPCCredentials(tokenPath string) (credentials.PerRPCCredentials, error)

func XRequestIDUnaryClientInterceptor

func XRequestIDUnaryClientInterceptor() grpc.UnaryClientInterceptor

Types

type Option

type Option func(*options)

func WithBlock

func WithBlock() Option

func WithDialTimeout

func WithDialTimeout(d time.Duration) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithMetrics

func WithMetrics(registerer metrics.Registerer) Option

func WithPerRPCCredentials

func WithPerRPCCredentials(creds credentials.PerRPCCredentials) Option

func WithStatsHandler

func WithStatsHandler(handler stats.Handler) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL