allocator

package
v0.0.0-...-6cef876 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(client net.PacketConn, logger log.Logger) error

Types

type Allocator

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

func New

func New(relay netip.AddrPort) *Allocator

func (*Allocator) Addr

func (s *Allocator) Addr() *addr.Addr

func (*Allocator) Init

func (s *Allocator) Init(ping func(relay netip.AddrPort, data []byte) error) error

func (*Allocator) Ping

func (s *Allocator) Ping() error

func (*Allocator) Pong

func (s *Allocator) Pong(relay netip.AddrPort, data []byte) error

func (*Allocator) Release

func (s *Allocator) Release()

Jump to

Keyboard shortcuts

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