disco

package module
v0.0.0-...-72c7af3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: Apache-2.0 Imports: 7 Imported by: 1

README

Disco

Disco is a package to create and monitor a member list between nodes using IPv6 multicast.

Examples

See examples/membership/ and example_test.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disco

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

Disco represents a list of discovered devices

func (*Disco) Discover

func (d *Disco) Discover(ctx context.Context, multicastAddress string) (<-chan *node.Node, error)

Discover listens for multicast sends and registers any nodes it finds

func (*Disco) Members

func (d *Disco) Members() []*node.Node

Members returns all node in members slice

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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