Documentation ¶
Index ¶
- func AutoMigrate(dbs []*gorm.DB)
- func CheckPassword(password, plain string) bool
- func DateFormat(t time.Time, layout string) string
- func Error(c *Ctx, statusCode int, err error) error
- func GetErrors() []string
- func GetMessages() []string
- func HTMXRedirectTo(HXURL string, HXGETURL string, c *fiber.Ctx) error
- func HashPassword(password string) string
- func I32(c *Ctx, key string, defaultValue ...string) int32
- func I64(c *Ctx, key string, defaultValue ...string) int64
- func IP(c *Ctx) string
- func Int(c *Ctx, key string, defaultValue ...string) int
- func Lang() string
- func Msg(c *Ctx, code int, msg string) error
- func Now() time.Time
- func ParseDate(date string) time.Time
- func PushError(err string)
- func PushMessages(msg string)
- func RegisterAPICheckRouter(routerType string, f func(fiber.Router))
- func RegisterAdminCheckRouter(routerType string, f func(fiber.Router))
- func RegisterDatabase(dbType string, f func([]*gorm.DB))
- func RegisterRootNoCheckRouter(routerType string, f func(fiber.Router))
- func Render(c *Ctx, name string, bind interface{}, layouts ...string) error
- func SetLang(l string)
- func SetZoneOffset(offset int)
- func SetupDatabase(dbs []*gorm.DB)
- func SetupRouter(app *fiber.App)
- func Str(c *Ctx, key string, defaultValue ...string) string
- func U32(c *Ctx, key string, defaultValue ...string) uint32
- func U64(c *Ctx, key string, defaultValue ...string) uint64
- func Uint(c *Ctx, key string, defaultValue ...string) uint
- func Validate(i interface{}) error
- type Ctx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrate ¶
func CheckPassword ¶
func GetMessages ¶
func GetMessages() []string
func HTMXRedirectTo ¶
func HashPassword ¶
func PushMessages ¶
func PushMessages(msg string)
func RegisterAPICheckRouter ¶ added in v0.2.0
func RegisterAPICheckRouter(routerType string, f func(fiber.Router))
func RegisterAdminCheckRouter ¶
func RegisterAdminCheckRouter(routerType string, f func(fiber.Router))
func RegisterDatabase ¶
func RegisterRootNoCheckRouter ¶ added in v0.2.0
func RegisterRootNoCheckRouter(routerType string, f func(fiber.Router))
func SetZoneOffset ¶
func SetZoneOffset(offset int)
func SetupDatabase ¶
func SetupRouter ¶
func SetupRouter(app *fiber.App)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.