Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCodeToLevel ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(logger hclog.Logger, opts ...Option) grpc.StreamClientInterceptor
StreamClientInterceptor returns a new streaming client interceptor that logs the execution of gRPC calls.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(logger hclog.Logger, opts ...Option) grpc.UnaryClientInterceptor
UnaryClientInterceptor returns a new unary client interceptor that logs the execution of gRPC calls.
Types ¶
type CodeToLevel ¶
CodeToLevel function defines the mapping between gRPC return codes and hclog level.
type Option ¶
type Option func(*options)
func WithStatusCodeToLevelFunc ¶
func WithStatusCodeToLevelFunc(fn CodeToLevel) Option
Click to show internal directories.
Click to hide internal directories.