Documentation ¶
Index ¶
- type BoosterwebDB
- type MemoryBoosterWebDB
- func (db *MemoryBoosterWebDB) Connect() error
- func (db *MemoryBoosterWebDB) DeleteOldAnalyses(days int) (err error)
- func (db *MemoryBoosterWebDB) Disconnect() error
- func (db *MemoryBoosterWebDB) GetAnalysis(id string) (a *model.Analysis, err error)
- func (db *MemoryBoosterWebDB) GetRunningAnalyses() (analyses []*model.Analysis, err error)
- func (db *MemoryBoosterWebDB) InitDatabase() error
- func (db *MemoryBoosterWebDB) UpdateAnalysis(a *model.Analysis) error
- type MySQLBoosterwebDB
- func (db *MySQLBoosterwebDB) Connect() error
- func (db *MySQLBoosterwebDB) DeleteOldAnalyses(days int) (err error)
- func (db *MySQLBoosterwebDB) Disconnect() error
- func (db *MySQLBoosterwebDB) GetAnalysis(id string) (*model.Analysis, error)
- func (db *MySQLBoosterwebDB) GetRunningAnalyses() (analyses []*model.Analysis, err error)
- func (db *MySQLBoosterwebDB) InitDatabase() (err error)
- func (db *MySQLBoosterwebDB) UpdateAnalysis(a *model.Analysis) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoosterwebDB ¶
type MemoryBoosterWebDB ¶
type MemoryBoosterWebDB struct {
// contains filtered or unexported fields
}
func NewMemoryBoosterWebDB ¶
func NewMemoryBoosterWebDB() *MemoryBoosterWebDB
Returns a new database
func (*MemoryBoosterWebDB) Connect ¶
func (db *MemoryBoosterWebDB) Connect() error
func (*MemoryBoosterWebDB) DeleteOldAnalyses ¶ added in v0.1.5
func (db *MemoryBoosterWebDB) DeleteOldAnalyses(days int) (err error)
Will delete analyses older than d days
func (*MemoryBoosterWebDB) Disconnect ¶
func (db *MemoryBoosterWebDB) Disconnect() error
func (*MemoryBoosterWebDB) GetAnalysis ¶
func (db *MemoryBoosterWebDB) GetAnalysis(id string) (a *model.Analysis, err error)
func (*MemoryBoosterWebDB) GetRunningAnalyses ¶ added in v0.1.6
func (db *MemoryBoosterWebDB) GetRunningAnalyses() (analyses []*model.Analysis, err error)
func (*MemoryBoosterWebDB) InitDatabase ¶
func (db *MemoryBoosterWebDB) InitDatabase() error
Check if table is present otherwise creates it
func (*MemoryBoosterWebDB) UpdateAnalysis ¶
func (db *MemoryBoosterWebDB) UpdateAnalysis(a *model.Analysis) error
Update an anlysis or insert it if it does not exist
type MySQLBoosterwebDB ¶
type MySQLBoosterwebDB struct {
// contains filtered or unexported fields
}
func NewMySQLBoosterwebDB ¶
func NewMySQLBoosterwebDB(login, pass, url, dbname string, port int) *MySQLBoosterwebDB
Returns a new database
func (*MySQLBoosterwebDB) Connect ¶
func (db *MySQLBoosterwebDB) Connect() error
func (*MySQLBoosterwebDB) DeleteOldAnalyses ¶ added in v0.1.5
func (db *MySQLBoosterwebDB) DeleteOldAnalyses(days int) (err error)
Will delete analyses older than d days
func (*MySQLBoosterwebDB) Disconnect ¶
func (db *MySQLBoosterwebDB) Disconnect() error
func (*MySQLBoosterwebDB) GetAnalysis ¶
func (db *MySQLBoosterwebDB) GetAnalysis(id string) (*model.Analysis, error)
func (*MySQLBoosterwebDB) GetRunningAnalyses ¶ added in v0.1.6
func (db *MySQLBoosterwebDB) GetRunningAnalyses() (analyses []*model.Analysis, err error)
Get only analyses that are running (1) or pending (0)
func (*MySQLBoosterwebDB) InitDatabase ¶
func (db *MySQLBoosterwebDB) InitDatabase() (err error)
Check if table is present otherwise creates it
func (*MySQLBoosterwebDB) UpdateAnalysis ¶
func (db *MySQLBoosterwebDB) UpdateAnalysis(a *model.Analysis) error
Update an anlysis or insert it if it does not exist
Click to show internal directories.
Click to hide internal directories.