Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Address string `envconfig:"ADDRESS" default:":8089" required:"true"`
}
AppConfig contain applicatoin configuration
type PostgresConfig ¶
type PostgresConfig struct {
DbName string `required:"true" default:"typical-rest-server"`
User string `required:"true" default:"default_user"`
Password string `required:"true" default:"default_password"`
Host string `default:"localhost"`
Port int `default:"5432"`
MigrationSrc string `default:"scripts/migration"`
}
PostgresConfig contain postgres database configuration
func (*PostgresConfig) AdminDataSource ¶
func (c *PostgresConfig) AdminDataSource() string
AdminDataSource return connection string for adminitration script
func (*PostgresConfig) DataSource ¶
func (c *PostgresConfig) DataSource() string
DataSource return connection string
func (*PostgresConfig) DatabaseName ¶
func (c *PostgresConfig) DatabaseName() string
DatabaseName return the database name
func (*PostgresConfig) DriverName ¶
func (c *PostgresConfig) DriverName() string
DriverName return the driver name
func (*PostgresConfig) MigrationSource ¶
func (c *PostgresConfig) MigrationSource() string
MigrationSource return the migration source
Click to show internal directories.
Click to hide internal directories.