Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct{}
Data is the push data endpoint handler
func (Data) GetHandler ¶
func (d Data) GetHandler(queue *event.Queue) httprouter.Handle
func (Data) PostHandler ¶
func (d Data) PostHandler(queue *event.Queue) httprouter.Handle
PostHandler handles POST requests
func (Data) RequiresAuth ¶
RequiresAuth - decides if it needs a token.
type Push ¶
type Push interface { PostHandler(queue *event.Queue) httprouter.Handle GetHandler(queue *event.Queue) httprouter.Handle RequiresAuth() bool // this trigger expects to be authenticated with the server }
Push defines the http push handlers that can send events to a queue the handler funcs returns a handler closed on the event queue
Click to show internal directories.
Click to hide internal directories.