badgerdb

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAssetRepository added in v0.9.0

func NewAssetRepository(config ...interface{}) (domain.AssetRepository, error)

func NewConvictionRepository added in v0.8.0

func NewConvictionRepository(config ...interface{}) (domain.ConvictionRepository, error)

func NewEventRepository

func NewEventRepository(config ...interface{}) (domain.EventRepository, error)

func NewSettingsRepository added in v0.9.9

func NewSettingsRepository(config ...interface{}) (domain.SettingsRepository, error)

func NewVtxoRepository

func NewVtxoRepository(config ...interface{}) (domain.VtxoRepository, error)

Types

type ArkRepository

type ArkRepository interface {
	domain.RoundRepository
	domain.OffchainTxRepository
	Store() *badgerhold.Store
}

func NewArkRepository

func NewArkRepository(config ...interface{}) (ArkRepository, error)

type Conviction added in v0.8.0

type Conviction struct {
	ID           string `badgerhold:"key"`
	Type         int
	CreatedAt    int64
	ExpiresAt    *int64
	CrimeType    int
	CrimeRoundID string
	CrimeReason  string
	Pardoned     bool
	Script       string
}

Conviction represents a conviction in the database

type IntentIndex added in v0.9.0

type IntentIndex struct {
	Txid     string
	RoundId  string
	IntentId string
}

type Tx

type Tx struct {
	Txid string
	Tx   string
}

Jump to

Keyboard shortcuts

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