controller

package
v0.0.0-...-af691bc Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package controller generated by 'freedom new-project github.com/8treenet/dump'

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) 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