Documentation
¶
Index ¶
- type Postgres
- func (p *Postgres) BlockNumber() (uint64, error)
- func (p *Postgres) Create(tl *task.StateLog, t *task.Task) error
- func (p *Postgres) Difficulty() ([4]byte, error)
- func (p *Postgres) Fetch(taskID, projectID uint64) ([]*task.StateLog, error)
- func (p *Postgres) PrevHash() (common.Hash, error)
- func (p *Postgres) ProcessedTaskID(projectID uint64) (uint64, error)
- func (p *Postgres) UpsertBlockNumber(number uint64) error
- func (p *Postgres) UpsertDifficulty(difficulty [4]byte) error
- func (p *Postgres) UpsertPrevHash(hash common.Hash) error
- func (p *Postgres) UpsertProcessedTask(projectID, taskID uint64) error
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 (*Postgres) BlockNumber ¶ added in v0.15.2
func (*Postgres) Difficulty ¶ added in v0.15.2
func (*Postgres) ProcessedTaskID ¶
func (*Postgres) UpsertBlockNumber ¶ added in v0.15.2
func (*Postgres) UpsertDifficulty ¶ added in v0.15.2
func (*Postgres) UpsertPrevHash ¶ added in v0.15.2
func (*Postgres) UpsertProcessedTask ¶
Click to show internal directories.
Click to hide internal directories.