Versions in this module Expand all Collapse all v0 v0.2.1 Feb 3, 2024 Changes in this version + func Error(c *Ctx, statusCode int, err error) error + func RegisterAPIAuth(fn func(ctx *fiber.Ctx) error) + func RegisterAdminAuth(fn func(ctx *fiber.Ctx) error) + func RegisterPublicNoCheckRouter(routerType string, f func(fiber.Router)) v0.2.0 Feb 1, 2024 Changes in this version + func RegisterAPICheckRouter(routerType string, f func(fiber.Router)) + func RegisterAPINoCheckRouter(routerType string, f func(fiber.Router)) + func RegisterRootCheckRouter(routerType string, f func(fiber.Router)) + func RegisterRootNoCheckRouter(routerType string, f func(fiber.Router)) v0.1.0 Jan 25, 2024 Changes in this version + func CheckPassword(password, plain string) bool + func DateFormat(t time.Time, layout string) string + func Err(c *Ctx, code int) error + func GetAdminObjects() []object.AdminObject + 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 Ok(c *fiber.Ctx, data interface{}) error + func ParseDate(date string) time.Time + func Push(c *fiber.Ctx, code int) error + func RandNumberText(n int) string + func RandText(n int) string + func RegisterAdminCheckRouter(routerType string, f func(fiber.Router)) + func RegisterAdminObject(objs []object.AdminObject) + func RegisterCheckRouter(routerType string, f func(fiber.Router)) + func RegisterDatabase(dbType string, f func([]*gorm.DB)) + func RegisterNoCheckRouter(routerType string, f func(fiber.Router)) + func Render(c *Ctx, name string, bind interface{}, layouts ...string) error + func SafeCall(f func() error, failHandle func(error)) 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 StructAsMap(form any, fields []string) (vals map[string]any) + 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 + func ViewEngineStart() *html.Engine + type Ctx = fiber.Ctx + type ExpiredLRUCache struct + func NewExpiredLRUCache[K comparable, V any](size int, expired time.Duration) *ExpiredLRUCache[K, V] + func (c *ExpiredLRUCache[K, V]) Add(key K, value V) (evicted bool) + func (c *ExpiredLRUCache[K, V]) Contains(key K) bool + func (c *ExpiredLRUCache[K, V]) Get(key K) (value V, ok bool) + func (c *ExpiredLRUCache[K, V]) Remove(key K) (present bool)