github.com/koko1123/flow-go-1@v0.29.6/model/messages/exchange.go (about) 1 package messages 2 3 import ( 4 "github.com/koko1123/flow-go-1/model/flow" 5 ) 6 7 // EntityRequest is a request for a set of entities, each keyed by an 8 // identifier. The relationship between the identifiers and the entity is not 9 // specified here. In the typical case, the identifier is simply the ID of the 10 // entity being requested, but more complex identifier-entity relationships can 11 // be used as well. 12 type EntityRequest struct { 13 Nonce uint64 14 EntityIDs []flow.Identifier 15 } 16 17 // EntityResponse is a response to an entity request, containing a set of 18 // serialized entities and the identifiers used to request them. The returned 19 // entity set may be empty or incomplete. 20 type EntityResponse struct { 21 Nonce uint64 22 EntityIDs []flow.Identifier 23 Blobs [][]byte 24 }