syncer

package
v1.0.5-beta Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockQueueFn

type BlockQueueFn func(uint64) error

type Syncer

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

func New

func New(o SyncerOpts) (*Syncer, error)

func (*Syncer) Start

func (s *Syncer) Start()

func (*Syncer) Stop

func (s *Syncer) Stop()

type SyncerOpts

type SyncerOpts struct {
	DB                db.DB
	Chain             chain.Chain
	Logg              *slog.Logger
	Queue             *queue.Queue
	Stats             *stats.Stats
	StartBlock        int64
	WebSocketEndpoint string
}

Jump to

Keyboard shortcuts

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