Skel of HTTPAgent with interfaces for both request and reply decoder/encoders

This commit is contained in:
DanB
2018-06-06 19:45:54 +02:00
parent e20b9f628a
commit 11ca6b1933
5 changed files with 133 additions and 19 deletions

View File

@@ -368,7 +368,7 @@ func startHTTPAgent(internalSMGChan chan rpcclient.RpcClientConnection, exitChan
}
}
server.RegisterHttpHandler(agntCfg.Url,
agents.NewHttpAgent(sSConn, agntCfg.Timezone, agntCfg.RequestPayload,
agents.NewHTTPAgent(sSConn, agntCfg.Timezone, agntCfg.RequestPayload,
agntCfg.ReplyPayload, agntCfg.RequestProcessors))
}
exitChan <- true