parse

package
v0.0.0-...-13113db Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PeerConfig

func PeerConfig(p *wghost.PeerConfig) (w wgtypes.PeerConfig, err error)

PeerConfig creates a wgtypes.PeerConfig from the incomming message type.

func PeerConfigList

func PeerConfigList(pl *wghost.PeerConfigList) ([]wgtypes.PeerConfig, error)

PeerConfigList creates a slice of wgtypes.PeerConfig from the incomming message type.

func PeerQuery

func PeerQuery(pq *wghost.PeerQuery) (wgtypes.Key, error)

PeerQuery parses the public key from the message

Types

type Error

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

Error wraps an underlying error.

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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