receiver

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Canceling = make(chan context.CancelFunc, 1)
)

Functions

This section is empty.

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

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