instance

package
v0.0.0-...-4d778f5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	*messages.Handler

	*peers.Peer
	// contains filtered or unexported fields
}

Instance is a single instance of a p2p messenger.

func New

func New(
	log *logger.Logger,
	udp4Multicast string,
	udp6Multicast string,
	consulAddr string,
	discoveryPort string,
	uiPort int,
	port int,
	insecurePort int,
	discoveryInterval time.Duration,
	keySize int,
) *Instance

New is a messenger constructor.

func (*Instance) Start

func (i *Instance) Start(ctx context.Context) error

Start starts a messanger instance.

Jump to

Keyboard shortcuts

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