Help us shape the future of Go! Take the 2026 Go Developer Survey

wireguard

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const KeyLength = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key [KeyLength]byte

func NewKey

func NewKey(base64Key string) (*Key, error)

func NewPresharedKey

func NewPresharedKey() (*Key, error)

func NewPrivateKey

func NewPrivateKey() (*Key, error)

func (*Key) IsZero

func (k *Key) IsZero() bool

func (*Key) Public

func (k *Key) Public() *Key

func (*Key) String

func (k *Key) String() string

type Profile

type Profile struct {
	// contains filtered or unexported fields
}

func NewProfile

func NewProfile(data *ProfileData) (*Profile, error)

func (*Profile) Save

func (p *Profile) Save(profileFile string) error

type ProfileData

type ProfileData struct {
	PrivateKey string
	Address1   string
	Address2   string
	PublicKey  string
	Endpoint   string
}

Jump to

Keyboard shortcuts

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