syncer

package
v1.22.41 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

Package syncer provides state synchronization for blockchain engines

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GetHandler     interface{}
	Context        interface{}
	StartupTracker interface{}
	Sender         interface{}
	Beacons        []types.NodeID
	VM             interface{}
}

Config holds syncer configuration

func NewConfig

func NewConfig(
	getHandler interface{},
	ctx interface{},
	startupTracker interface{},
	sender interface{},
	beacons []types.NodeID,
	vm interface{},
) (*Config, error)

NewConfig creates a new syncer configuration

type Syncer

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

Syncer provides state synchronization

func New

func New(config *Config, onDone func(ctx context.Context, lastReqID uint32) error) *Syncer

New creates a new state syncer

func (*Syncer) HealthCheck

func (s *Syncer) HealthCheck(ctx context.Context) (interface{}, error)

HealthCheck returns syncer health

func (*Syncer) Start

func (s *Syncer) Start(ctx context.Context, startReqID uint32) error

Start starts the syncer

Jump to

Keyboard shortcuts

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