cstorage

package
v0.0.0-...-785a6da Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ERROR_MSG = "Initiate storage aborted: "
)

Variables

This section is empty.

Functions

func DeleteBlockHeader

func DeleteBlockHeader(hash [32]byte)

func Init

func Init(dbname string)

Entry function for the storage package

func ReadBlockHeader

func ReadBlockHeader(hash [32]byte) (header *protocol.Block)

func ReadLastBlockHeader

func ReadLastBlockHeader() (header *protocol.Block)

func TearDown

func TearDown()

func WriteBlockHeader

func WriteBlockHeader(header *protocol.Block) (err error)

func WriteLastBlockHeader

func WriteLastBlockHeader(header *protocol.Block) (err error)

Before saving the last block header, delete all existing entries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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