response

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrKeyResourceNotFound = "DefaultResourceNotFound"
)

Variables

This section is empty.

Functions

func GetDefault200Response

func GetDefault200Response(w http.ResponseWriter, r *http.Request)

GetDefault200Response returns default 200 response to be used in cases such as Healthchecks.

TODO: Consider swapping out for https://github.com/etherlabsio/healthcheck at a later date

func GetResourceNotFoundError

func GetResourceNotFoundError(w http.ResponseWriter, r *http.Request)

GetResourceNotFoundError returns default 404 response

Types

This section is empty.

Jump to

Keyboard shortcuts

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