Help us shape the future of Go! Take the 2026 Go Developer Survey

conntrack

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 8 Imported by: 1

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) 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 added in v1.0.0

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