controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultController

type DefaultController struct {
	Sev     *services.DefaultService
	Runtime freedom.Runtime
}

func (*DefaultController) Get

func (c *DefaultController) Get() (result struct {
	IP string
	UA string
}, e error)

Get handles the GET: / route.

func (*DefaultController) GetAgeByUserBy

func (c *DefaultController) GetAgeByUserBy(age int, user string) (result struct {
	User string
	Age  int
}, e error)

GetAgeByUserBy handles the GET: /age/{age:int}/user/{user:string} route.

func (*DefaultController) GetHello

func (c *DefaultController) GetHello() string

GetHello handles the GET: /hello route.

func (*DefaultController) GetUserBy

func (c *DefaultController) GetUserBy(username string) string

GetUserBy handles the GET: /user/{username:string} route.

Jump to

Keyboard shortcuts

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