go-zero/core/queue/consumer.go
2020-08-13 17:00:53 +08:00

11 lines
145 B
Go

package queue
type (
Consumer interface {
Consume(string) error
OnEvent(event interface{})
}
ConsumerFactory func() (Consumer, error)
)