wboxclient

package
v0.0.0-...-d60fec0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main() int

Types

type Config

type Config struct {
	If         string          `toml:"if"`
	PrivateKey wirebox.PeerKey `toml:"private-key"`

	ServerKey      wirebox.PeerKey `toml:"server-key"`
	ConfigEndpoint UDPAddr         `toml:"config-endpoint"`

	ConfigTimeout Duration `toml:"config-timeout"`
}

type Duration

type Duration struct {
	time.Duration
}

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

type IPAddr

type IPAddr struct {
	net.IP
}

func (*IPAddr) UnmarshalText

func (a *IPAddr) UnmarshalText(text []byte) error

type UDPAddr

type UDPAddr struct {
	net.UDPAddr
}

func (*UDPAddr) UnmarshalText

func (a *UDPAddr) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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