Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSkynetPortalsValidation is the error returned when validation of // changes to the Skynet portals list fails. ErrSkynetPortalsValidation = errors.New("could not validate additions and removals") )
Functions ¶
This section is empty.
Types ¶
type SkynetPortals ¶
type SkynetPortals struct {
// contains filtered or unexported fields
}
SkynetPortals manages a list of known Skynet portals by persisting the list to disk.
func (*SkynetPortals) Portals ¶
func (sp *SkynetPortals) Portals() []modules.SkynetPortal
Portals returns the list of known Skynet portals.
func (*SkynetPortals) UpdateSkynetPortals ¶
func (sp *SkynetPortals) UpdateSkynetPortals(additions []modules.SkynetPortal, removals []modules.NetAddress) error
UpdateSkynetPortals updates the list of known Skynet portals.
Click to show internal directories.
Click to hide internal directories.