fromctx

package
v0.6.5-rc0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxKeyClientIP        = CtxKey("client-ip")
	CtxKeyClientHostname  = CtxKey("client-hostname")
	CtxKeyClientInventory = CtxKey("client-inventory")
)

Variables

This section is empty.

Functions

func ClientHostnameFromContext

func ClientHostnameFromContext(ctx context.Context) hostname.Client

func ClientIPFromContext

func ClientIPFromContext(ctx context.Context) ip.Client

func ClientInventoryFromContext

func ClientInventoryFromContext(ctx context.Context) inventory.Client

Types

type CtxKey

type CtxKey string

Jump to

Keyboard shortcuts

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