Documentation ¶
Index ¶
Constants ¶
View Source
const EMPTY_DB_FIXTURE = "/go/src/github.com/ferdn4ndo/userver-logger-backend/fixture/empty.sqlite.db"
Variables ¶
View Source
var ErrNoMatch = fmt.Errorf("No matching record.")
ErrNoMatch is returned when we request a row that doesn't exist
Functions ¶
func AddHeartbeatLog ¶
func AddHeartbeatLog(db *DatabaseService) error
Types ¶
type DatabaseService ¶
func GetDatabaseService ¶
func GetDatabaseService() (*DatabaseService, error)
func InitializeDatabase ¶
func InitializeDatabase() (*DatabaseService, error)
func (*DatabaseService) Close ¶
func (db *DatabaseService) Close()
Click to show internal directories.
Click to hide internal directories.