database

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicate     = DuplicateError("duplicate")
	ErrNotFound      = NotFoundError("not found")
	ErrBlockNotFound BlockNotFoundError
)

Functions

This section is empty.

Types

type BlockNotFoundError

type BlockNotFoundError struct {
	chainhash.Hash
}

func (BlockNotFoundError) Error

func (bnfe BlockNotFoundError) Error() string

func (BlockNotFoundError) Is

func (bnfe BlockNotFoundError) Is(target error) bool

type Database

type Database interface {
	Close() error // Close database
}

type DuplicateError

type DuplicateError string

func (DuplicateError) Error

func (de DuplicateError) Error() string

func (DuplicateError) Is

func (de DuplicateError) Is(target error) bool

type NotFoundError

type NotFoundError string

func (NotFoundError) Error

func (nfe NotFoundError) Error() string

func (NotFoundError) Is

func (nfe NotFoundError) Is(target error) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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