Documentation ¶
Index ¶
Constants ¶
View Source
const ( SETTINGS_REPO = "thunderbyte_settings" AUTH_USER = "auth_users" AUTH_PASSWORD = "auth_passwords" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthProfile ¶
type DBConfig ¶
type DBConfig struct { SQLFilePaths // Queries must be a pointer kind ( a pointer to a struct ) Queries Type DBType Host string Port int User string Password string Database string SSLMode string Params string // contains filtered or unexported fields }
func (*DBConfig) GetDefaultQueries ¶
func (dbc *DBConfig) GetDefaultQueries() ThunderbyteQueries
GetDefaultQueries returns the queries for the inbuilt repos within thunderbyte
type SQLFilePaths ¶
type SQLFilePaths struct { // QueryFilePath .sql file containing all the queries to be executed. Useful // for separating SQL from code logic QueryFilePath *string // SchemaFilePath .sql file containing the SQL commands. This can have SQL commands // to create / alter tables. Use CREATE TABLE IF NOT EXISTS for all create // table queries. For any subsequent modifications, // add alter queries inside the schema file and those changes // will be synced during the server boot. SchemaFilePath *string }
type ThunderByteSetting ¶
type ThunderByteSettings ¶
type ThunderByteSettings []ThunderByteSetting
type ThunderbyteQueries ¶
type ThunderbyteQueries struct { GetAllSettings *sqlx.Stmt `query:"get-all-settings"` GetSettingByKey *sqlx.Stmt `query:"get-setting-by-key"` VerifyCredentials *sqlx.Stmt `query:"verify-creds"` FetchAuthProfileByUsername *sqlx.Stmt `query:"fetch-auth-profile-by-username"` FetchAuthProfileById *sqlx.Stmt `query:"fetch-auth-profile-by-id"` CreateAuthProfile *sqlx.Stmt `query:"create-auth-profile"` CreatePassword *sqlx.Stmt `query:"create-password"` }
type VerifiedUser ¶
Click to show internal directories.
Click to hide internal directories.