feat: 升级接口约束以及定义
This commit is contained in:
14
abstract/IConsumer.go
Normal file
14
abstract/IConsumer.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Package abstract ...
|
||||
//
|
||||
// Description : abstract ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2025-08-22 16:33
|
||||
package abstract
|
||||
|
||||
// IConsumer 消费者接口约束
|
||||
type IConsumer interface {
|
||||
Start() error // 启动消费者
|
||||
Stop() // 停止消费者
|
||||
}
|
||||
Reference in New Issue
Block a user