handlers

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteInternalErrorJSONResponse

func WriteInternalErrorJSONResponse(w http.ResponseWriter, err error)

func WriteInvalidJSONResponse

func WriteInvalidJSONResponse(w http.ResponseWriter, err error)

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, statusCode int, jsonObj interface{})

func WriteStatusAcceptedResponse

func WriteStatusAcceptedResponse(w http.ResponseWriter)

func WriteStatusCreatedResponse

func WriteStatusCreatedResponse(w http.ResponseWriter)

Types

type HandlerError

type HandlerError struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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