common

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package common provides common functions for the api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteEmpty

func WriteEmpty(w http.ResponseWriter)

WriteEmpty returns a 204 response with no body.

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, data any, statusCode int)

WriteJSONResponse returns any data provided as a JSON body to the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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