filters

package
v0.0.0-...-6c593c1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const INDEX = "index.html"

Variables

View Source
var GoogleOauthConfig = &oauth2.Config{
	Scopes:   []string{"https://www.googleapis.com/auth/userinfo.email"},
	Endpoint: google.Endpoint,
}

Scopes: OAuth 2.0 scopes provide a way to limit the amount of access that is granted to an access token.

Functions

func Auth

func Auth(manager *session.Manager) func(c *gin.Context)

func Exists

func Exists(fs http.FileSystem, prefix string, filepath string) bool

func GetUserDataFromGoogle

func GetUserDataFromGoogle(code string) ([]byte, error)

func GoogleOAuthCallback

func GoogleOAuthCallback(manager *session.Manager) func(c *gin.Context)

func OauthGoogleLogin

func OauthGoogleLogin(c *gin.Context)

func Serve

func Serve(urlPrefix string, fs http.FileSystem) gin.HandlerFunc

Static returns a middleware handler that serves static files in the given directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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