block

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTables

func CreateTables(ctx context.Context, chDB *ch.DB, pgDB *bun.DB) error

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(ck *ch.DB, pg *bun.DB) *Repository

func (*Repository) AddBlocks

func (r *Repository) AddBlocks(ctx context.Context, tx bun.Tx, info []*core.Block) error

func (*Repository) CountMasterBlocks added in v0.4.1

func (r *Repository) CountMasterBlocks(ctx context.Context) (int, error)

func (*Repository) FilterBlocks

func (r *Repository) FilterBlocks(ctx context.Context, f *filter.BlocksReq) (*filter.BlocksRes, error)

func (*Repository) GetLastMasterBlock

func (r *Repository) GetLastMasterBlock(ctx context.Context) (*core.Block, error)

Jump to

Keyboard shortcuts

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