github.com/Cloud-Foundations/Dominator@v0.3.4/hypervisor/rpcd/getCapacity.go (about) 1 package rpcd 2 3 import ( 4 "github.com/Cloud-Foundations/Dominator/lib/srpc" 5 "github.com/Cloud-Foundations/Dominator/proto/hypervisor" 6 ) 7 8 func (t *srpcType) GetCapacity(conn *srpc.Conn, 9 request hypervisor.GetCapacityRequest, 10 reply *hypervisor.GetCapacityResponse) error { 11 *reply = t.manager.GetCapacity() 12 return nil 13 }