peer

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: ISC Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finalise

func Finalise() error

finialise - stop all background tasks

func Initialise

func Initialise(configuration *Configuration) error

initialise proofer backgrouds processes

Types

type Announce added in v0.2.0

type Announce struct {
	Broadcast []string `libucl:"broadcast"`
	Listen    []string `libucl:"listen"`
}

for announcements

type Configuration added in v0.2.0

type Configuration struct {
	DynamicConnections bool         `libucl:"dynamic_connections"`
	Broadcast          []string     `libucl:"broadcast"`
	Listen             []string     `libucl:"listen"`
	Announce           Announce     `libucl:"announce"`
	PrivateKey         string       `libucl:"private_key"`
	PublicKey          string       `libucl:"public_key"`
	Subscribe          []Connection `libucl:"subscribe"`
	Connect            []Connection `libucl:"connect"`
}

a block of configuration data this is read from a libucl configuration file

type Connection added in v0.2.0

type Connection struct {
	PublicKey string `libucl:"public_key"`
	Address   string `libucl:"address"`
}

hardwired connections this is read from a libucl configuration file

Jump to

Keyboard shortcuts

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