1
This commit is contained in:
23
internal/app/common/service/event_bus.go
Normal file
23
internal/app/common/service/event_bus.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// ================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
eventBus "github.com/asaskevich/EventBus"
|
||||
)
|
||||
|
||||
var localEventBus eventBus.Bus
|
||||
|
||||
func EventBus() eventBus.Bus {
|
||||
if localEventBus == nil {
|
||||
panic("implement not found for interface EventBus, forgot register?")
|
||||
}
|
||||
return localEventBus
|
||||
}
|
||||
|
||||
func RegisterEventBus(i eventBus.Bus) {
|
||||
localEventBus = i
|
||||
}
|
||||
Reference in New Issue
Block a user