1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: settings dialog for mail reports

This commit is contained in:
Ferdinand Mütsch
2021-04-30 16:20:08 +02:00
parent a4e7158db2
commit ef9303e61e
15 changed files with 584 additions and 482 deletions

24
config/eventbus.go Normal file
View File

@@ -0,0 +1,24 @@
package config
import "github.com/leandro-lugaresi/hub"
type ApplicationEvent struct {
Type string
Payload interface{}
}
const (
TopicUser = "user.*"
EventUserUpdate = "user.update"
FieldPayload = "payload"
)
var eventHub *hub.Hub
func init() {
eventHub = hub.New()
}
func EventBus() *hub.Hub {
return eventHub
}