daemon

package
v0.0.0-...-4d36164 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCheckingIntervalNegative = errors.New("negative checking interval is not allowed")
	ErrDaemonAlreadyRunning     = errors.New("it seems like the autosave daemon is already running")
	ErrDaemonNotRunning         = errors.New("it seems like the autosave daemon is not running")
)

Functions

This section is empty.

Types

type Daemon

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

func New

func New(viper *viperPkg.Viper, lockfilePath string, wOut, wErr io.Writer, minSeconds int) (*Daemon, error)

func (*Daemon) CheckAllRepos

func (d *Daemon) CheckAllRepos() error

func (*Daemon) CheckRepo

func (d *Daemon) CheckRepo(path string, asdRepo *core.AsdRepository) error

func (*Daemon) CheckingInterval

func (d *Daemon) CheckingInterval() time.Duration

func (*Daemon) LoadConfig

func (d *Daemon) LoadConfig() error

func (*Daemon) Repositories

func (d *Daemon) Repositories() map[string]*core.AsdRepository

func (*Daemon) Start

func (d *Daemon) Start() error

func (*Daemon) Stop

func (d *Daemon) Stop() error

Jump to

Keyboard shortcuts

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