handlers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 9 Imported by: 0

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)

Jump to

Keyboard shortcuts

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