controllers

package
v0.0.0-...-1095df5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiscordUser models.DiscordUser

Functions

func InitDB

func InitDB()

Initializes DB so it would give the Clients so that we can access the database

Types

type App

type App struct {
	*revel.Controller
}

func (App) Hello

func (c App) Hello(myName string) revel.Result

func (App) Index

func (c App) Index() revel.Result

type Oauth

type Oauth struct {
	*revel.Controller
}

func (Oauth) LogOut

func (c Oauth) LogOut() revel.Result

func (Oauth) Login

func (c Oauth) Login() revel.Result

Will send to Authorization if there is no cookies.

func (Oauth) User

func (c Oauth) User() revel.Result

Once authorized, discord sends a code in the parameters. We add them to the session and put a token to their cookie.

func (Oauth) UserInfo

func (c Oauth) UserInfo() revel.Result

Post-Authentication

type Result

type Result struct {
	*revel.Controller
}

func (Result) Index

func (c Result) Index() revel.Result

func (Result) Obtain

func (c Result) Obtain() revel.Result

func (Result) Profit

func (c Result) Profit() revel.Result

func (Result) Search

func (c Result) Search() revel.Result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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