Documentation ¶
Index ¶
- type Config
- type MockSync
- func (*MockSync) GetClockOffset() (time.Duration, error)
- func (*MockSync) Moniker() string
- func (*MockSync) OutOfSync(_ time.Duration) bool
- func (m *MockSync) PeerSet() *peerset.PeerSet
- func (m *MockSync) SelfID() peer.ID
- func (m *MockSync) Services() service.Services
- func (*MockSync) Start() error
- func (*MockSync) Stop()
- type Synchronizer
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"` Firewall *firewall.Config `toml:"firewall"` // Private configs MaxSessions int `toml:"-"` LatestBlockInterval uint32 `toml:"-"` BlockPerMessage uint32 `toml:"-"` LatestSupportingVer version.Version `toml:"-"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) BasicCheck ¶ added in v0.15.0
BasicCheck performs basic checks on the configuration.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.