wgiface

package
v0.0.0-...-758e8b3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInterface

func RunInterface(cfg BaseConfig) error

Types

type BaseConfig

type BaseConfig struct {
	Name       string
	PrivateKey wgtypes.Key
	Addresses  []net.IPNet
}

func (*BaseConfig) EnsureKey

func (cfg *BaseConfig) EnsureKey() error

func (BaseConfig) ToConf

func (cfg BaseConfig) ToConf() conf.Config

func (BaseConfig) WriteTo

func (cfg BaseConfig) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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