added QueueGetDataBody

master
Paulo Simão 2022-03-03 13:34:42 -03:00
parent 03930d5821
commit 18801a7b94
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ func (c *Cli) QueueGetData(id string) (ret []byte, err error) {
ret, err = c.HttpCli().RawGet("/api/v1/queue/getrequest/" + id)
return
}
func (c *Cli) QueueGetDataBody(id string) (ret []byte, err error) {
ret, err = c.HttpCli().RawGet("/api/v1/queue/getrequestbody/" + id)
return
}
func (c *Cli) QueueGetMyData() ([]byte, error) {
return c.QueueGetData(os.Getenv("REPLAY_QUEUEID"))
}