mirror of
https://github.com/Xevion/go-ha.git
synced 2026-01-31 04:24:27 -06:00
make App exported
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@ type BaseEventMsg struct {
|
||||
}
|
||||
|
||||
/* Functions */
|
||||
func callEventListeners(app *app, msg ws.ChanMsg) {
|
||||
func callEventListeners(app *App, msg ws.ChanMsg) {
|
||||
baseEventMsg := BaseEventMsg{}
|
||||
json.Unmarshal(msg.Raw, &baseEventMsg)
|
||||
listeners, ok := app.eventListeners[baseEventMsg.Event.EventType]
|
||||
|
||||
Reference in New Issue
Block a user