outgoing_ctx

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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

func (l *Logger) LogKeyValue(key string, value string)

LogKeyValue logs the key value

type OutgoingCtx added in v0.7.8

type OutgoingCtx interface {
	PrintOutgoingCtx() grpc.UnaryClientInterceptor
}

OutgoingCtx interface

Jump to

Keyboard shortcuts

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