Files
platform/web/events/channel.go

18 lines
351 B
Go
Raw Normal View History

package events
import (
"github.com/hibiken/asynq"
)
const RemoveChannel = "channel:remove"
func NewRemoveChannel(batch string) *asynq.Task {
return asynq.NewTask(RemoveChannel, []byte(batch))
}
2026-05-07 14:58:11 +08:00
const ClearExpiredChannels = "channel:clear_expired"
func NewClearExpiredChannels() *asynq.Task {
return asynq.NewTask(ClearExpiredChannels, nil)
}