Exemple #1
0
func handlerSetValue(w http.ResponseWriter, r *http.Request) {
	vars := mux.Vars(r)
	data := se.SetValue(vars["id"], vars["value"])
	weblib.WriteResponse(w, data, nil)
}
Exemple #2
0
// deviceList
// Function generated from srcgen
func handlerChannelStates(wr http.ResponseWriter, req *http.Request) {
	weblib.WriteResponse(wr, se.AllChannelStates(), nil)
}