github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/index.go (about) 1 package storage 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 ) 6 7 type Index interface { 8 9 // Store stores the index for a block payload. 10 Store(blockID flow.Identifier, index *flow.Index) error 11 12 // ByBlockID retrieves the index for a block payload. 13 ByBlockID(blockID flow.Identifier) (*flow.Index, error) 14 }