receiver

package
v0.40.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "wathola-receiver"
)

Variables

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

Functions

func Shutdown added in v0.34.0

func Shutdown()

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"`
	EventsSent    int    `json:"eventsSent"`
	TotalRequests int    `json:"totalRequests"`
	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"`
	Unavailable []string `jsong:"unavailable"`
}

Thrown holds different error types.

Jump to

Keyboard shortcuts

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