github.com/koko1123/flow-go-1@v0.29.6/storage/guarantees.go (about)

     1  package storage
     2  
     3  import (
     4  	"github.com/koko1123/flow-go-1/model/flow"
     5  )
     6  
     7  // Guarantees represents persistent storage for collection guarantees.
     8  type Guarantees interface {
     9  
    10  	// Store inserts the collection guarantee.
    11  	Store(guarantee *flow.CollectionGuarantee) error
    12  
    13  	// ByCollectionID retrieves the collection guarantee by collection ID.
    14  	ByCollectionID(collID flow.Identifier) (*flow.CollectionGuarantee, error)
    15  }