wboxclient

package
Version: v0.0.0-...-742e75e Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL