diff --git a/cmd/inquirer/inquirer.go b/cmd/inquirer/inquirer.go index 87e62f643..55c775339 100644 --- a/cmd/inquirer/inquirer.go +++ b/cmd/inquirer/inquirer.go @@ -11,6 +11,9 @@ import ( var raterList *RaterList +/* +Handler for the statistics web client +*/ func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "
    ") for addr, _ := range raterList.clientAddresses { @@ -19,6 +22,9 @@ func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "
") } +/* +The function that gets the information from the raters using balancer. +*/ func CallRater(key string) (reply string) { err := errors.New("") //not nil value for err != nil { diff --git a/cmd/inquirer/responder.go b/cmd/inquirer/responder.go index eef1f6899..627ea6a51 100644 --- a/cmd/inquirer/responder.go +++ b/cmd/inquirer/responder.go @@ -1,7 +1,10 @@ package main -type Responder int +type Responder byte +/* +RPC method thet provides the external RPC interface for getting the rating information. +*/ func (r *Responder) Get(args string, replay *string) error { *replay = CallRater(args) return nil