conf

package
v0.0.0-...-7750714 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WireGuardConfig

type WireGuardConfig struct {
	SecretKey  string                 `json:"secretKey"`
	Address    []string               `json:"address"`
	Peers      []*WireGuardPeerConfig `json:"peers"`
	MTU        int                    `json:"mtu"`
	NumWorkers int                    `json:"workers"`
	Reserved   []byte                 `json:"reserved"`
}

func (*WireGuardConfig) Build

func (c *WireGuardConfig) Build() (proto.Message, error)

type WireGuardPeerConfig

type WireGuardPeerConfig struct {
	PublicKey    string   `json:"publicKey"`
	PreSharedKey string   `json:"preSharedKey"`
	Endpoint     string   `json:"endpoint"`
	KeepAlive    int      `json:"keepAlive"`
	AllowedIPs   []string `json:"allowedIPs,omitempty"`
}

func (*WireGuardPeerConfig) Build

func (c *WireGuardPeerConfig) Build() (proto.Message, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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