tetraengine

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PrivateKey string
	// ListenPort is immutable field
	ListenPort   int
	STUNEndpoint string
	Addresses    []netlink.Addr
	Peers        []PeerConfig
}

type PeerConfig

type PeerConfig struct {
	Endpoints      []string
	PublicKey      string
	PublicDiscoKey string
	Addresses      []string
	AllowedIPs     []string
}

type TetraEngine

type TetraEngine interface {
	Notify(fn func(PeerConfig))
	Reconfig(cfg *Config)
	Trigger()
	Close() error
}

func New

func New(ifaceName, vrf string, table uint32, config *Config, logger *zap.Logger) (res TetraEngine, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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