handlers

package
v0.0.0-...-c7c103a Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(c *gin.Context)

AuthHandler handles authentication of a user and initiates a session.

func FieldHandler

func FieldHandler(c *gin.Context)

FieldHandler is a rudementary handler for logged in users.

func IndexHandler

func IndexHandler(c *gin.Context)

IndexHandler handels /.

func LoginHandler

func LoginHandler(c *gin.Context)

LoginHandler handles the login procedure.

func RandToken

func RandToken(l int) string

RandToken generates a random @l length token.

Types

type Credentials

type Credentials struct {
	Cid     string `json:"cid"`
	Csecret string `json:"csecret"`
}

Credentials which stores google ids.

Jump to

Keyboard shortcuts

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