interceptors

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PeerNameKey = "app"
	PeerIPKey   = "client-ip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
}

func (*Builder) PeerIP

func (b *Builder) PeerIP(ctx context.Context) string

PeerIP 获取对端ip

func (*Builder) PeerName

func (b *Builder) PeerName(ctx context.Context) string

PeerName 获取对端应用名称

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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