Documentation
¶
Index ¶
- func ClearCookie(w http.ResponseWriter, name string, isProd bool)
- func GetCookie(w http.ResponseWriter, r *http.Request, name string) (string, error)
- func GetUserIDFromToken(r *http.Request) (int, error)
- func ReadBodyRequest(request *http.Request, requestData any) error
- func SendResponse(w http.ResponseWriter, statusCode int, response any)
- func SetCookie(w http.ResponseWriter, name string, value string, isProd bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCookie ¶
func ClearCookie(w http.ResponseWriter, name string, isProd bool)
func SendResponse ¶
func SendResponse(w http.ResponseWriter, statusCode int, response any)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.