handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delay

func Delay(w http.ResponseWriter, req *http.Request)

Delay documentation @Summary Responds with a 200 HTTP status code but with a random delay @Tags v1 @Produce text/text @Success 200 @Router /v1/delay [get]

func Exception

func Exception(w http.ResponseWriter, req *http.Request)

Exception documentation @Summary Responds with a 500 HTTP status code @Tags v1 @Failure 500 {string} string "Oh no, something went wrong!" @Router /v1/error [get]

func Normal

func Normal(w http.ResponseWriter, req *http.Request)

Normal documentation @Summary Responds with a 200 HTTP status code @Tags v1 @Produce text/text @Success 200 @Router /v1/ok [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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