management

package
v0.0.0-...-2fa03ef Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPHandler

func HTTPHandler(app *evepraisal.App, appraisalBackupPath string) http.Handler

HTTPHandler returns the http.Handler for the web management api

Types

type Context

type Context struct {
	App                 *evepraisal.App
	AppraisalBackupPath string
}

Context is the context that the web management needs

func (*Context) HandleBackup

func (ctx *Context) HandleBackup(w http.ResponseWriter, req *http.Request)

HandleBackup is the handler for /backup/appraisals

func (*Context) HandleBackupToFile

func (ctx *Context) HandleBackupToFile(w http.ResponseWriter, req *http.Request)

HandleBackupToFile is the handler for /backup/appraisals

func (*Context) HandleRestore

func (ctx *Context) HandleRestore(w http.ResponseWriter, r *http.Request)

HandleRestore is the handler for /restore, this is only used for partial restores

Jump to

Keyboard shortcuts

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