 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Postgres
- func (p *Postgres) BlockNumber() (uint64, error)
- func (p *Postgres) ChainHead() (uint64, common.Hash, error)
- func (p *Postgres) Create(tl *task.StateLog, t *task.Task) error
- func (p *Postgres) Fetch(taskID, projectID uint64) ([]*task.StateLog, error)
- func (p *Postgres) NBits() (uint32, error)
- func (p *Postgres) ProcessedTaskID(projectID uint64) (uint64, error)
- func (p *Postgres) UpsertBlockNumber(number uint64) error
- func (p *Postgres) UpsertNBits(nbits uint32) error
- func (p *Postgres) UpsertPrevHash(number uint64, 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) ProcessedTaskID ¶
func (*Postgres) UpsertBlockNumber ¶ added in v0.15.2
func (*Postgres) UpsertNBits ¶ added in v0.15.3
func (*Postgres) UpsertPrevHash ¶ added in v0.15.2
func (*Postgres) UpsertProcessedTask ¶
 Click to show internal directories. 
   Click to hide internal directories.