Files
AynaLivePlayer/plugin/wshub/events.go

23 lines
307 B
Go

package wshub
import (
"AynaLivePlayer/pkg/event"
"encoding/json"
)
type EventData struct {
EventID event.EventId
Data interface{}
}
type EventDataReceived struct {
EventID event.EventId
Data json.RawMessage
}
var eventCache []*EventData
func init() {
eventCache = make([]*EventData, 0)
}