github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/lib/objectserver/client/checkObjects.go (about) 1 package client 2 3 import ( 4 "github.com/Cloud-Foundations/Dominator/lib/hash" 5 "github.com/Cloud-Foundations/Dominator/proto/objectserver" 6 ) 7 8 func (objClient *ObjectClient) checkObjects(hashes []hash.Hash) ( 9 []uint64, error) { 10 var request objectserver.CheckObjectsRequest 11 request.Hashes = hashes 12 var reply objectserver.CheckObjectsResponse 13 client, err := objClient.getClient() 14 if err != nil { 15 return nil, err 16 } 17 err = client.RequestReply("ObjectServer.CheckObjects", request, &reply) 18 if err != nil { 19 return nil, err 20 } 21 return reply.ObjectSizes, nil 22 }