postgres

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func New

func New(pgEndpoint string) (*Postgres, error)

func (*Postgres) BlockNumber added in v0.15.2

func (p *Postgres) BlockNumber() (uint64, error)

func (*Postgres) ChainHead added in v0.15.5

func (p *Postgres) ChainHead() (uint64, common.Hash, error)

func (*Postgres) Create

func (p *Postgres) Create(tl *task.StateLog, t *task.Task) error

func (*Postgres) Fetch

func (p *Postgres) Fetch(taskID, projectID uint64) ([]*task.StateLog, error)

func (*Postgres) NBits added in v0.15.3

func (p *Postgres) NBits() (uint32, error)

func (*Postgres) ProcessedTaskID

func (p *Postgres) ProcessedTaskID(projectID uint64) (uint64, error)

func (*Postgres) UpsertBlockNumber added in v0.15.2

func (p *Postgres) UpsertBlockNumber(number uint64) error

func (*Postgres) UpsertNBits added in v0.15.3

func (p *Postgres) UpsertNBits(nbits uint32) error

func (*Postgres) UpsertPrevHash added in v0.15.2

func (p *Postgres) UpsertPrevHash(number uint64, hash common.Hash) error

func (*Postgres) UpsertProcessedTask

func (p *Postgres) UpsertProcessedTask(projectID, taskID uint64) error

Jump to

Keyboard shortcuts

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