Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) GetPostgresDatabase() string
- func (c *Config) GetPostgresHost() string
- func (c *Config) GetPostgresMigrationsTable() string
- func (c *Config) GetPostgresPassword() string
- func (c *Config) GetPostgresPort() string
- func (c *Config) GetPostgresUsername() string
- func (c *Config) IsPostgresMigrationsEnabled() bool
- type Configurator
- type Postgres
Constants ¶
View Source
const DriverName = "postgres"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PostgresMigrationsEnabled bool `envconfig:"POSTGRES_MIGRATIONS_ENABLED" default:"false"` PostgresHost string `envconfig:"POSTGRES_HOST"` PostgresPort string `envconfig:"POSTGRES_PORT"` PostgresUsername string `envconfig:"POSTGRES_LOGIN"` PostgresPassword string `envconfig:"POSTGRES_PASSWORD"` PostgresDatabase string `envconfig:"POSTGRES_DATABASE"` PostgresMigrationsTable string `envconfig:"POSTGRES_MIGRATIONS_TABLE" default:"migration_versions"` }
func (*Config) GetPostgresDatabase ¶
func (*Config) GetPostgresHost ¶
func (*Config) GetPostgresMigrationsTable ¶
func (*Config) GetPostgresPassword ¶
func (*Config) GetPostgresPort ¶
func (*Config) GetPostgresUsername ¶
func (*Config) IsPostgresMigrationsEnabled ¶
type Configurator ¶
Click to show internal directories.
Click to hide internal directories.