requests

package
v0.0.0-...-8ccb3ad Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGoogleCallback

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

func Index

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

Handle main page requests

func JoinTopic

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

JoinTopic ... with a given topic join the token to the topic, this token will receive messages from FCM

func LeaveTopic

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

LeaveTopic ... Remove a given token from a topic

func Reading

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

Reading ... process sensor data input

func RecoverTopic

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

RecoverTopic ... Will eventually return a way to recover tokens from a topic

func RefreshToken

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

RefreshToken ... Replace an expired token with a new one

func Register

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

register a new user with Google Cloud messaging

func RegisterDevice

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

RegisterDevice ... Register a new sensor with a given topic

Types

This section is empty.

Jump to

Keyboard shortcuts

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