Documentation
¶
Index ¶
Constants ¶
View Source
const AUTH_COOKIE_NAME = "dmauth"
Variables ¶
This section is empty.
Functions ¶
func DeleteAuthCookie ¶
func SetAuthCookie ¶
func SetAuthCookie(c echo.Context, cc AuthCookieContent)
Types ¶
type AuthCookieContent ¶
type AuthCookieContent struct {
Expiry time.Time `json:"expiry"`
UserName string `json:"userName"`
}
func GetAuthCookie ¶
func GetAuthCookie(c echo.Context) (*AuthCookieContent, error)
Click to show internal directories.
Click to hide internal directories.