backup

package
v0.0.0-...-20ac110 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(message string)
}

type Service

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

func New

func New(backupPeriod time.Duration,
	dataDir, outputDir string, logger Logger,
) *Service

func (*Service) Start

func (s *Service) Start(ctx context.Context) (runError <-chan error, startErr error)

func (*Service) Stop

func (s *Service) Stop() (err error)

func (*Service) String

func (s *Service) String() string

Jump to

Keyboard shortcuts

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