outgoing_ctx

package
v0.6.42 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailedToGetOutgoingContextError = status.Error(
		codes.Internal,
		"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 debug

func NewInterceptor

func NewInterceptor(logger Logger) *Interceptor

NewInterceptor creates a new debug interceptor

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

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 OutgoingCtxDebugger

type OutgoingCtxDebugger interface {
	PrintOutgoingCtx() grpc.UnaryClientInterceptor
}

OutgoingCtxDebugger interface

Jump to

Keyboard shortcuts

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