Documentation ¶
Overview ¶
The very core database/cache data operations package.
Index ¶
- Variables
- func DeleteOne(cache *core.Cache, key string) bool
- func DumpAll() string
- func GetAll[T any](cache *core.Cache, model T) (map[string]T, int)
- func GetGravatarURL(emailInput string, channel chan string, wg *sync.WaitGroup) string
- func GetOne[T any](cache *core.Cache, key string, model T) (T, bool)
- func LoadAll() string
- func Lock()
- func Router() chi.Router
- func RunMigrations(l *common.Logger) string
- func SetOne[T any](cache *core.Cache, key string, model T) bool
- func Unlock()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetGravatarURL ¶
GetGravatarURL function returns the avatar image location/URL, or it defaults to a app logo.
func Lock ¶ added in v0.43.2
func Lock()
Lock function ensures that the database driver is set to the readonly mode.
func RunMigrations ¶
RunMigrations is a wrapper function for the migration registration and execution.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.