Documentation
¶
Index ¶
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) Disconnect ¶
func (db *MemoryBoosterWebDB) Disconnect() error
func (*MemoryBoosterWebDB) GetAnalysis ¶
func (db *MemoryBoosterWebDB) GetAnalysis(id string) (a *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) Disconnect ¶
func (db *MySQLBoosterwebDB) Disconnect() error
func (*MySQLBoosterwebDB) GetAnalysis ¶
func (db *MySQLBoosterwebDB) GetAnalysis(id string) (*model.Analysis, error)
func (*MySQLBoosterwebDB) InitDatabase ¶
func (db *MySQLBoosterwebDB) InitDatabase() 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.