Documentation ¶
Index ¶
- func DeleteAdminCookie(gc *gin.Context)
- func DeleteMfaSession(gc *gin.Context)
- func DeleteSession(gc *gin.Context)
- func GetAdminCookie(gc *gin.Context) (string, error)
- func GetMfaSession(gc *gin.Context) (string, error)
- func GetSession(gc *gin.Context) (string, error)
- func SetAdminCookie(gc *gin.Context, token string)
- func SetMfaSession(gc *gin.Context, sessionID string)
- func SetSession(gc *gin.Context, sessionID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAdminCookie ¶
DeleteAdminCookie sets the response cookie to empty
func DeleteMfaSession ¶
DeleteMfaSession deletes the mfa session cookies to expire
func DeleteSession ¶
DeleteSession sets session cookies to expire
func GetAdminCookie ¶
GetAdminCookie gets the admin cookie from the request
func GetMfaSession ¶
GetMfaSession gets the mfa session cookie from context
func GetSession ¶
GetSession gets the session cookie from context
func SetAdminCookie ¶
SetAdminCookie sets the admin cookie in the response
func SetMfaSession ¶
SetMfaSession sets the mfa session cookie in the response
func SetSession ¶
SetSession sets the session cookie in the response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.