Documentation ¶
Index ¶
- func CreateTables(ctx context.Context, chDB *ch.DB, pgDB *bun.DB) error
- type Repository
- func (r *Repository) AddBlocks(ctx context.Context, tx bun.Tx, info []*core.Block) error
- func (r *Repository) CountMasterBlocks(ctx context.Context) (int, error)
- func (r *Repository) FilterBlocks(ctx context.Context, f *filter.BlocksReq) (*filter.BlocksRes, error)
- func (r *Repository) GetLastMasterBlock(ctx context.Context) (*core.Block, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(ck *ch.DB, pg *bun.DB) *Repository
func (*Repository) CountMasterBlocks ¶ added in v0.4.1
func (r *Repository) CountMasterBlocks(ctx context.Context) (int, error)
func (*Repository) FilterBlocks ¶
func (*Repository) GetLastMasterBlock ¶
Click to show internal directories.
Click to hide internal directories.