receiver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 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 Message

type Message struct {
	SourceAddress net.IP
	SourcePort    int
	Payload       []byte
}

type Receiver

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

func New

func New(globalConfig *config.Config, myConfig *config.ReceiverConfig, errFunc func(error), logFunc func(string)) *Receiver

func (*Receiver) AddMessage

func (r *Receiver) AddMessage(msg *Message) error

func (*Receiver) StartSending

func (r *Receiver) StartSending(wg *sync.WaitGroup) error

func (*Receiver) Stop

func (r *Receiver) Stop()

Jump to

Keyboard shortcuts

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