Documentation
¶
Index ¶
- func CachedRedirect(url string, duration time.Duration) http.HandlerFunc
- func JSONError(w http.ResponseWriter, status int, err string)
- func JSONErrorInternal(w http.ResponseWriter, err error)
- func JSONResponse(w http.ResponseWriter, status int, data any)
- func PlainError(w http.ResponseWriter, status int)
- func RedirectToDirectory(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CachedRedirect ¶
func CachedRedirect(url string, duration time.Duration) http.HandlerFunc
func JSONErrorInternal ¶
func JSONErrorInternal(w http.ResponseWriter, err error)
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, status int, data any)
func PlainError ¶
func PlainError(w http.ResponseWriter, status int)
func RedirectToDirectory ¶
func RedirectToDirectory(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.