data

package
v0.0.0-...-8358614 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type BlockRepository

type BlockRepository interface {
	GetLastBlock(ctx context.Context) (*models.BlockHeader, error)
}

func NewBlockRepository

func NewBlockRepository(client *bun.DB) BlockRepository

type ITx

type ITx interface {
	RunInTx(context.Context, func(ctx context.Context, tx Tx) error) error
}

type Tx

type Tx interface {
	bun.IDB
}

Jump to

Keyboard shortcuts

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