server

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(apiHandler *APIHandler) *chi.Mux

Types

type APIHandler

type APIHandler struct {
	// contains filtered or unexported fields
}

func NewAPIHandler

func NewAPIHandler(db *database.Database, bm *backuprepo.BackupRepoManager, sm *storage.StorageManager, scheduler *backup.BackupScheduler, templatesDir string) *APIHandler

func (*APIHandler) HandleAddBackupRepoStorage added in v0.3.0

func (a *APIHandler) HandleAddBackupRepoStorage(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleCreateBackupRepo

func (a *APIHandler) HandleCreateBackupRepo(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleCreateStorage added in v0.3.0

func (a *APIHandler) HandleCreateStorage(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleDeleteBackupRepo added in v0.3.0

func (a *APIHandler) HandleDeleteBackupRepo(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleDeleteStorage added in v0.3.0

func (a *APIHandler) HandleDeleteStorage(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleGetBackupRepoByName

func (a *APIHandler) HandleGetBackupRepoByName(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleGetBackupRepoStorages added in v0.3.0

func (a *APIHandler) HandleGetBackupRepoStorages(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleGetBackupRepos

func (a *APIHandler) HandleGetBackupRepos(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleGetStorageByName added in v0.3.0

func (a *APIHandler) HandleGetStorageByName(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleGetStorages added in v0.3.0

func (a *APIHandler) HandleGetStorages(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleIndex

func (a *APIHandler) HandleIndex(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HandleRemoveBackupRepoStorage added in v0.3.0

func (a *APIHandler) HandleRemoveBackupRepoStorage(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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