handlers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByIDHandler

func ByIDHandler(request *types.APIRequest) (types.APIObject, error)

func CreateHandler

func CreateHandler(apiOp *types.APIRequest) (types.APIObject, error)

func DeleteHandler

func DeleteHandler(request *types.APIRequest) (types.APIObject, error)

func ErrorHandler

func ErrorHandler(request *types.APIRequest, err error)

func ListHandler

func ListHandler(request *types.APIRequest) (types.APIObjectList, error)

func MetricsHandler

func MetricsHandler(successCode string, next func(apiRequest *types.APIRequest) (types.APIObject, error)) func(apiRequest *types.APIRequest) (types.APIObject, error)

func MetricsListHandler

func MetricsListHandler(successCode string, next func(apiRequest *types.APIRequest) (types.APIObjectList, error)) func(apiRequest *types.APIRequest) (types.APIObjectList, error)

func UpdateHandler

func UpdateHandler(apiOp *types.APIRequest) (types.APIObject, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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