Documentation ¶
Index ¶
- func ClearJwtCookie(w http.ResponseWriter, name string)
- func SetCookie(w http.ResponseWriter, name string, cookieVal string)
- func WriteJsonBadReq(w http.ResponseWriter, err error)
- func WriteJsonResponse(w http.ResponseWriter, statusCode int, data any)
- func WriteJsonServerErr(w http.ResponseWriter, err error)
- func WriteJsonUnauthorized(w http.ResponseWriter, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearJwtCookie ¶
func ClearJwtCookie(w http.ResponseWriter, name string)
Clears the cookie with name parameter
func SetCookie ¶
func SetCookie(w http.ResponseWriter, name string, cookieVal string)
Set a cookie with this config
func WriteJsonBadReq ¶
func WriteJsonBadReq(w http.ResponseWriter, err error)
func WriteJsonResponse ¶
func WriteJsonResponse(w http.ResponseWriter, statusCode int, data any)
func WriteJsonServerErr ¶
func WriteJsonServerErr(w http.ResponseWriter, err error)
func WriteJsonUnauthorized ¶
func WriteJsonUnauthorized(w http.ResponseWriter, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.