push

package
v0.0.0-...-817c61a Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 9 Imported by: 1

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

func (d Data) RequiresAuth() bool

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

Jump to

Keyboard shortcuts

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