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: 0

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