gwevents

package
v0.0.0-...-cfba5c7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GwEvent

type GwEvent struct {
	Type gwEventType `json:"event"`          // EventType holds the event type (see constants)
	Data string      `json:"data,omitempty"` // The data sent or received from the gateway (if applicable)
}

GwEvent types are OOB events for the gateway. They will be sent as a debugging aid for gateways. The gateway interface(s) forwards all gateway events to a buffered channel which will distribute the events to listeners.

func NewInactive

func NewInactive() GwEvent

NewInactive creates a new inactive event

func NewKeepAlive

func NewKeepAlive() GwEvent

NewKeepAlive creates a new keepalive event

func NewRx

func NewRx(data string) GwEvent

NewRx creates a new Rx event for the gateway

func NewTx

func NewTx(data string) GwEvent

NewTx creates a new Tx event for the gateway

Jump to

Keyboard shortcuts

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