ospa

package
v0.0.0-...-05217b6 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultServerPort uint16 = 22211

Variables

This section is empty.

Functions

This section is empty.

Types

type OSPA

type OSPA struct {
	Version            string `yaml:"version"`
	Name               string `yaml:"name"`
	ClientDeviceID     string `yaml:"clientDeviceId"`
	ServerIP           net.IP `yaml:"serverIp"`
	ServerPort         uint16 `yaml:"serverPort"`
	EchoIpServer       string `yaml:"echoIpServer"`
	PrivateKeyStr      string `yaml:"privateKey"`
	PublicKeyStr       string `yaml:"publicKey"`
	ServerPublicKeyStr string `yaml:"serverPublicKey"`
}

func Parse

func Parse(data []byte) (OSPA, error)

Parses the contents of an OSPA file and if successful return an OSPA struct.

func (*OSPA) Exists

func (o *OSPA) Exists() bool

Returns boolean if the OSPA struct is not empty.

Jump to

Keyboard shortcuts

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