handler

package
v0.0.0-...-eef2c6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 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 []map[string]interface{}) []map[string]interface{}

func ApplyQueryConditions

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

func ApplyQueryOptions

func ApplyQueryOptions(options types.QueryOptions, 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) error

func DeleteHandler

func DeleteHandler(request *types.APIContext) error

func ListHandler

func ListHandler(request *types.APIContext) error

func ParseAndValidateBody

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

func QueryFilter

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

func UpdateHandler

func UpdateHandler(apiContext *types.APIContext) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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