Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- Variables
- func Create(c helper.Context, configName string, fields []byte) (res schema.Response)
- func Get(c helper.Context, configName string) (res schema.Response)
- func GetList(c helper.Context, q Query) (res schema.Response)
- func GetName(c helper.Context) (res schema.Response)
- func Update(c helper.Context, configName string, fields []byte) (res schema.Response)
- type Query
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateRouter = router.Handler(func(c router.Context) { var body []byte body, err := c.GetBody() c.ResponseFunc(err, func() schema.Response { return Create(helper.NewContext(&c), c.Param("config_name"), body) }) })
View Source
var GetListRouter = router.Handler(func(c router.Context) { var ( query Query ) c.ResponseFunc(c.ShouldBindQuery(&query), func() schema.Response { return GetList(helper.NewContext(&c), query) }) })
View Source
var GetNameRouter = router.Handler(func(c router.Context) { c.ResponseFunc(nil, func() schema.Response { return GetName(helper.NewContext(&c)) }) })
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.