Documentation ¶
Index ¶
- Variables
- func CookieUpdate(c *fiber.Ctx, user userModel.User) error
- func Filter[T any](slice []T, condition func(T) bool) []T
- func Find[T any](slice []T, condition func(T) bool) *T
- func GetUserCache(email string) *userModel.User
- func Includes[T any](slice []T, condition func(T) bool) bool
- func Map[T any, R any](slice []T, transform func(T) R) []R
- func ParseBody[T any](c *fiber.Ctx) (*T, error)
- func UpdateUsersCache(user userModel.User) bool
- func ValidateStruct(s interface{}) error
- type Injector
Constants ¶
This section is empty.
Variables ¶
View Source
var SingletonInjector = NewInjector()
SingletonInjector is the global instance of Injector
Functions ¶
func CookieUpdate ¶
func GetUserCache ¶
func UpdateUsersCache ¶
func ValidateStruct ¶
func ValidateStruct(s interface{}) error
Types ¶
type Injector ¶
type Injector struct {
// contains filtered or unexported fields
}
Injector struct to hold the singleton objects
Click to show internal directories.
Click to hide internal directories.