handler

package
v2.0.0-...-76fd7a6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPagination

func ApplyPagination(pagination *types.Pagination, data types.APIObject) types.APIObject

func ApplyQueryConditions

func ApplyQueryConditions(conditions []*types.QueryCondition, schema *types.Schema, objs types.APIObject) types.APIObject

func ApplyQueryOptions

func ApplyQueryOptions(options *types.QueryOptions, schema *types.Schema, data types.APIObject) types.APIObject

func ApplySort

func ApplySort(sortOpts types.Sort, data types.APIObject) types.APIObject

func CreateHandler

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

func DeleteHandler

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

func ListHandler

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

func ParseAndValidateBody

func ParseAndValidateBody(apiOp *types.APIRequest, create bool) (types.APIObject, error)

func QueryFilter

func QueryFilter(opts *types.QueryOptions, schema *types.Schema, data types.APIObject) types.APIObject

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