asset

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2017 License: ISC Imports: 9 Imported by: 0

Documentation

Overview

Cache for assets

temporary store assets just received until they are: a. verified by having a corresponding issue verified b. confirmed by having a block broadcast containing them c. expired because no longer referenced by any issues

i.e. all isues were expired

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

cache an incoming asset

func Delete

func Delete(assetIndex transactionrecord.AssetIndex)

remove an asset from the cache

func Exists

func Exists(assetIndex transactionrecord.AssetIndex) bool

check if an asset exists

func Finalise

func Finalise()

stop all background handlers

func Get

get packed asset data from cache (nil if not present)

func Initialise

func Initialise() error

initialise the asset cache

func SetVerified

func SetVerified(assetIndex transactionrecord.AssetIndex)

mark a cached asset being verified

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL