14 lines
427 B
Go
14 lines
427 B
Go
package twitch
|
|
|
|
// EventSub is the wire format of incoming payloads from Twitch EventSub.
|
|
type EventSub[Event any] struct {
|
|
// Subscription is fields relating to the EventSub subscription itself.
|
|
Subscription Subscription `json:"subscription"`
|
|
// Event is the event payload.
|
|
Event Event `json:"event"`
|
|
}
|
|
|
|
// Subscription is the fields of an EventSub subscription
|
|
// which are relevant to Kaiyan.
|
|
type Subscription struct{}
|