Documentation ¶
Index ¶
Constants ¶
View Source
const DevelopmentEnvironment = "DEVELOPMENT"
Variables ¶
View Source
var Version string
Functions ¶
Types ¶
type Configurations ¶
type Configurations struct { Server ServerConfigurations Database DatabaseConfigurations Ghost GhostConfigurations DEBUG int ENVIRONMENT string OAUTHSECRETKEY string }
Configurations exported
func Get ¶
func Get() (*Configurations, error)
func GetX ¶
func GetX() *Configurations
type DatabaseConfigurations ¶
type DatabaseConfigurations struct { DBName string DBUser string DBPassword string DBHost string DBPort int Dialect string // possible values: postgres, mysql, sqlite3 DSN string // data source name Postgres PostgresDatabaseConfigurations Sqlite3 Sqlite3DatabaseConfigurations }
DatabaseConfigurations exported
type GhostConfigurations ¶
type GhostConfigurations struct { BaseURL string Key string Locale string Content []map[string]GhostContentConfigurations `mapstructure:"content"` }
type PostgresDatabaseConfigurations ¶
type PostgresDatabaseConfigurations struct {
SSLmode string // see https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
}
type ServerConfigurations ¶
ServerConfigurations exported
type Sqlite3DatabaseConfigurations ¶
type Sqlite3DatabaseConfigurations struct {
Cache string // see https://www.sqlite.org/uri.html#recognized_query_parameters
}
Click to show internal directories.
Click to hide internal directories.