Documentation ¶ Index ¶ type DBConfig func (d *DBConfig) GetConf(path string) type Postgres func (p *Postgres) Open(user string, password string, host string, port int, dbname string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DBConfig ¶ type DBConfig struct { Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` User string `json:"user,omitempty"` Password string `json:"password,omitempty"` Database string `json:"database,omitempty"` } func (*DBConfig) GetConf ¶ func (d *DBConfig) GetConf(path string) type Postgres ¶ type Postgres struct { DB *sql.DB } func (*Postgres) Open ¶ func (p *Postgres) Open(user string, password string, host string, port int, dbname string) Source Files ¶ View all Source files config.go postgres.go Click to show internal directories. Click to hide internal directories.