Documentation ¶
Index ¶
- func DefaultJSONPBMarshal(m proto.Message) ([]byte, error)
- func HeaderIsNotSensitive(key string) bool
- func HideSensitive(m proto.Message) bool
- func HideSensitiveValues(m proto.Message) proto.Message
- func IsNil(x interface{}) bool
- func JSONHidingSensitiveValuesMarshaller(m proto.Message) ([]byte, error)
- func NewAPILoggingUnaryInterceptor() grpc.UnaryClientInterceptor
- func NewLogPayloadMiddleware(options ...LogPayloadClientOption) grpc.UnaryClientInterceptor
- type HeaderLoggingDecider
- type JSONPBMarshaller
- type LogPayloadClientOption
- type WithHideSensitive
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderIsNotSensitive ¶
func HideSensitive ¶
HideSensitive hides the sensitive fields
func NewAPILoggingUnaryInterceptor ¶
func NewAPILoggingUnaryInterceptor() grpc.UnaryClientInterceptor
func NewLogPayloadMiddleware ¶
func NewLogPayloadMiddleware(options ...LogPayloadClientOption) grpc.UnaryClientInterceptor
Types ¶
type HeaderLoggingDecider ¶
HeaderLoggingDecider is a user-provided function for deciding whether to log the header with a given key request/response payloads
type LogPayloadClientOption ¶
type LogPayloadClientOption func(*logPayloadOptions)
func LogPayloadClientHeader ¶
func LogPayloadClientHeader(x HeaderLoggingDecider) LogPayloadClientOption
func LogPayloadClientMarshaller ¶
func LogPayloadClientMarshaller(x JSONPBMarshaller) LogPayloadClientOption
type WithHideSensitive ¶
type WithHideSensitive interface {
HideSensitive()
}
Click to show internal directories.
Click to hide internal directories.