Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFailedToGetOutgoingContext = 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 *slog.Logger) *Interceptor
NewInterceptor creates a new interceptor for the outgoing context
Parameters:
- logger: the logger to use
Returns:
- *Interceptor: the interceptor
func (Interceptor) PrintOutgoingCtx ¶
func (i Interceptor) PrintOutgoingCtx() grpc.UnaryClientInterceptor
PrintOutgoingCtx prints the outgoing context
Returns:
- grpc.UnaryClientInterceptor: the interceptor
type OutgoingCtx ¶
type OutgoingCtx interface {
PrintOutgoingCtx() grpc.UnaryClientInterceptor
}
OutgoingCtx interface
Click to show internal directories.
Click to hide internal directories.