nodesync

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "node.nodesync"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SyncOnStart       bool           `yaml:"syncOnStart"`
	PeriodicSyncHours int            `yaml:"periodicSyncHours"`
	HotSync           hotsync.Config `yaml:"hotSync"`
}

type NodeSync

type NodeSync interface {
	Sync() (err error)
	WaitSyncOnStart() <-chan struct{}
	app.ComponentRunnable
}

func New

func New() NodeSync

type SyncStat

type SyncStat struct {
	LastStartTime atomic.Uint64
	LastDuration  atomic.Uint64

	InProgress atomic.Bool

	ColdSyncHandled atomic.Uint32
	ColdSyncErrors  atomic.Uint32

	HotSyncHandled atomic.Uint32
	HotSyncErrors  atomic.Uint32

	PartsHandled atomic.Uint32
	PartsErrors  atomic.Uint32
	PartsTotal   atomic.Uint32

	SyncsDone atomic.Uint32
}

Directories

Path Synopsis
mock_coldsync
Code generated by MockGen.
Code generated by MockGen.
mock_hotsync
Code generated by MockGen.
Code generated by MockGen.
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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