Documentation
¶
Index ¶
- type Disk
- func (d *Disk) Collections(height uint64) ([]*flow.LightCollection, error)
- func (d *Disk) Commit(height uint64) (flow.StateCommitment, error)
- func (d *Disk) Events(height uint64) ([]flow.Event, error)
- func (d *Disk) Guarantees(height uint64) ([]*flow.CollectionGuarantee, error)
- func (d *Disk) Header(height uint64) (*flow.Header, error)
- func (d *Disk) Results(height uint64) ([]*flow.TransactionResult, error)
- func (d *Disk) Root() (uint64, error)
- func (d *Disk) Seals(height uint64) ([]*flow.Seal, error)
- func (d *Disk) Transactions(height uint64) ([]*flow.TransactionBody, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
Disk is a component used to access chain data from a badger database.
func (*Disk) Collections ¶
func (d *Disk) Collections(height uint64) ([]*flow.LightCollection, error)
Collections retrieves the collections at the given height.
func (*Disk) Commit ¶
func (d *Disk) Commit(height uint64) (flow.StateCommitment, error)
Commit retrieves the state commitment at the given height.
func (*Disk) Guarantees ¶ added in v1.1.0
func (d *Disk) Guarantees(height uint64) ([]*flow.CollectionGuarantee, error)
Guarantees retrieves the guarantees at the given height.
func (*Disk) Results ¶ added in v1.1.0
func (d *Disk) Results(height uint64) ([]*flow.TransactionResult, error)
Results retrieves the results at the given height.
func (*Disk) Transactions ¶
func (d *Disk) Transactions(height uint64) ([]*flow.TransactionBody, error)
Transactions retrieves the transactions at the given height.
Click to show internal directories.
Click to hide internal directories.