Documentation ¶
Index ¶
- func AppendRecoverErrors(err error)
- type Controller
- func (c *Controller) Abort(code ...int)
- func (c *Controller) Done()
- func (c *Controller) Init(context *context.Context)
- func (c *Controller) JsonResponse()
- func (c *Controller) MustEqual(value interface{}, compare interface{}, msg string)
- func (c *Controller) MustGetInt(key string, msg string) uint64
- func (c *Controller) MustGetString(key string, msg string) string
- func (c *Controller) RaiseParamsError(msg string)
- func (c *Controller) RecoverFunc(context *context.Context)
- func (c *Controller) Serve()
- func (c *Controller) SetJsonBody(body []byte)
- type ListController
- type SmokingController
- type UniqueIdController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRecoverErrors ¶
func AppendRecoverErrors(err error)
Types ¶
type Controller ¶
type Controller struct { Params map[string][]string Request http.Request Data map[interface{}]interface{} Context *context.Context }
func (*Controller) Abort ¶
func (c *Controller) Abort(code ...int)
func (*Controller) Done ¶
func (c *Controller) Done()
func (*Controller) Init ¶
func (c *Controller) Init(context *context.Context)
func (*Controller) JsonResponse ¶
func (c *Controller) JsonResponse()
func (*Controller) MustEqual ¶
func (c *Controller) MustEqual(value interface{}, compare interface{}, msg string)
func (*Controller) MustGetInt ¶
func (c *Controller) MustGetInt(key string, msg string) uint64
func (*Controller) MustGetString ¶
func (c *Controller) MustGetString(key string, msg string) string
func (*Controller) RaiseParamsError ¶
func (c *Controller) RaiseParamsError(msg string)
func (*Controller) RecoverFunc ¶
func (c *Controller) RecoverFunc(context *context.Context)
func (*Controller) Serve ¶
func (c *Controller) Serve()
func (*Controller) SetJsonBody ¶
func (c *Controller) SetJsonBody(body []byte)
type ListController ¶
type ListController struct {
Controller
}
func (*ListController) Create ¶
func (l *ListController) Create()
func (*ListController) Index ¶
func (l *ListController) Index()
func (*ListController) Update ¶
func (l *ListController) Update()
type SmokingController ¶
type SmokingController struct {
Controller
}
func (*SmokingController) Smoking ¶
func (s *SmokingController) Smoking()
type UniqueIdController ¶
type UniqueIdController struct {
Controller
}
func (*UniqueIdController) Create ¶
func (u *UniqueIdController) Create()
func (*UniqueIdController) Update ¶
func (u *UniqueIdController) Update()
Click to show internal directories.
Click to hide internal directories.