handler

package
v0.0.0-...-cd2daff Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2014 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package handler includes all handle functions for the HTTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelConnectHandler

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

The ChannelConnectHandler only logs newly connected channel clients.

func ChannelDisconnectHandler

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

The ChannelDisconnectHandler triggers the removal of disconnected channel clients in the App Engine Datastore.

func ConnectHandler

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

The ConnectHandler exchanges the one-time authorization code for a token and stores the token in the session.

func DisconnectHandler

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

The DisconnectHandler revokes the current user's token and resets their session.

func EventsGalleryHandler

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

The EventsGalleryHandler triggers a (re-)aggregation of event pictures for a given event

func EventsHandler

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

The EventsHandler responds the Google+ events for the signed-in user.

func GetTokenHandler

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

The GetTokenHandler creates a token for the requesting client and returns it.

func ImprintHandler

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

The RootHandler responds with the imprint page.

func RootHandler

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

The RootHandler responds with the landing page.

Types

type ClaimSet

type ClaimSet struct {
	Sub string
}

ClaimSet represents an IdToken response.

type Token

type Token struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
	IdToken     string `json:"id_token"`
}

Token represents an OAuth token response.

Jump to

Keyboard shortcuts

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