Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FailedToGetOutgoingContextError = errors.New(
"failed to get outgoing context",
)
)
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor is the interceptor for the outgoing context
func NewInterceptor ¶
func NewInterceptor(logger *Logger) (*Interceptor, error)
NewInterceptor creates a new interceptor for the outgoing context
func (*Interceptor) PrintOutgoingCtx ¶
func (i *Interceptor) PrintOutgoingCtx() grpc.UnaryClientInterceptor
PrintOutgoingCtx prints the outgoing context
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the logger for the outgoing context debugger
func NewLogger ¶
func NewLogger(logger commonlogger.Logger) (*Logger, error)
NewLogger is the logger for the outgoing context debugger
func (*Logger) LogKeyValue ¶
LogKeyValue logs the key value
type OutgoingCtx ¶ added in v0.7.8
type OutgoingCtx interface {
PrintOutgoingCtx() grpc.UnaryClientInterceptor
}
OutgoingCtx interface
Click to show internal directories.
Click to hide internal directories.