main.go 615 B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "net/http"
  4. )
  5. func main() {
  6. http.HandleFunc("/", indexHandler)
  7. http.HandleFunc("/jrebel/leases", jrebelLeasesHandler)
  8. http.HandleFunc("/jrebel/leases/1", jrebelLeases1Handler)
  9. http.HandleFunc("/agent/leases", jrebelLeasesHandler)
  10. http.HandleFunc("/agent/leases/1", jrebelLeases1Handler)
  11. http.HandleFunc("/jrebel/validate-connection", jrebelValidateHandler)
  12. http.HandleFunc("/rpc/ping.action", pingHandler)
  13. http.HandleFunc("/rpc/obtainTicket.action", obtainTicketHandler)
  14. http.HandleFunc("/rpc/releaseTicket.action", releaseTicketHandler)
  15. _ = http.ListenAndServe(":12345", nil)
  16. }