controller

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 5 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) Custom added in v1.9.3

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

Custom handles the ANY: /custom route.

func (*Default) CustomPath added in v1.9.3

func (c *Default) CustomPath(id int64, uid int, username string) freedom.Result

CustomPath handles the GET: /customPath/{id:int64}/{uid:int}/{username:string} route.

func (*Default) DeleteHello added in v1.9.3

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

PutHello handles the DELETE: /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