Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterNew ¶ added in v0.3.1
func FilterNew(revCache RevCache, revocations []*path_mgmt.SignedRevInfo) []*path_mgmt.SignedRevInfo
FilterNew filters the given revocations against the revCache, only the ones which are not in the cache are returned. Note: Modifies revocations slice.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key denotes the key for the revocation cache.
type RevCache ¶
type RevCache interface {
// Get item with key k from the cache. Returns the item or nil,
// and a bool indicating whether the key was found.
Get(k *Key) (*path_mgmt.SignedRevInfo, bool)
// Insert inserts or updates the given revocation into the cache.
// Returns whether an insert was performed.
Insert(rev *path_mgmt.SignedRevInfo) bool
}
RevCache is a cache for revocations.
Click to show internal directories.
Click to hide internal directories.