contexes

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNSMsg gslocCtxKey = iota
	RemoteAddr
	FromLocalhost
)

Variables

This section is empty.

Functions

func GetDNSMsg

func GetDNSMsg(ctx context.Context) *dns.Msg

func GetRemoteAddr

func GetRemoteAddr(ctx context.Context) string

func SetDNSMsg

func SetDNSMsg(ctx context.Context, msg *dns.Msg) context.Context

func SetRemoteAddr

func SetRemoteAddr(ctx context.Context, addr string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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