controller

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 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 Default

type Default struct {
	Sev     *domain.Default
	Worker  freedom.Worker
	Request *infra.Request
}

func (*Default) BeforeActivation

func (m *Default) BeforeActivation(b freedom.BeforeActivation)

func (*Default) CustomHello

func (c *Default) CustomHello() freedom.Result

PostHello handles the POST: /hello route.

func (*Default) Get

func (c *Default) Get() freedom.Result

Get handles the GET: / route.

func (*Default) GetAgeByUserBy

func (c *Default) GetAgeByUserBy(age int, user string) freedom.Result

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

func (*Default) GetHello

func (c *Default) GetHello() string

GetHello handles the GET: /hello route.

func (*Default) GetUserBy

func (c *Default) GetUserBy(username string) freedom.Result

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

func (*Default) PostHello

func (c *Default) PostHello() freedom.Result

PostHello handles the POST: /hello route.

func (*Default) PutHello

func (c *Default) PutHello() freedom.Result

PutHello handles the PUT: /hello route.

Jump to

Keyboard shortcuts

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