github.com/koko1123/flow-go-1@v0.29.6/storage/cluster_payloads.go (about) 1 package storage 2 3 import ( 4 "github.com/koko1123/flow-go-1/model/cluster" 5 "github.com/koko1123/flow-go-1/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 }