JDSU CellAdvisor API by Go Language
func main(){
// BuildCellAdvisorRestfulAPI functions get argumets
// 1. The number of TCP connections for API
// 2. CellAdvisor IP
// 3. Heartbeat cheking period
// for example,
server := restful.NewCellAdvisorServer(4, "192.168.0.1", time.Second*10)
http.Handle("/api/", server)
log.Fatal(http.ListenAndServe(":80", nil))
// Now you could access
// SCPI command: http://{celladvisorIP}:{port}/api/scpi/{keyp|youch}
// Screen capture http://{celladvisorIP}:{port}/api/screen/{refresh_screen|screen}
}
MIT