database

package
v0.0.0-...-bb1c6aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 11 Imported by: 0

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

type DatabaseService struct {
	Conn *gorm.DB
}

func GetDatabaseService

func GetDatabaseService() (*DatabaseService, error)

func InitializeDatabase

func InitializeDatabase() (*DatabaseService, error)

func (*DatabaseService) Close

func (db *DatabaseService) Close()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL