Documentation ¶
Overview ¶
Package events implements a log of coordinator events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivationEvent ¶
type ActivationEvent struct { MarbleType string `json:"marbleType"` UUID string `json:"uuid"` Quote []byte `json:"quote"` }
ActivationEvent is an event that is logged when a marble is activated.
type Event ¶
type Event struct { Timestamp time.Time `json:"time"` Activation *ActivationEvent `json:"activation"` }
Event represents a single event in the event log.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a log of coordinator events.
func (*Log) Activation ¶
Activation adds an activation event to the log.
func (*Log) Handler ¶
func (l *Log) Handler() http.HandlerFunc
Handler returns a http.HandlerFunc which writes the log as JSON array.
Click to show internal directories.
Click to hide internal directories.