stats

package
v0.0.0-...-3508913 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshMetrics

func RefreshMetrics(c *config.Config)

func Run

func Run(c *config.Config)

Types

type Snapshot

type Snapshot struct {
	Time     time.Time `json:"time"`
	ShortID  string    `json:"short_id"`
	HostName string    `json:"hostname"`
}

type Stats

type Stats struct {
	ObjectsCount int64
	Size         int64
	Snapshots    []Snapshot
}

func FetchStats

func FetchStats(ctx context.Context, r config.ResticRepository) (*Stats, error)

Jump to

Keyboard shortcuts

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