Documentation ¶
Index ¶
- func Encode(event *Event) (data []byte, err error)
- func EncodeJSON(event *Event) (data []byte, err error)
- type Event
- func (j *Event) Array() ([]interface{}, error)
- func (j *Event) Bool() (bool, error)
- func (j *Event) Bytes() ([]byte, error)
- func (j *Event) Float64() (float64, error)
- func (j *Event) Get(key string) *Event
- func (j *Event) Int() (int, error)
- func (j *Event) Int64() (int64, error)
- func (j *Event) Map() (map[string]interface{}, error)
- func (j *Event) String() (string, error)
- type EventsChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeJSON ¶
Types ¶
type Event ¶
type Event struct {
Payload interface{}
}
func DecodeJSON ¶
func (*Event) Get ¶
Get returns a pointer to a new `Json` object for `key` in its `map` representation
useful for chaining operations (to traverse a nested JSON):
js.Get("top_level").Get("dict").Get("value").Int()
type EventsChannel ¶
type EventsChannel chan *Event
Click to show internal directories.
Click to hide internal directories.