Documentation
¶
Overview ¶
Package files is responsible for saving files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUser ¶
CheckUser checks whether an authstring belongs to a user and the user is valid. It will also check valid until.
func DeleteToken ¶
DeleteToken removes a single token fom database.
func DeleteUserToken ¶
DeleteUserToken removes all authtoken associated by a user. It returns the number of deleted tokens.
func InitDB ¶
InitDB initialises the database. Must be called before any other function. This stub will return an error if no build tags are set.
func StartCleanupWorker ¶
func StartCleanupWorker()
Types ¶
type Authtoken ¶
Authtoken represents an authtoken for user validation.
func GetAuthtokenOfUser ¶
GetAuthtokenOfUser returns all auth token associated by a user.
Click to show internal directories.
Click to hide internal directories.