hookscope

package
v1.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FamilyIPv4  = "ipv4"
	FamilyIPv6  = "ipv6"
	TableNat    = "nat"
	TableMangle = "mangle"
	EventUp     = "up"
	EventDown   = "down"
)

Variables

This section is empty.

Functions

func AppendOutgoingContext

func AppendOutgoingContext(ctx context.Context, scope Scope) context.Context

func NormalizeEvent

func NormalizeEvent(value string) string

func NormalizeFamily

func NormalizeFamily(value string) (string, error)

func NormalizeTable

func NormalizeTable(value string) (string, error)

Types

type Scope

type Scope struct {
	Family     string
	Table      string
	Interface  string
	SystemName string
	Event      string
}

func FromIncomingContext

func FromIncomingContext(ctx context.Context) Scope

func (Scope) RestoreIPv4

func (s Scope) RestoreIPv4() bool

func (Scope) RestoreIPv6

func (s Scope) RestoreIPv6() bool

Jump to

Keyboard shortcuts

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