turn

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(modName string, addrs []string) (module.Module, error)

Types

type Endpoint

type Endpoint struct {
	Log log.Logger
	// contains filtered or unexported fields
}

func (*Endpoint) Close

func (endp *Endpoint) Close() error

func (*Endpoint) Init

func (endp *Endpoint) Init(cfg *config.Map) error

func (*Endpoint) InstanceName

func (endp *Endpoint) InstanceName() string

func (*Endpoint) Name

func (endp *Endpoint) Name() string

type MinimalRelayGenerator

type MinimalRelayGenerator struct {
	RelayAddress net.IP
	Log          log.Logger
}

func (*MinimalRelayGenerator) AllocateConn

func (m *MinimalRelayGenerator) AllocateConn(network string, requestedPort int) (net.Conn, net.Addr, error)

func (*MinimalRelayGenerator) AllocatePacketConn

func (m *MinimalRelayGenerator) AllocatePacketConn(network string, requestedPort int) (net.PacketConn, net.Addr, error)

func (*MinimalRelayGenerator) Validate

func (m *MinimalRelayGenerator) Validate() error

Jump to

Keyboard shortcuts

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