Documentation
¶
Index ¶
- Constants
- func Cache() *sync.Map
- func Config() *sync.Map
- func CreateDB(dbName string) error
- func GetCache(key string, bDelete bool, beforeDelleteFunc func(v interface{}) bool) interface{}
- func GetConf(key string) string
- func InitSession() error
- func InitStore(path string) error
- func LoadFromDB(dbName, key string, ptrObject any) error
- func PopFromSession(r *http.Request, key string) interface{}
- func PushToSession(w http.ResponseWriter, r *http.Request, key string, cacheData interface{}) error
- func RemoveSession(w http.ResponseWriter, r *http.Request, key string) error
- func SaveToDB(cache *sync.Map, dbName string, cacheKey, cacheValue any) (retErr error)
- func SetCache(key string, val interface{}, bForce bool) error
- func SetCacheByTime(key string, val interface{}, bForce bool, timeout time.Duration, ...) error
- func SetConf(key, val string)
- func Store() *db_bolt
Constants ¶
View Source
const ( C_Session_ID = "rs-session" C_Session_User = "rs-user" )
Variables ¶
This section is empty.
Functions ¶
func InitSession ¶
func InitSession() error
func LoadFromDB ¶
func PopFromSession ¶
func PushToSession ¶
func RemoveSession ¶
func SetCacheByTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.