Documentation ¶
Index ¶
- Constants
- Variables
- func Auth(manager *session.Manager) func(c *gin.Context)
- func Exists(fs http.FileSystem, prefix string, filepath string) bool
- func GetUserDataFromGoogle(code string) ([]byte, error)
- func GoogleOAuthCallback(manager *session.Manager) func(c *gin.Context)
- func OauthGoogleLogin(c *gin.Context)
- func Serve(urlPrefix string, fs http.FileSystem) gin.HandlerFunc
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 GetUserDataFromGoogle ¶
func OauthGoogleLogin ¶
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.
Click to show internal directories.
Click to hide internal directories.