config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: GPL-3.0 Imports: 2 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 {
	Device `yaml:",omitempty,inline"`
	Peers  []Peer `yaml:"Peers"`
}

func (Config) String

func (c Config) String() string

type Device

type Device struct {
	PrivateKey string `yaml:"PrivateKey" json:"PrivateKey"`
	ListenPort uint16 `yaml:"ListenPort,omitempty" json:"ListenPort,omitempty"`
}

func (Device) String

func (d Device) String() string

type Peer

type Peer struct {
	PublicKey    string   `yaml:"PublicKey" json:"PublicKey"`
	AllowedIPs   []string `yaml:"AllowedIPs" json:"AllowedIPs"`
	PresharedKey string   `yaml:"PresharedKey,omitempty" json:"PresharedKey,omitempty"`
	Endpoint     string   `yaml:"Endpoint,omitempty" json:"Endpoint,omitempty"`

	PersistentKeepalive string `yaml:"PersistentKeepalive,omitempty" json:"PersistentKeepalive,omitempty"`
}

func (Peer) String

func (p Peer) String() string

Jump to

Keyboard shortcuts

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