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" DefaultSQLiteDatastoreMigrationSource = "github://warrant-dev/warrant/migrations/datastore/sqlite" DefaultSQLiteEventstoreMigrationSource = "github://warrant-dev/warrant/migrations/eventstore/sqlite" DefaultAuthenticationUserIdClaim = "sub" PrefixWarrant = "warrant" ConfigFileName = "warrant.yaml" )
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"`
AutoMigrate bool `mapstructure:"autoMigrate"`
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"`
SQLite *SQLiteConfig `mapstructure:"sqlite"`
}
type EventstoreConfig ¶ added in v0.6.0
type EventstoreConfig struct {
MySQL *MySQLConfig `mapstructure:"mysql"`
Postgres *PostgresConfig `mapstructure:"postgres"`
SQLite *SQLiteConfig `mapstructure:"sqlite"`
SynchronizeEvents bool `mapstructure:"synchronizeEvents"`
}
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:"maxOpenConnections"`
}
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:"maxOpenConnections"`
}
type SQLiteConfig ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.