Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GormFromConf ¶
func GormFromConf(conf *config.TomlConfig) (*gorm.DB, error)
GormFromConf - Creates new GORM connection based on passed DB configuration
Types ¶
type DBStore ¶
type DBStore struct {
// contains filtered or unexported fields
}
DBStore - struct encapsulating database and logger
func NewDBStore ¶
func NewDBStore(conf *config.TomlConfig) (*DBStore, error)
NewDBStore - Initializes database based on the config.Conf and returns new instance of DBStore
func (*DBStore) ConnStatus ¶
ConnStatus - Returns the connection status of database.
func (*DBStore) ConnStatusWithContext ¶
ConnStatusWithContext - Returns the connection status of database. Times out if the passed context have a timeout specified.
Click to show internal directories.
Click to hide internal directories.