event

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 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 {
	Service   *service.Service
	Key       string
	Data      interface{}
	CreatedAt time.Time
}

Event stores all informations about Events.

func Create

func Create(s *service.Service, eventKey string, eventData map[string]interface{}) (*Event, error)

Create creates an event eventKey with eventData for service s.

func (*Event) Publish

func (event *Event) Publish()

Publish publishes an event for every listener.

Jump to

Keyboard shortcuts

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