community: github.com/documize/community/domain/backup Index | Files

package backup

import "github.com/documize/community/domain/backup"

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

Package Files

backup.go endpoint.go models.go restore.go

type Handler Uses

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 Uses

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 Uses

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

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

Package backup imports 39 packages (graph) and is imported by 1 packages. Updated 2019-08-06. Refresh now. Tools for package owners.