rescanstat

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package rescanstat holds the latest source-rescan tick result for the rescan resource to project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PurgedFile

type PurgedFile struct {
	Path  string `json:"path"`
	Nodes int    `json:"nodes"`
}

type Snapshot

type Snapshot struct {
	RunAt       int64        `json:"run_at"`
	Error       string       `json:"error"`
	Added       int          `json:"added"`
	Modified    int          `json:"modified"`
	Removed     int          `json:"removed"`
	PurgedFiles []PurgedFile `json:"purged_files"`
}

type Status

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

func New

func New() *Status

func (*Status) Get

func (s *Status) Get() (intervalS int64, last Snapshot)

func (*Status) Set

func (s *Status) Set(intervalS int64, snap Snapshot)

Set publishes one tick's interval and result, replacing the last.

Jump to

Keyboard shortcuts

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