Documentation ¶ Index ¶ func GenerateDSN(host string, user string, pwd string, dbname string, port string) string type Database func NewDatabase() *Database func (db *Database) Connect() error func (db *Database) Get() *gorm.DB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GenerateDSN ¶ func GenerateDSN(host string, user string, pwd string, dbname string, port string) string Types ¶ type Database ¶ type Database struct { DB *gorm.DB } func NewDatabase ¶ func NewDatabase() *Database func (*Database) Connect ¶ func (db *Database) Connect() error func (*Database) Get ¶ func (db *Database) Get() *gorm.DB Source Files ¶ View all Source files postgres.go Click to show internal directories. Click to hide internal directories.