14 lines
312 B
Go
14 lines
312 B
Go
package serverevents
|
|
|
|
type Event struct {
|
|
Type string `json:"type"`
|
|
Data any `json:"data"`
|
|
IsBackendOnly bool `json:"-"`
|
|
Filter func(c IContext) bool `json:"-"`
|
|
}
|
|
|
|
type IEvent interface {
|
|
GetEventName() string
|
|
GetEventData() any
|
|
}
|