You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
343 B

package async
import (
"epur-pay/pkg/mq"
)
func AfterCallbackProducer(a *Async, req AsyncRequest) {
mq.AysncInstance.Producer(&mq.Task{
Topics: a.Name,
Delay: req.Delay,
Transaction: false,
Store: false,
Func: req.Func,
})
}
func AfterCallback(data mq.ComsumerParams) error {
data.Func()
return nil
}