api

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouteHealth    = "/api/v1/health"
	RouteScheduled = "/api/v1/scheduled"
	RouteRepos     = "/api/v1/repos"
	RouteCheck     = "/api/v1/repos/check"
	RouteStats     = "/api/v1/repos/stats"
	RouteUnlock    = "/api/v1/repos/unlock"
	RouteForget    = "/api/v1/repos/forget"
	RoutePrune     = "/api/v1/repos/prune"
	RouteBackup    = "/api/v1/backup"
)

API route paths. The client package imports these constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(reg *registry.Registry, rc *restic.Client, sched *scheduler.Scheduler, resticConf *config.ResticConf, token, host string, port int, version string, logger *slog.Logger, backupActive func() bool) *Server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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