gcphttp

package
v1.27.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorAlreadyExists

func ErrorAlreadyExists(message string, args ...interface{}) (*http.Response, error)

ErrorAlreadyExists builds an ALREADY_EXISTS error response

func ErrorBadRequest

func ErrorBadRequest(message string, args ...interface{}) (*http.Response, error)

ErrorBadRequest builds a BAD_REQUEST error response

func ErrorNotFound

func ErrorNotFound(message string, args ...interface{}) (*http.Response, error)

ErrorNotFound builds a NOT_FOUND error response

func OKResponse

func OKResponse(obj interface{}) (*http.Response, error)

OKResponse builds an response encoding the provided data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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