Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is a general error class of this package Error = errs.Class("discovery error") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RefreshInterval time.Duration `help:"the interval at which the cache refreshes itself in seconds" default:"1s"` DiscoveryInterval time.Duration `help:"the interval at which the satellite attempts to find new nodes via random node ID lookups" default:"1s"` RefreshLimit int `help:"the amount of nodes refreshed at each interval" default:"100"` }
Config loads on the configuration values for the cache
Click to show internal directories.
Click to hide internal directories.