github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/sub/client/fetch.go (about) 1 package client 2 3 import ( 4 "github.com/Cloud-Foundations/Dominator/lib/hash" 5 "github.com/Cloud-Foundations/Dominator/lib/srpc" 6 "github.com/Cloud-Foundations/Dominator/proto/sub" 7 ) 8 9 func fetch(client *srpc.Client, serverAddress string, 10 hashes []hash.Hash) error { 11 request := sub.FetchRequest{ServerAddress: serverAddress, Hashes: hashes} 12 var reply sub.FetchResponse 13 return client.RequestReply("Subd.Fetch", request, &reply) 14 }