go-zero/core/queue/consumer.go

11 lines
145 B
Go
Raw Normal View History

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