controller

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 6 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
}

Default .

func (*Default) BeforeActivation

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

BeforeActivation .

func (*Default) CustomHello

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

CustomHello 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) PostFile added in v1.9.0

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

PostFile handles the Post: /file route.

func (*Default) PostForm added in v1.9.0

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

PostForm handles the Post: /form 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.

type DefaultV2 added in v1.8.0

type DefaultV2 struct {
	Default      //super
	DefServiceV2 *domain.DefaultV2
}

DefaultV2 .

func (*DefaultV2) Get added in v1.8.0

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

Get handles the GET: / route.

func (*DefaultV2) GetHello added in v1.8.0

func (c *DefaultV2) GetHello() string

GetHello handles the GET: /hello route.

Jump to

Keyboard shortcuts

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