gossip

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Component *app.Component
)
View Source
var ParamsGossip = &ParametersGossip{}
View Source
var ParamsRequests = &ParametersRequests{}

Functions

This section is empty.

Types

type ParametersGossip

type ParametersGossip struct {
	// Defines the maximum amount of unknown peers a gossip protocol connection is established to.
	UnknownPeersLimit int `default:"4" usage:"maximum amount of unknown peers a gossip protocol connection is established to"`
	// Defines the read timeout for reads from the gossip stream.
	StreamReadTimeout time.Duration `default:"60s" usage:"the read timeout for reads from the gossip stream"`
	// Defines the write timeout for writes to the gossip stream.
	StreamWriteTimeout time.Duration `default:"10s" usage:"the write timeout for writes to the gossip stream"`
}

ParametersGossip contains the definition of the parameters used by gossip.

type ParametersRequests

type ParametersRequests struct {
	// Defines the maximum time a request stays in the request queue.
	DiscardOlderThan time.Duration `default:"15s" usage:"the maximum time a request stays in the request queue"`
	// Defines the interval the pending requests are re-enqueued.
	PendingReEnqueueInterval time.Duration `default:"5s" usage:"the interval the pending requests are re-enqueued"`
}

ParametersRequests contains the definition of the parameters used by the requests.

Jump to

Keyboard shortcuts

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