Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusBackedUp = "BACKED_UP" StatusRestored = "RESTORED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct {
ID int `json:"id"`
BackupPath string `json:"backupPath"`
SrcPath string `json:"srcPath"`
DstPath string `json:"dstPath"`
Type string `json:"type"`
Status string `json:"status"`
CreatedAt string `json:"createdAt"`
}
Backup is a struct which represents the backups table schema.
type DBHandler ¶
type DBHandler struct {
// contains filtered or unexported fields
}
DBHandler manages the SQLite database connection.
func NewDBHandler ¶
NewDBHandler initializes the database and returns a handler.
Click to show internal directories.
Click to hide internal directories.