web

package
v0.0.0-...-e115b17 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hook

func Hook(c *gin.Context)

func Index

func Index(c *gin.Context)

func Login

func Login(c *gin.Context)

Login attempts to authorize a user via GitHub oauth2. If the user does not yet exist, and new account is created. Upon successful login the user is redirected to the main screen.

func LoginToken

func LoginToken(c *gin.Context)

LoginToken authenticates a user with their GitHub token and returns an LGTM API token in the response.

func Logout

func Logout(c *gin.Context)

Logout terminates the session for the currently authenticated user, deleting all session cookies, and redirecting back to the main page.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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