reservoir

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: ISC Imports: 5 Imported by: 1

Documentation

Overview

Cache for transactions that have been verified

Cache for transactions that have been verified

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count added in v0.2.2

func Count() int

the number of cached items

func Delete

func Delete(txId merkle.Digest)

remove a record

func Fetch

func Fetch(count int) ([]merkle.Digest, []transactionrecord.Packed, int, error)

fetch a series of records

func Finalise

func Finalise()

stop all

func Has

func Has(txId merkle.Digest) bool

check if record exists

func Initialise

func Initialise() error

create the cache

func Store

func Store(txId merkle.Digest, data transactionrecord.Packed)

store a record

Types

This section is empty.

Jump to

Keyboard shortcuts

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