Documentation ¶
Overview ¶
package pin implemnts structures and methods to keep track of which objects a user wants to keep stored locally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIndirectPin ¶
Types ¶
type ManualPinner ¶
ManualPinner is for manually editing the pin structure Use with care! If used improperly, garbage collection may not be successful
type Pinner ¶
type Pinner interface { IsPinned(util.Key) bool Pin(*mdag.Node, bool) error Unpin(util.Key, bool) error Flush() error GetManual() ManualPinner DirectKeys() []util.Key IndirectKeys() []util.Key RecursiveKeys() []util.Key }
func LoadPinner ¶
LoadPinner loads a pinner and its keysets from the given datastore
Click to show internal directories.
Click to hide internal directories.