bkupsrv

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupFile

type BackupFile struct {
	FilesLocation string
	Name          string
	FileData      []byte
}

BackupFile BackupFile

type BackupFiles

type BackupFiles struct {
	CarouselStoreFiles *[]BackupFile
	ContentStoreFiles  *[]BackupFile
	CountryStoreFiles  *[]BackupFile
	CSSStoreFiles      *[]BackupFile
	MenuStoreFiles     *[]BackupFile
	StateStoreFiles    *[]BackupFile
	TemplateStoreFiles *[]BackupFile
	ImageFiles         *[]BackupFile
	TemplateFiles      *BackupFile
}

BackupFiles BackupFiles

type BackupService

type BackupService interface {
	UploadBackups(bk *[]byte) bool
	DownloadBackups() (bool, *[]byte)
}

BackupService BackupService

type Six910BackupService

type Six910BackupService struct {
	Store             ds.JSONDatastore
	TemplateStore     ds.JSONDatastore
	CarouselStore     ds.JSONDatastore
	CountryStore      ds.JSONDatastore
	CSSStore          ds.JSONDatastore
	MenuStore         ds.JSONDatastore
	StateStore        ds.JSONDatastore
	CarouselStorePath string
	ContentStorePath  string
	CountryStorePath  string
	CSSStorePath      string
	MenuStorePath     string
	StateStorePath    string
	TemplateStorePath string
	TemplateFilePath  string
	TemplateFullPath  string
	Log               *lg.Logger
	ImagePath         string
	ImageFullPath     string
}

Six910BackupService Six910BackupService

func (*Six910BackupService) DownloadBackups

func (c *Six910BackupService) DownloadBackups() (bool, *[]byte)

DownloadBackups DownloadBackups

func (*Six910BackupService) GetNew

func (c *Six910BackupService) GetNew() BackupService

GetNew GetNew

func (*Six910BackupService) UploadBackups

func (c *Six910BackupService) UploadBackups(bk *[]byte) bool

UploadBackups UploadBackups

Jump to

Keyboard shortcuts

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