wireguard

package
v0.0.0-...-92afb07 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 7 Imported by: 1

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