Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteEmailVerification(uid string) error
- func DeleteResetToken(token string) error
- func GetResetToken(token string) (string, error)
- func GetVerification(uid string) (string, error)
- func OpenCache(addr, password string, db int) error
- func SaveResetToken(email, token string) error
- func SaveServerStats(users int, storage string, files int) error
- func SaveVerification(uid, code string) error
- type ServerInfo
Constants ¶
View Source
const EMAIL_EXPIRE = 2 * time.Hour
View Source
const STATS_EXPIRE = 4 * time.Hour
Variables ¶
View Source
var Conn *redis.Client
Functions ¶
func DeleteEmailVerification ¶
func DeleteResetToken ¶
func GetResetToken ¶
func GetVerification ¶
func SaveResetToken ¶
func SaveVerification ¶
Types ¶
type ServerInfo ¶
type ServerInfo struct { Users int `json:"users"` Storage string `json:"storage"` Total int `json:"total_files"` }
func GetServerInfo ¶
func GetServerInfo() (ServerInfo, bool, error)
Click to show internal directories.
Click to hide internal directories.