github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/proto/mdbserver/messages.go (about) 1 package mdbserver 2 3 import ( 4 "github.com/Cloud-Foundations/Dominator/lib/mdb" 5 ) 6 7 // The GetMdbUpdates() RPC is fully streamed. 8 // The client sends no information to the server. 9 // The server sends a stream of MdbUpdate messages. 10 // At connection start, the full MDB data are presented in .MachinesToAdd and 11 // .MachinesToUpdate and .MachinesToDelete will be nil. 12 13 type MdbUpdate struct { 14 MachinesToAdd []mdb.Machine 15 MachinesToUpdate []mdb.Machine 16 MachinesToDelete []string 17 }