Exemplo n.º 1
0
//handleRecordBridge to handle Record request from client
func handleRecordBridge(w http.ResponseWriter, r *http.Request) error {

	param := httpctxserver.HandlerProcessInput{
		Req:     &comdef.RecordReq{},
		Resp:    &comdef.RecordResp{},
		UsrData: nil}

	return httpctxserver.DoJSONReq(w, r, processBridgeRecord, param)
}
Exemplo n.º 2
0
//handleVerify to handle verify request form RM and client
func handleVerify(w http.ResponseWriter, r *http.Request) error {

	param := httpctxserver.HandlerProcessInput{
		Req:     &comdef.VerifyReq{},
		Resp:    &comdef.VerifyResp{},
		UsrData: nil}

	return httpctxserver.DoJSONReq(w, r, processVerify, param)

}
Exemplo n.º 3
0
//handleSubscribe to handle subscribe request from RM
func handleSubscribe(w http.ResponseWriter, r *http.Request) error {

	param := httpctxserver.HandlerProcessInput{
		Req:     &comdef.SubscribeReq{},
		Resp:    &comdef.SubscribeResp{},
		UsrData: nil}

	return httpctxserver.DoJSONReq(w, r, processSubscribe, param)

}