conntrack

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint = string

type Entry

type Entry struct {
	Protocol
	LocalAddr  Endpoint
	RemoteAddr Endpoint
}

type EntryHandle

type EntryHandle struct {
	// contains filtered or unexported fields
}

func (*EntryHandle) Done

func (eh *EntryHandle) Done()

func (*EntryHandle) Forget

func (eh *EntryHandle) Forget()

type Instance

type Instance struct {
	Timeout func(Entry) time.Duration
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance() *Instance

func (*Instance) Allow added in v2.3.0

func (i *Instance) Allow(tx *stm.Tx, e Entry, reason string, p priority) *EntryHandle

func (*Instance) PrintStatus

func (i *Instance) PrintStatus(w io.Writer)

func (*Instance) SetMaxEntries

func (i *Instance) SetMaxEntries(max int)

func (*Instance) SetNoMaxEntries

func (i *Instance) SetNoMaxEntries()

func (*Instance) Wait

func (i *Instance) Wait(ctx context.Context, e Entry, reason string, p priority) (eh *EntryHandle)

Nil returns are due to context completion.

func (*Instance) WaitDefault

func (i *Instance) WaitDefault(ctx context.Context, e Entry) *EntryHandle

type Protocol

type Protocol = string

Jump to

Keyboard shortcuts

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