conntrack

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 14 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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