portmap

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(emitter *telemetry.Emitter) *Client

func NewForTest

func NewForTest(m mapper, emitter *telemetry.Emitter) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) Refresh

func (c *Client) Refresh(now time.Time) bool

func (*Client) SetLocalPort

func (c *Client) SetLocalPort(port uint16)

func (*Client) Snapshot

func (c *Client) Snapshot() (netip.AddrPort, bool)

func (*Client) SnapshotAddrs

func (c *Client) SnapshotAddrs() []net.Addr

Jump to

Keyboard shortcuts

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