service

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

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupService

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

func NewBackupService

func NewBackupService(db *mongo.Database) *BackupService

func (*BackupService) DeleteAndInsertCollectionDoc

func (s *BackupService) DeleteAndInsertCollectionDoc(ctx context.Context, colName string, content []byte) error

func (*BackupService) GetBackups

func (s *BackupService) GetBackups(ctx context.Context) (zipFileName string, err error)

func (*BackupService) Recovery

func (s *BackupService) Recovery(ctx context.Context, file *multipart.FileHeader) error

type IBackupService

type IBackupService interface {
	GetBackups(ctx context.Context) (string, error)
	Recovery(ctx context.Context, file *multipart.FileHeader) error
}

Jump to

Keyboard shortcuts

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