go-zero/core/queue/consumer.go

11 lines
145 B
Go
Raw Normal View History

2020-07-26 17:09:05 +08:00
package queue
type (
Consumer interface {
Consume(string) error
OnEvent(event interface{})
}
ConsumerFactory func() (Consumer, error)
)