Documentation ¶
Index ¶
- func DefaultClientInterceptors(options ClientInterceptorLogOptions) []grpc.UnaryClientInterceptor
- func DefaultServerInterceptors(options ServerInterceptorLogOptions) []grpc.UnaryServerInterceptor
- func GetRecoveryOpts() []recovery.Option
- func GetRetryOptions() []retry.CallOption
- func ParseStack(stack string) (string, string)
- type ClientInterceptorLogOptions
- type ServerInterceptorLogOptions
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
func GetRecoveryOpts ¶
func GetRetryOptions ¶
func GetRetryOptions() []retry.CallOption
func ParseStack ¶
Types ¶
type ClientInterceptorLogOptions ¶ added in v0.0.20
type ClientInterceptorLogOptions struct { Logger *log.Logger APIOutput io.Writer Attributes []log.Attr }
func GetClientInterceptorLogOptions ¶ added in v0.0.20
func GetClientInterceptorLogOptions(logger *log.Logger, attrs []log.Attr) ClientInterceptorLogOptions
type ServerInterceptorLogOptions ¶ added in v0.0.20
type ServerInterceptorLogOptions struct { Logger *log.Logger APIOutput io.Writer CtxOutput io.Writer APIAttributes []log.Attr CtxAttributes []log.Attr }
func GetServerInterceptorLogOptions ¶ added in v0.0.20
func GetServerInterceptorLogOptions(logger *log.Logger, attrs []log.Attr) ServerInterceptorLogOptions
Click to show internal directories.
Click to hide internal directories.