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 New ¶
func New(persistDir string) (*SkynetBlacklist, error)
New returns an initialized SkynetBlacklist.
func (*SkynetBlacklist) Blacklist ¶
func (sb *SkynetBlacklist) Blacklist() []crypto.Hash
Blacklist returns the hashes of the merkleroots that are blacklisted
func (*SkynetBlacklist) Close ¶ added in v1.4.9
func (sb *SkynetBlacklist) Close() error
Close closes and frees associated resources.
func (*SkynetBlacklist) IsBlacklisted ¶
func (sb *SkynetBlacklist) IsBlacklisted(skylink modules.Skylink) bool
IsBlacklisted indicates if a skylink is currently blacklisted
func (*SkynetBlacklist) UpdateBlacklist ¶ added in v1.4.9
func (sb *SkynetBlacklist) UpdateBlacklist(additions, removals []modules.Skylink) error
UpdateBlacklist updates the list of skylinks that are blacklisted.
Click to show internal directories.
Click to hide internal directories.