Documentation ¶
Index ¶
Constants ¶
View Source
const ( Type = 1 ConfigFileName = "wireguard.toml" )
View Source
const (
KeyLength = 32
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Interface string `json:"interface" mapstructure:"interface"` ListenPort uint16 `json:"listen_port" mapstructure:"listen_port"` PrivateKey string `json:"private_key" mapstructure:"private_key"` }
func (*Config) SaveToPath ¶
func (*Config) WithDefaultValues ¶
type IPv4 ¶
func NewIPv4FromIP ¶
type IPv4Pool ¶
func NewIPv4PoolFromCIDR ¶
type IPv6 ¶
func NewIPv6FromIP ¶
type IPv6Pool ¶
func NewIPv6PoolFromCIDR ¶
Click to show internal directories.
Click to hide internal directories.