Esempio n. 1
0
func checkStatus() {
	fmt.Println("gpaas checkStatus node")
	var res butler.ButlerServe
	var req butler.ButlerOrder = butler.ButlerOrder{"gorilla"}
	if err := butler.RPCCall("Butler.ProvisionStatus", &req, &res); err != nil {
		log.Fatal(err)
	}

	fmt.Printf("Butler returns:%s\n", res.Message)
}
Esempio n. 2
0
func main() {
	fmt.Println("butler_client run")
	var res butler.ButlerServe
	var req butler.ButlerOrder = butler.ButlerOrder{"gorilla"}
	if err := butler.RPCCall("Butler.Say", &req, &res); err != nil {
		log.Fatal(err)
	}

	fmt.Printf("Butler says:%s\n", res.Message)
}