mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2026-03-15 22:13:17 +08:00
22 lines
265 B
Go
22 lines
265 B
Go
package wshub
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type EventData struct {
|
|
EventID string
|
|
Data interface{}
|
|
}
|
|
|
|
type EventDataReceived struct {
|
|
EventID string
|
|
Data json.RawMessage
|
|
}
|
|
|
|
var eventCache []*EventData
|
|
|
|
func init() {
|
|
eventCache = make([]*EventData, 0)
|
|
}
|