Documentation
¶
Index ¶
Constants ¶
View Source
const MaxDatabaseConnectionAttempts int = 10
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(c *config.Config, session *sessions.SessionManager) (err error)
Setup initializes the database and runs any needed migrations.
First, it establishes a connection to the database, then runs any migrations newer than the version the database is on.
Once the database is up-to-date, we create an admin user (if needed) that has a randomly generated API key and password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.