Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkynetBlacklist ¶
type SkynetBlacklist struct {
// contains filtered or unexported fields
}
SkynetBlacklist manages a set of blacklisted skylinks by tracking the merkleroots and persists the list to disk
func (*SkynetBlacklist) Blacklist ¶
func (sb *SkynetBlacklist) Blacklist() []crypto.Hash
Blacklist returns the merkleroots that are blacklisted
func (*SkynetBlacklist) IsBlacklisted ¶
func (sb *SkynetBlacklist) IsBlacklisted(skylink modules.Skylink) bool
IsBlacklisted indicates if a skylink is currently blacklisted
func (*SkynetBlacklist) UpdateSkynetBlacklist ¶
func (sb *SkynetBlacklist) UpdateSkynetBlacklist(additions, removals []modules.Skylink) error
UpdateSkynetBlacklist updates the list of skylinks that are blacklisted
Click to show internal directories.
Click to hide internal directories.