udp4

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

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

Discovery is a udp4 multicast discovery.

func New

func New(
	log *logger.Logger,
	addr string,
	interval time.Duration,
	self *peers.Peer,
) *Discovery

New returns a new discovery instance.

func (*Discovery) Discover

func (d *Discovery) Discover(ctx context.Context) <-chan *peers.Peer

Discover implements Discovery interface.

Jump to

Keyboard shortcuts

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