repository

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertKnownInterfaces

func InsertKnownInterfaces(ctx context.Context, repo core.ContractRepository) error

Types

type Block

type Block interface {
	core.BlockRepository
	filter.BlockRepository
}

type Contract

type Contract interface {
	core.ContractRepository
}

type DB

type DB struct {
	CH *ch.DB // TODO: do not insert duplicates to ch
	PG *bun.DB
}

func ConnectDB

func ConnectDB(ctx context.Context, dsnCH, dsnPG string, opts ...ch.Option) (*DB, error)

func (*DB) Close

func (db *DB) Close()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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