Documentation ¶
Index ¶
- Variables
- type App
- type Base
- func (ctrl *Base) AddRoute(route *Route)
- func (ctrl *Base) GetIdParams(c *fiber.Ctx, key string) (primitive.ObjectID, *gerror.Error)
- func (ctrl *Base) GetParams(c *fiber.Ctx, key string) (string, *gerror.Error)
- func (ctrl *Base) GetToken(ctx *fiber.Ctx) string
- func (ctrl *Base) GetUser(ctx *fiber.Ctx) jwt.Claims
- func (ctrl *Base) Routes(app *fiber.App)
- type Config
- type Interface
- type Route
- func Delete(path string, handler fiber.Handler, auth bool, roles ...string) *Route
- func Get(path string, handler fiber.Handler, auth bool, roles ...string) *Route
- func Post(path string, handler fiber.Handler, auth bool, roles ...string) *Route
- func Put(path string, handler fiber.Handler, auth bool, roles ...string) *Route
- func Static(path string, handler fiber.Handler) Route
Constants ¶
This section is empty.
Variables ¶
View Source
var MethodDelete = "DELETE"
View Source
var MethodGet = "GET"
View Source
var MethodOptions = "OPTIONS"
View Source
var MethodPatch = "PATCH"
View Source
var MethodPost = "POST"
View Source
var MethodPut = "PUT"
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Auth *auth.Auth Logger *logger.Logger Prefix string // contains filtered or unexported fields }
func (*Base) GetIdParams ¶
Click to show internal directories.
Click to hide internal directories.