github.com/koko1123/flow-go-1@v0.29.6/storage/approvals.go (about) 1 package storage 2 3 import ( 4 "github.com/koko1123/flow-go-1/model/flow" 5 ) 6 7 type ResultApprovals interface { 8 9 // Store stores a ResultApproval 10 Store(result *flow.ResultApproval) error 11 12 // Index indexes a ResultApproval by result ID and chunk index 13 Index(resultID flow.Identifier, chunkIndex uint64, approvalID flow.Identifier) error 14 15 // ByID retrieves a ResultApproval by its ID 16 ByID(approvalID flow.Identifier) (*flow.ResultApproval, error) 17 18 // ByChunk retrieves a ResultApproval by result ID and chunk index 19 ByChunk(resultID flow.Identifier, chunkIndex uint64) (*flow.ResultApproval, error) 20 }