receiver

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stop

func Stop()

Stop will stop running receiver if there is one

Types

type Receiver

type Receiver interface {
	Receive()
}

Receiver perform waiting and receiving of events

func New

func New() Receiver

New creates new Receiver

type StateJSON added in v0.6.0

type StateJSON struct {
	State  string   `json:"state"`
	Events int      `json:"events"`
	Thrown []string `json:"thrown"`
}

StateJSON represents state as JSON

Jump to

Keyboard shortcuts

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