chainsyncer

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package chainsyncer provides orchestration logic for the chainsync protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainSyncer

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

func New

func New(backend transaction.Backend, p prover, peerIterator topology.EachPeerer, disconnecter p2p.Disconnecter, logger logging.Logger, o *Options) (*ChainSyncer, error)

func (*ChainSyncer) Close

func (c *ChainSyncer) Close() error

func (*ChainSyncer) Metrics

func (c *ChainSyncer) Metrics() []prometheus.Collector

Metrics returns the prometheus Collector for the accounting service.

type Options

type Options struct {
	FlagTimeout     time.Duration
	PollEvery       time.Duration
	BlockerPollTime time.Duration
}

Jump to

Keyboard shortcuts

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