outgoing

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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