controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2018 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 Bar

type Bar struct {
	Greeting string
}

type BarController

type BarController struct {
	web.Controller
}

func (*BarController) GetSayHello

func (c *BarController) GetSayHello(ctx *web.Context)

type FooController

type FooController struct {
	web.Controller
}

func (*FooController) Before

func (c *FooController) Before(ctx *web.Context)

func (*FooController) GetSayHello

func (c *FooController) GetSayHello(ctx *web.Context)

func (*FooController) PostLogin

func (c *FooController) PostLogin(ctx *web.Context)

Post login The first word of method is the http method POST, the rest is the context mapping

func (*FooController) PostSayHello

func (c *FooController) PostSayHello(ctx *web.Context)

type FooRequest

type FooRequest struct {
	Name string
}

type FooResponse

type FooResponse struct {
	Greeting string
}

type UserRequest

type UserRequest struct {
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
}

Jump to

Keyboard shortcuts

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