Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `json:"port"` Env string `json:"env"` Database PostgresConfig `json:"database"` }
func DefaultConfig ¶
func DefaultConfig() Config
func LoadConfig ¶
type PostgresConfig ¶
type PostgresConfig struct { Host string `json:"host"` Port int `json:"port"` User string `json:"user"` Password string `json:"password"` Name string `json:"name"` }
func DefaultPostgresConfig ¶
func DefaultPostgresConfig() PostgresConfig
func (PostgresConfig) ConnectionInfo ¶
func (c PostgresConfig) ConnectionInfo() string
func (PostgresConfig) Dialect ¶
func (c PostgresConfig) Dialect() string
Click to show internal directories.
Click to hide internal directories.