puller

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: BSD-3-Clause Imports: 19 Imported by: 2

Documentation

Overview

Package puller provides protocol-orchestrating functionality over the pullsync protocol. It pulls chunks from other nodes and reacts to changes in network configuration.

Index

Constants

View Source
const (
	DefaultHistRateWindow = time.Minute * 15

	IntervalPrefix = "sync_interval"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Bins uint8
}

type Puller

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

func New

func New(
	addr swarm.Address,
	stateStore storage.StateStorer,
	topology topology.Driver,
	reserveState storer.RadiusChecker,
	pullSync pullsync.Interface,
	blockLister p2p.Blocklister,
	logger log.Logger,
	o Options,
) *Puller

func (*Puller) Close

func (p *Puller) Close() error

func (*Puller) Metrics

func (p *Puller) Metrics() []prometheus.Collector

func (*Puller) Start

func (p *Puller) Start(ctx context.Context)

func (*Puller) SyncRate

func (p *Puller) SyncRate() float64

Directories

Path Synopsis
Package intervalstore provides a persistence layer for intervals relating to a peer.
Package intervalstore provides a persistence layer for intervals relating to a peer.

Jump to

Keyboard shortcuts

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