Documentation
¶
Index ¶
- func Chat(c *gin.Context)
- func CreateTrip(c *gin.Context)
- func DeleteTrip(c *gin.Context)
- func DisjoinTrip(c *gin.Context)
- func GetFileName(filename string) string
- func GetTrip(c *gin.Context)
- func GpxHandling(gpx *multipart.FileHeader, tripID int) (string, bool)
- func JoinTrip(c *gin.Context)
- func Logout(c *gin.Context)
- func MyTrips(c *gin.Context)
- func MyTripsSuccess(c *gin.Context)
- func NoRoute(c *gin.Context)
- func PerformLogin(c *gin.Context)
- func Register(c *gin.Context)
- func Render(c *gin.Context, data gin.H, templateName string)
- func SettingsUpdate(c *gin.Context)
- func ShowAchievmentsPage(c *gin.Context)
- func ShowIndexPage(c *gin.Context)
- func ShowLoginPage(c *gin.Context)
- func ShowRegistrationPage(c *gin.Context)
- func ShowSettings(c *gin.Context)
- func ShowTripCreationPage(c *gin.Context)
- func ShowTripUpdatePage(c *gin.Context)
- func ShowTripsPage(c *gin.Context)
- func ShowUser(c *gin.Context)
- func UpdateTrip(c *gin.Context)
- type Err
- type JwtClaim
- type JwtWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GpxHandling ¶
func GpxHandling(gpx *multipart.FileHeader, tripID int) (string, bool)
GpxHandling --
Types ¶
type JwtClaim ¶
type JwtClaim struct {
UserID int
Username string
jwt.StandardClaims
}
JwtClaim adds email as a claim to the token
type JwtWrapper ¶
JwtWrapper wraps the signing key and the issuer
func (*JwtWrapper) GenerateToken ¶
func (j *JwtWrapper) GenerateToken(userID int, username string) (signedToken string, err error)
GenerateToken --
func (*JwtWrapper) ValidateToken ¶
func (j *JwtWrapper) ValidateToken(signedToken string) (claims *JwtClaim, err error)
ValidateToken validates the jwt token
Click to show internal directories.
Click to hide internal directories.