scheduler

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

Scheduler syncs config from the API and manages cron-scheduled backups.

func New

func New(client *api.Client, resticBinary, agentID string, cfg *config.AgentConfig, syncInterval time.Duration) *Scheduler

New creates a scheduler.

func (*Scheduler) HandleCommand added in v0.5.0

func (s *Scheduler) HandleCommand(cmd ws.Command)

HandleCommand processes a command received from the WebSocket server. Commands are dispatched from the server (dashboard/API) to the agent in real time.

func (*Scheduler) SetWSClient added in v0.5.0

func (s *Scheduler) SetWSClient(wsClient *ws.Client)

SetWSClient sets the WebSocket client used for real-time progress streaming.

func (*Scheduler) Start

func (s *Scheduler) Start(ctx context.Context)

Start begins the scheduler loop.

Jump to

Keyboard shortcuts

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