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
Click to show internal directories.
Click to hide internal directories.