示例#1
0
func (d *Driver) Leave(w http.ResponseWriter, r *http.Request) {
	req, err := util.JSONDecode(r)
	log.Printf("Leave request: %v\n", req)
	util.JSONResponse(w, map[string]interface{}{"Err": err})
}
示例#2
0
func (d *Driver) EndpointOperInfo(w http.ResponseWriter, r *http.Request) {
	req, _ := util.JSONDecode(r)
	log.Printf("EndpointOperInfo request: %v\n", req)
	util.JSONResponse(w, map[string]interface{}{"value": map[string]string{"driver": "dispatcher"}})
}