beacon

package
v0.0.0-...-ae8d93c Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2015 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Beacon

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

func New

func New(payload []byte, conf *Config) (b *Beacon)

func (*Beacon) Ping

func (b *Beacon) Ping()

func (*Beacon) Run

func (b *Beacon) Run()

func (*Beacon) Signals

func (b *Beacon) Signals() *eventual2go.Stream

func (*Beacon) Silence

func (b *Beacon) Silence()

func (*Beacon) Silent

func (b *Beacon) Silent() bool

func (*Beacon) Stop

func (b *Beacon) Stop()

type Config

type Config struct {
	PingAddresses []string
	//
	Port int

	PingInterval time.Duration

	Logger io.Writer
}

type Signal

type Signal struct {
	SenderIp []byte
	Data     []byte
}

Jump to

Keyboard shortcuts

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