handler

package
v0.0.0-...-79b91ea Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPagination

func ApplyPagination(pagination *types.Pagination, data []map[string]interface{}) []map[string]interface{}

func ApplyQueryConditions

func ApplyQueryConditions(conditions []*types.QueryCondition, schema *types.Schema, data []map[string]interface{}) []map[string]interface{}

func ApplyQueryOptions

func ApplyQueryOptions(options *types.QueryOptions, schema *types.Schema, data []map[string]interface{}) []map[string]interface{}

func ApplySort

func ApplySort(sortOpts types.Sort, data []map[string]interface{}) []map[string]interface{}

func CreateHandler

func CreateHandler(apiContext *types.APIContext, next types.RequestHandler) error

func DeleteHandler

func DeleteHandler(request *types.APIContext, next types.RequestHandler) error

func ListHandler

func ListHandler(request *types.APIContext, next types.RequestHandler) error

func ParseAndValidateActionBody

func ParseAndValidateActionBody(apiContext *types.APIContext, actionInputSchema *types.Schema) (map[string]interface{}, error)

func ParseAndValidateBody

func ParseAndValidateBody(apiContext *types.APIContext, create bool) (map[string]interface{}, error)

func QueryFilter

func QueryFilter(opts *types.QueryOptions, schema *types.Schema, data []map[string]interface{}) []map[string]interface{}

func UpdateHandler

func UpdateHandler(apiContext *types.APIContext, next types.RequestHandler) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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