Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMigrate ¶
Types ¶
type Config ¶
type Config struct { Postgres *Postgres `yaml:"postgres"` HTTP *HTTP `yaml:"http"` ServerName string `yaml:"server_name"` // used for identity in zookeeper }
Config ...
type HTTP ¶
HTTP represents config for serving files over HTTP
func DefaultHTTP ¶
func DefaultHTTP() *HTTP
func (*HTTP) ConnectionURL ¶
type Postgres ¶
type Postgres struct { Host string `yaml:"host"` Port int `yaml:"port"` Username string `yaml:"username"` Password string `yaml:"password"` Database string `yaml:"database"` SSLMode string `yaml:"ssl_mode"` Timeout int Protocol string GoogleAuthFile string MaxOpenConn int MaxIdleConn int ConnMaxLifeTime int }
func DefaultPostgres ¶
func DefaultPostgres() *Postgres
DefaultPostgres returns default Postgres object
func (*Postgres) ConnectionString ¶
Click to show internal directories.
Click to hide internal directories.