postgresql

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresOutputHandler

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

func NewPostgresOutputHandler

func NewPostgresOutputHandler(connString string) (*PostgresOutputHandler, error)

func (*PostgresOutputHandler) Close

func (h *PostgresOutputHandler) Close() error

func (*PostgresOutputHandler) GetLatestBlock

func (h *PostgresOutputHandler) GetLatestBlock(ctx context.Context) (*models.Block, error)

func (*PostgresOutputHandler) GetMissingBlockIds

func (h *PostgresOutputHandler) GetMissingBlockIds(ctx context.Context) ([]uint64, error)

func (*PostgresOutputHandler) WriteBlockWithTransactions

func (h *PostgresOutputHandler) WriteBlockWithTransactions(ctx context.Context, block *models.Block, transactions []*models.Transaction) error

Jump to

Keyboard shortcuts

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