Back to godoc.org
github.com/documize/community / domain / backup

package backup

v3.2.0+incompatible
Latest Go to latest
Published: Aug 29, 2019 | License: AGPL-3.0 | Module: github.com/documize/community

Overview

Package backup handle data backup/restore to/from ZIP format.

Package backup handle data backup/restore to/from ZIP format.

Package backup handle data backup/restore to/from ZIP format.

Package backup handle data backup/restore to/from ZIP format.

Index

type Handler

type Handler struct {
	Runtime *env.Runtime
	Store   *store.Store
	Indexer indexer.Indexer
}

Handler contains the runtime information such as logging and database.

func (*Handler) Backup

func (h *Handler) Backup(w http.ResponseWriter, r *http.Request)

Backup generates binary file of all instance settings and contents. The content is pulled directly from the database and marshalled to JSON. A zip file is then sent to the caller.

func (*Handler) Restore

func (h *Handler) Restore(w http.ResponseWriter, r *http.Request)

Restore receives ZIP file for restore operation. Options are specified as HTTP query paramaters.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier