Documentation
¶
Index ¶
- Variables
- func DeleteChain(chainHash string) error
- func DeleteContent(contentHash string) error
- func ListChainHashes() ([]string, error)
- func ListContentHashes() ([]string, error)
- func ReadChain(chainHash string) ([]chainhash.ContentHash, error)
- func ReadContent(contentHash string) (string, error)
- func WriteChain(chainHash string, positions []chainhash.ContentHash) error
- func WriteContent(contentHash string, content string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("cache entry not found") ErrChainFileCorrupted = errors.New("chain file corrupted") )
Functions ¶
func DeleteChain ¶
func DeleteContent ¶
func ListChainHashes ¶
func ListContentHashes ¶
func ReadContent ¶
func WriteChain ¶
func WriteChain(chainHash string, positions []chainhash.ContentHash) error
func WriteContent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.