v1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: GPL-3.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, state dag.State, diagnosticsProvider func() transport.Diagnostics) transport.Protocol

New returns a new instance of the protocol v1 implementation.

Types

type Config

type Config struct {
	// AdvertHashesInterval specifies how often (in milliseconds) the node should broadcast its last hashes,
	// so other nodes can compare and synchronize.
	AdvertHashesInterval int `koanf:"adverthashesinterval"`
	// AdvertDiagnosticsInterval specifies how often (in milliseconds) the node should query its peers for diagnostic information.
	AdvertDiagnosticsInterval int `koanf:"advertdiagnosticsinterval"`
	// CollectMissingPayloadsInterval specifies how often (in milliseconds) the node should query peers for missing payloads.
	CollectMissingPayloadsInterval int `koanf:"collectmissingpayloadsinterval"`
}

Config specifies config for protocol v1

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration for protocol v1.

Directories

Path Synopsis
Package logic is a generated GoMock package.
Package logic is a generated GoMock package.
Package protobuf is a generated GoMock package.
Package protobuf is a generated GoMock package.

Jump to

Keyboard shortcuts

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