github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/cluster_payloads.go (about) 1 package storage 2 3 import ( 4 "github.com/onflow/flow-go/model/cluster" 5 "github.com/onflow/flow-go/model/flow" 6 ) 7 8 // ClusterPayloads handles storing and retrieving payloads for collection 9 // node cluster consensus. 10 type ClusterPayloads interface { 11 12 // Store stores and indexes the given cluster payload. 13 Store(blockID flow.Identifier, payload *cluster.Payload) error 14 15 // ByBlockID returns the cluster payload for the given block ID. 16 ByBlockID(blockID flow.Identifier) (*cluster.Payload, error) 17 }