Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Moniker string `toml:"moniker"`
SessionTimeout time.Duration `toml:"session_timeout"`
NodeNetwork bool `toml:"node_network"`
NodeGossip bool `toml:"node_gossip_experimental"`
Firewall *firewall.Config `toml:"firewall"`
// Private configs
MaxSessions int `toml:"-"`
LatestBlockInterval uint32 `toml:"-"`
BlockPerMessage uint32 `toml:"-"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) BasicCheck ¶ added in v0.15.0
BasicCheck performs basic checks on the configuration.
type MockSync ¶
func MockingSync ¶
type Synchronizer ¶
type Synchronizer interface {
Start() error
Stop()
Moniker() string
SelfID() peer.ID
PeerSet() *peerset.PeerSet
}
func NewSynchronizer ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.