Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheManager *cache.Cache[[]byte]
View Source
var DB *gorm.DB
Functions ¶
func FetchAuthorizations ¶
FetchAuthorizations fetches from the database a Gin Accounts map for using in BasicAuth requests. Authorizations must be added to the database beforehand in a table called `auth` with the following rows:
- ID: int PK
- name: text
- pass: text
The following statement can be used to create the auth table:
CREATE TABLE "auth" ( "ID" INTEGER, "name" TEXT, "pass" TEXT, PRIMARY KEY("ID") )
func InitStorage ¶
InitStorage initializes the databse from a given path, creating it if necessary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.