postgres

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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) Create

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

func (*Postgres) Difficulty added in v0.15.2

func (p *Postgres) Difficulty() ([4]byte, error)

func (*Postgres) Fetch

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

func (*Postgres) PrevHash added in v0.15.2

func (p *Postgres) PrevHash() (common.Hash, 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) UpsertDifficulty added in v0.15.2

func (p *Postgres) UpsertDifficulty(difficulty [4]byte) error

func (*Postgres) UpsertPrevHash added in v0.15.2

func (p *Postgres) UpsertPrevHash(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