controllers

package
v0.0.0-...-83425ee Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

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