Documentation
¶
Index ¶
Constants ¶
View Source
const ( RouteTypeIndex = iota RouteTypeCreate RouteTypeStore RouteTypeShow RouteTypeEdit RouteTypeUpdate RouteTypeDestroy )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CRUD ¶
type CRUD interface {
Index(support.Refiber, *fiber.Ctx) error
Create(support.Refiber, *fiber.Ctx) error
Store(support.Refiber, *fiber.Ctx) error
Show(support.Refiber, *fiber.Ctx) error
Edit(support.Refiber, *fiber.Ctx) error
Update(support.Refiber, *fiber.Ctx) error
Destroy(support.Refiber, *fiber.Ctx) error
}
type Crud ¶
type Crud struct {
Identifier string
Controller CRUD
Only *[]RouteType
Except *[]RouteType
// contains filtered or unexported fields
}
func (*Crud) AddMidlewareToRoutes ¶
type CrudHandler ¶
type CrudHandler = func(crud *Crud)
type RouterInterface ¶
type RouterInterface interface {
Group(path string, middlewares ...Hanlder) *route
Head(path string, controller Controller, middlewares ...Hanlder) *route
Get(path string, controller Controller, middlewares ...Hanlder) *route
Post(path string, controller Controller, middlewares ...Hanlder) *route
Put(path string, controller Controller, middlewares ...Hanlder) *route
Delete(path string, controller Controller, middlewares ...Hanlder) *route
Patch(path string, controller Controller, middlewares ...Hanlder) *route
CRUD(path string, handler CrudHandler, middlewares ...Hanlder)
}
Click to show internal directories.
Click to hide internal directories.