controllers

package
v0.0.0-...-e1932af Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct {
}

func Admin

func Admin() *AdminController

func (*AdminController) Activate

func (controller *AdminController) Activate(context echo.Context) error

func (*AdminController) Reset

func (controller *AdminController) Reset(context echo.Context) error

type DefaultController

type DefaultController struct {
}

func Default

func Default() *DefaultController

func (*DefaultController) Index

func (controller *DefaultController) Index(context echo.Context) error

type JsonResponse

type JsonResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type NumberController

type NumberController struct {
}

func Number

func Number() *NumberController

func (*NumberController) List

func (n *NumberController) List(context echo.Context) error

func (*NumberController) Next

func (n *NumberController) Next(context echo.Context) error

type UserController

type UserController struct{}

func User

func User() *UserController

func (*UserController) Add

func (u *UserController) Add(context echo.Context) error

func (*UserController) Get

func (u *UserController) Get(context echo.Context) error

func (*UserController) UpdateNumbers

func (u *UserController) UpdateNumbers(context echo.Context) error

Jump to

Keyboard shortcuts

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