asset

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: ISC Imports: 8 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