controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SHEETNAME = "Strava-Export"
)

Functions

func ExportData

func ExportData(c *gin.Context)

ExportData exports an Excel report

func GetActivitiesPage

func GetActivitiesPage(c *gin.Context)

GetActivitiesPage returns the activities page

func Logout

func Logout(c *gin.Context)

Logout invalidates the token and clears the session

Types

type AuthController

type AuthController struct {
	OAuthConfig oauth2.Config
}

func (*AuthController) AuthMiddleware

func (a *AuthController) AuthMiddleware() gin.HandlerFunc

AuthMiddleware checks if a user is authenticated

func (*AuthController) AuthenticateUser

func (ac *AuthController) AuthenticateUser(c *gin.Context)

AuthenticateUser requests an oauth token and stores it in the session

func (*AuthController) GetLoginPage

func (ac *AuthController) GetLoginPage(c *gin.Context)

GetLoginPage returns the login page

Jump to

Keyboard shortcuts

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