asset

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: ISC Imports: 10 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(assetId transactionrecord.AssetIdentifier)

remove an asset from the cache

func Exists

func Exists(assetId transactionrecord.AssetIdentifier) bool

check if an asset is exist and is confirmed

func Finalise

func Finalise() error

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(assetId transactionrecord.AssetIdentifier)

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