db

package
v0.39.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlowCache         *core.Cache
	PollCache         *core.Cache
	RequestCache      *core.Cache
	SubscriptionCache *core.Cache
	TokenCache        *core.Cache
	UserCache         *core.Cache
)

Functions

func DeleteOne

func DeleteOne(cache *core.Cache, key string) bool

DeleteOne

func DumpAll

func DumpAll()

func GetAll

func GetAll[T any](cache *core.Cache, model T) (map[string]T, int)

GetAll

func GetGravatarURL

func GetGravatarURL(emailInput string, channel chan string) string

GetGravatarURL function returns the avatar image location/URL, or it defaults to a app logo.

func GetOne

func GetOne[T any](cache *core.Cache, key string, model T) (T, bool)

etOne

func LoadAll

func LoadAll()

func Router

func Router() chi.Router

func RunMigrations

func RunMigrations() bool

RunMigrations is a "wrapper" function for the migration registration and execution

func SetOne

func SetOne[T any](cache *core.Cache, key string, model T) bool

SetOne

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL