events

package
v0.0.0-...-2c5825a Latest Latest
Warning

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

Go to latest
Published: May 14, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Id            uuid.UUID `id`
	ServiceId     string    `serviceId`
	CorrelationId string    `correlationId`
	Timestamp     time.Time `timestamp`
	SendTimestamp time.Time `sendTimestamp`

	Path    string      `path`
	Payload interface{} `payload`
}

func (*Event) PrepareForSend

func (evt *Event) PrepareForSend()

Populate extra event fields, such as its id and a creation timestamp

func (*Event) Verify

func (evt *Event) Verify() (err error)

Verify that the event is valid and can be sent/processed

Jump to

Keyboard shortcuts

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