event

package
v0.0.0-...-a74b2ab Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Events are created by sources when the system they are listening on trigger an event.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Event   string                 `json:"event"`
	Message map[string]interface{} `json:"message,omitempty"`
	Id      string                 `json:"id,omitempty"`
	Error   string                 `json:"error,omitempty"`
}

func (*Event) Get

func (this *Event) Get(s string) interface{}

func (*Event) GetFloat

func (this *Event) GetFloat(s string) float64

Returns a float64 from the required variable name

func (*Event) GetId

func (this *Event) GetId() string

func (*Event) GetInt

func (this *Event) GetInt(s string) int

Returns a int from the required variable name

func (*Event) GetName

func (this *Event) GetName() string

func (*Event) GetString

func (this *Event) GetString(s string) string

Returns a string from the required variable name

Jump to

Keyboard shortcuts

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