daos

package
v0.0.0-...-3638f69 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Coin <~> Database
	Via dbName = "viacoin"
	Btc dbName = "Btc"
	Ltc dbName = "litecoin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDAO

type BlockDAO struct {
	// contains filtered or unexported fields
}

func NewBlockDAO

func NewBlockDAO(database dbName) *BlockDAO

NewBlockDAO creates a new BlockDAO

func (*BlockDAO) Create

func (dao *BlockDAO) Create(block *insightjson.BlockResult) error

func (*BlockDAO) Delete

func (dao *BlockDAO) Delete(hash chainhash.Hash) error

func (*BlockDAO) Get

func (dao *BlockDAO) Get(hash chainhash.Hash) (*insightjson.BlockResult, error)

Jump to

Keyboard shortcuts

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