events

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routes = []http.Route{

	{Path: "/events", Method: http.MethodGet, Middleware: []http.Middleware{middleware.Context}, Handler: EventSubscribeH},
}

Functions

func EventSubscribeH

func EventSubscribeH(w http.ResponseWriter, r *http.Request)

EventSubscribeH - realtime subscribe handler

Types

type Event

type Event struct {
	Entity string      `json:"entity"`
	Action string      `json:"action"`
	Name   string      `json:"name"`
	Data   interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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