handler

package
v1.9.35 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	core.Handler // must extends core.Handler
}

define handler

func (Handler) Get

func (Handler) Get(c *core.Ctx)

Get get user list get /

route: GET / > main.Handler.Get

func (Handler) GetParam added in v1.9.32

func (Handler) GetParam(c *core.Ctx)

GetParam get some param

get param id planA @param: uid.UID userId route: GET /:param > main.Handler.GetDetailParam

func (Handler) Put added in v1.9.32

func (Handler) Put(c *core.Ctx)

Put create user put /

{
    "user": "username",
    "password": "password"
}

route: PUT / > main.Handler.Put

Jump to

Keyboard shortcuts

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