nodesync

package
v0.3.45-test-new-sync-... Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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
Package mock_coldsync is a generated GoMock package.
Package mock_coldsync is a generated GoMock package.
mock_hotsync
Package mock_hotsync is a generated GoMock package.
Package mock_hotsync is a generated GoMock package.
Package mock_nodesync is a generated GoMock package.
Package mock_nodesync is a generated GoMock package.

Jump to

Keyboard shortcuts

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