requestutil

package
v0.0.0-...-8c3636e Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AUTH_COOKIE_NAME = "dmauth"

Variables

This section is empty.

Functions

func DeleteAuthCookie

func DeleteAuthCookie(c echo.Context)

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)

Jump to

Keyboard shortcuts

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