Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIHandler ¶
type APIHandler struct {
Dispatcher *backup.BackupDispatcher
Db *database.Database
RepositoryAdder backup.RepositoryAdder
BackupReposGetter database.BackupReposGetter
BackupRepoInserter database.BackupRepoInserter
BackupRepoProcessor backuprepo.BackupRepoProcessor
TemplatesDir string
}
func NewAPIHandler ¶
func NewAPIHandler(dispatcher *backup.BackupDispatcher, db *database.Database, templatesDir string) *APIHandler
func (*APIHandler) HandleCreateBackupRepo ¶
func (a *APIHandler) HandleCreateBackupRepo(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleGetBackupRepos ¶
func (a *APIHandler) HandleGetBackupRepos(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleIndex ¶
func (a *APIHandler) HandleIndex(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.