Documentation ¶
Index ¶
- func ChainUnaryClientInterceptors(is ...grpc.UnaryClientInterceptor) grpc.UnaryClientInterceptor
- func LogUnaryClientInterceptor(logger *zap.Logger) grpc.UnaryClientInterceptor
- func MetricsUnaryClientInterceptor() grpc.UnaryClientInterceptor
- func NewClientConn(addr string, certPath string, opts ...Option) (*grpc.ClientConn, error)
- func NewPerRPCCredentials(tokenPath string) (credentials.PerRPCCredentials, error)
- func XRequestIDUnaryClientInterceptor() grpc.UnaryClientInterceptor
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChainUnaryClientInterceptors ¶
func ChainUnaryClientInterceptors(is ...grpc.UnaryClientInterceptor) grpc.UnaryClientInterceptor
func LogUnaryClientInterceptor ¶
func LogUnaryClientInterceptor(logger *zap.Logger) grpc.UnaryClientInterceptor
func MetricsUnaryClientInterceptor ¶
func MetricsUnaryClientInterceptor() grpc.UnaryClientInterceptor
func NewClientConn ¶
func NewPerRPCCredentials ¶
func NewPerRPCCredentials(tokenPath string) (credentials.PerRPCCredentials, error)
func XRequestIDUnaryClientInterceptor ¶
func XRequestIDUnaryClientInterceptor() grpc.UnaryClientInterceptor
Types ¶
type Option ¶
type Option func(*options)
func WithDialTimeout ¶
func WithLogger ¶
func WithMetrics ¶
func WithMetrics(registerer metrics.Registerer) Option
func WithPerRPCCredentials ¶
func WithPerRPCCredentials(creds credentials.PerRPCCredentials) Option
func WithStatsHandler ¶
Click to show internal directories.
Click to hide internal directories.