Documentation
¶
Index ¶
- type DB
- func (p *DB) CreateTask(taskID common.Hash, prover common.Address, projectID string) error
- func (p *DB) DeleteTask(taskID, tx common.Hash) error
- func (p *DB) ProcessTasks(taskIDs []common.Hash, err error) error
- func (p *DB) ProcessedTask(taskID common.Hash) (bool, string, time.Time, error)
- func (p *DB) Project(projectID string) (string, common.Hash, error)
- func (p *DB) ProjectFile(projectID string) ([]byte, common.Hash, error)
- func (p *DB) ScannedBlockNumber() (uint64, error)
- func (p *DB) UnprocessedProjects() (map[string]uint64, error)
- func (p *DB) UnprocessedTasks(projectID string) ([]common.Hash, error)
- func (p *DB) UpsertProject(projectID string, uri string, hash common.Hash) error
- func (p *DB) UpsertProjectFile(projectID string, file []byte, hash common.Hash) error
- func (p *DB) UpsertScannedBlockNumber(number uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateTask ¶
func (*DB) ProcessTasks ¶ added in v0.26.0
func (*DB) ProcessedTask ¶
func (*DB) ScannedBlockNumber ¶
func (*DB) UnprocessedProjects ¶ added in v0.26.0
func (*DB) UnprocessedTasks ¶ added in v0.26.0
func (*DB) UpsertProject ¶
func (*DB) UpsertProjectFile ¶
func (*DB) UpsertScannedBlockNumber ¶
Click to show internal directories.
Click to hide internal directories.