receiver

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 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 Report added in v0.19.0

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

Report represents state as JSON

type Thrown added in v0.20.0

type Thrown struct {
	Duplicated []string `json:"duplicated"`
	Missing    []string `json:"missing"`
	Unexpected []string `json:"unexpected"`
}

Thrown holds different error types.

Jump to

Keyboard shortcuts

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