Documentation ¶ Index ¶ func Init() error func NewDB(vv ...interface{}) *gorm.DB type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ added in v1.0.2 func Init() error func NewDB ¶ func NewDB(vv ...interface{}) *gorm.DB Types ¶ type Config ¶ type Config struct { Host string `envconfig:"POSTGRES_HOST"` User string `envconfig:"POSTGRES_USER"` Pass string `envconfig:"POSTGRES_PASSWORD"` Name string `envconfig:"POSTGRES_DB"` Port int `envconfig:"POSTGRES_PORT"` } Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.