logging

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultJSONPBMarshal

func DefaultJSONPBMarshal(m proto.Message) ([]byte, error)

func HeaderIsNotSensitive

func HeaderIsNotSensitive(key string) bool

func HideSensitive

func HideSensitive(m proto.Message) bool

HideSensitive hides the sensitive fields

func HideSensitiveValues

func HideSensitiveValues(m proto.Message) proto.Message

func IsNil

func IsNil(x interface{}) bool

func JSONHidingSensitiveValuesMarshaller

func JSONHidingSensitiveValuesMarshaller(m proto.Message) ([]byte, error)

func NewAPILoggingUnaryInterceptor

func NewAPILoggingUnaryInterceptor() grpc.UnaryClientInterceptor

func NewLogPayloadMiddleware

func NewLogPayloadMiddleware(options ...LogPayloadClientOption) grpc.UnaryClientInterceptor

Types

type HeaderLoggingDecider

type HeaderLoggingDecider func(key string) bool

HeaderLoggingDecider is a user-provided function for deciding whether to log the header with a given key request/response payloads

type JSONPBMarshaller

type JSONPBMarshaller func(m proto.Message) ([]byte, error)

type LogPayloadClientOption

type LogPayloadClientOption func(*logPayloadOptions)

func LogPayloadClientMarshaller

func LogPayloadClientMarshaller(x JSONPBMarshaller) LogPayloadClientOption

type WithHideSensitive

type WithHideSensitive interface {
	HideSensitive()
}

Jump to

Keyboard shortcuts

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