Documentation ¶
Overview ¶
Package interceptor provides GRPC UnaryInterceptors to use with a GRPC server.
This LogGRPC UnaryServerInterceptor is taken from https://github.com/kubernetes-csi/csi-driver-host-path/blob/v1.6.0/pkg/hostpath/server.go#L116.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogGRPC ¶
func LogGRPC(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
LogGRPC handles logging of the GRPC requests. The log messages are sanitized to remove any sensitive data.
func LogGRPCWithNameAndValues ¶
func LogGRPCWithNameAndValues(name string, tags ...interface{}) grpc.UnaryServerInterceptor
LogGRPCWithName allows setting the logger name and values in LogGRPC logs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.