Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClientInterceptors ¶
func DefaultClientInterceptors(options ClientInterceptorLogOptions) []grpc.UnaryClientInterceptor
func DefaultServerInterceptors ¶
func DefaultServerInterceptors(options ServerInterceptorLogOptions) []grpc.UnaryServerInterceptor
Types ¶
type ClientInterceptorLogOptions ¶
type ClientInterceptorLogOptions struct {
Logger *log.Logger
APIOutput io.Writer
Attributes []log.Attr
}
func GetClientInterceptorLogOptions ¶
func GetClientInterceptorLogOptions(logger *log.Logger, attrs []log.Attr) ClientInterceptorLogOptions
type ServerInterceptorLogOptions ¶
type ServerInterceptorLogOptions struct {
Logger *log.Logger
APIOutput io.Writer
CtxOutput io.Writer
APIAttributes []log.Attr
CtxAttributes []log.Attr
}
func GetServerInterceptorLogOptions ¶
func GetServerInterceptorLogOptions(logger *log.Logger, attrs []log.Attr) ServerInterceptorLogOptions
Click to show internal directories.
Click to hide internal directories.