utils

package
v0.0.0-...-db51e23 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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