Documentation
¶
Index ¶
- type BadgerLogger
- type Storage
- func (s *Storage) AddUtxo(address string, txId string, txOutIdx uint32, txOutBytes []byte) error
- func (s *Storage) GetBlockData(dest any) error
- func (s *Storage) GetCursor() (uint64, string, error)
- func (s *Storage) GetUtxos(address string) ([][]byte, error)
- func (s *Storage) Load() error
- func (s *Storage) RemoveUtxo(address string, txId string, utxoIdx uint32) error
- func (s *Storage) UpdateBlockData(blockData any) error
- func (s *Storage) UpdateCursor(slotNumber uint64, blockHash string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerLogger ¶
BadgerLogger is a wrapper type to give our logger the expected interface
func NewBadgerLogger ¶
func NewBadgerLogger() *BadgerLogger
func (*BadgerLogger) Warningf ¶
func (b *BadgerLogger) Warningf(msg string, args ...any)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func GetStorage ¶
func GetStorage() *Storage
func (*Storage) GetBlockData ¶
func (*Storage) RemoveUtxo ¶
func (*Storage) UpdateBlockData ¶
Click to show internal directories.
Click to hide internal directories.