Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `json:"name"` Description string `json:"description"` Host string `json:"host"` DatabaseCredentials *DatabaseCredentials `toml:"database_credentials"` RedisCredentials *RedisCredentials `toml:"redis_credentials"` }
type DatabaseCredentials ¶
type DatabaseCredentials struct { Host string `toml:"host"` User string `toml:"user"` Password string `toml:"password"` DBName string `toml:"dbname"` Port uint `toml:"port"` Timezone string `toml:"timezone"` }
func (*DatabaseCredentials) Connect ¶
func (dc *DatabaseCredentials) Connect() *gorm.DB
type RedisCredentials ¶
type RedisCredentials struct { Host string `toml:"host"` Password string `toml:"password"` Port uint `toml:"port"` }
func (*RedisCredentials) Connect ¶
func (rc *RedisCredentials) Connect() (*redis.Client, error)
Click to show internal directories.
Click to hide internal directories.