Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
// Prefix route pattern prefix
Prefix() string
// Gets route => GET: /${Prefix}
Gets() func(ctx *context.Context)
// Get route => GET: /${Prefix}/${RESTFUL_KEY}
Get() func(ctx *context.Context)
// Post route => POST: /${Prefix}
Post() func(ctx *context.Context)
// Put route => PUT: /${Prefix}/${RESTFUL_KEY}
Put() func(ctx *context.Context)
// Delete route => DELETE: /${Prefix}/${RESTFUL_KEY}
Delete() func(ctx *context.Context)
}
Controller interface
Click to show internal directories.
Click to hide internal directories.