blob: a9648ce90c8b376cab813630fe718902f2e075be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package main
import (
"github.com/gorilla/mux"
"log"
"net/http"
)
func miller_http_handler(w http.ResponseWriter, r *http.Request) {
params := mux.Vars(r)
sid, ok := params["sid"]
if !ok {
return
}
marker, ok := params["marker"]
if !ok {
return
}
rnd, ok := params["rnd"]
if !ok {
return
}
log.Printf("SID '%s' with MARKER '%s' and RND '%s'", sid, marker, rnd)
w.Write([]byte("Hello!"))
}
|