github.com/koko1123/flow-go-1@v0.29.6/storage/payloads.go (about) 1 // (c) 2019 Dapper Labs - ALL RIGHTS RESERVED 2 3 package storage 4 5 import ( 6 "github.com/koko1123/flow-go-1/model/flow" 7 ) 8 9 // Payloads represents persistent storage for payloads. 10 type Payloads interface { 11 12 // Store will store a payload and index its contents. 13 Store(blockID flow.Identifier, payload *flow.Payload) error 14 15 // ByBlockID returns the payload with the given hash. It is available for 16 // finalized and ambiguous blocks. 17 ByBlockID(blockID flow.Identifier) (*flow.Payload, error) 18 }