go-twitch/eventsub/websocket/options.go

20 lines
502 B
Go
Raw Permalink Normal View History

2024-03-05 12:14:18 -05:00
package websocket
import "go.fifitido.net/twitch/eventsub/events"
type TransportOptions struct {
// The address of the websocket server.
//
// If not specified it uses the default eventsub endpoint.
Address *string
// KeepaliveTimeoutSeconds sets the keep-alive timeout for the websocket
// when connecting to the default eventsub endpoint
//
// Accepts values between 10 and 600
KeepaliveTimeoutSeconds *int
EventsHandler events.Handler
RevocationHandler events.RevocationHandler
}