Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) // Set sets maps the key k to the revocation rev. // The revocation should only be returned for the given ttl. // If an item with key k exists, it must be updated // if now + ttl is at a later point in time than the current expiry. // Returns whether an update was performed or not. Set(k *Key, rev *path_mgmt.SignedRevInfo, ttl time.Duration) bool }
RevCache is a cache for revocations.
Click to show internal directories.
Click to hide internal directories.