siteevent

package
v0.0.0-...-abdf720 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NatsSubject is the base subject on which site events are published. The sub subjects contain the site id.
	// example: 'site-event.my-site'
	NatsSubject = "sites-event"
)

Functions

This section is empty.

Types

type Event

type Event struct {
	Train string `json:"train"`
	Event string `json:"event"`
	Site  string `json:"site"`
}

func Unmarshal

func Unmarshal(data []byte) (Event, error)

Jump to

Keyboard shortcuts

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