handlers

package
v0.0.0-...-3d4d258 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 18 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 handles the location /.

func LoginHandler

func LoginHandler(c *gin.Context)

LoginHandler handles the login procedure.

func PageHandler

func PageHandler(c *gin.Context)

PageHandler handles the location /.

func ProfileHandler

func ProfileHandler(c *gin.Context)

ProfileHandler to handled user's profile page

func RandToken

func RandToken(l int) (string, error)

RandToken generates a random @l length token.

func RandomHandler

func RandomHandler(c *gin.Context)

RandomHandler handles random pick

func SearchHandler

func SearchHandler(c *gin.Context)

SearchHandler handles searches by any user

func SearchMoviesHandler

func SearchMoviesHandler(c *gin.Context)

SearchMoviesHandler handles the movie/shows/people search using the movie DB called themoviedb.org which has a Go specific library!

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