Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMySQLDatastoreMigrationSource = "github://warrant-dev/warrant/migrations/datastore/mysql" DefaultMySQLEventstoreMigrationSource = "github://warrant-dev/warrant/migrations/eventstore/mysql" DefaultPostgresDatastoreMigrationSource = "github://warrant-dev/warrant/migrations/datastore/postgres" DefaultPostgresEventstoreMigrationSource = "github://warrant-dev/warrant/migrations/eventstore/postgres" PrefixWarrant = "warrant" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶ added in v0.7.0
type Config ¶
type Config struct {
Port int `mapstructure:"port"`
LogLevel int8 `mapstructure:"logLevel"`
EnableAccessLog bool `mapstructure:"enableAccessLog"`
Datastore DatastoreConfig `mapstructure:"datastore"`
Eventstore EventstoreConfig `mapstructure:"eventstore"`
ApiKey string `mapstructure:"apiKey"`
Authentication AuthConfig `mapstructure:"authentication"`
}
type DatastoreConfig ¶
type DatastoreConfig struct {
MySQL *MySQLConfig `mapstructure:"mysql"`
Postgres *PostgresConfig `mapstructure:"postgres"`
}
type EventstoreConfig ¶ added in v0.6.0
type EventstoreConfig struct {
MySQL *MySQLConfig `mapstructure:"mysql"`
Postgres *PostgresConfig `mapstructure:"postgres"`
}
type MySQLConfig ¶
type MySQLConfig struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Hostname string `mapstructure:"hostname"`
Database string `mapstructure:"database"`
MigrationSource string `mapstructure:"migrationSource"`
MaxIdleConnections int `mapstructure:"maxIdleConnections"`
MaxOpenConnections int `mapstructure:"maxOpenConncetions"`
}
type PostgresConfig ¶ added in v0.4.0
type PostgresConfig struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Hostname string `mapstructure:"hostname"`
Database string `mapstructure:"database"`
SSLMode string `mapstructure:"sslmode"`
MigrationSource string `mapstructure:"migrationSource"`
MaxIdleConnections int `mapstructure:"maxIdleConnections"`
MaxOpenConnections int `mapstructure:"maxOpenConncetions"`
}
Click to show internal directories.
Click to hide internal directories.