server

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Start starts the web server

Types

type Event

type Event struct {
	Id           string             `json:"id"`
	Subscription helix.Subscription `json:"event_data"`
}

type ManyEvents

type ManyEvents struct {
	Events []Event `json:"data"`
}

type SubscriptionWebhook

type SubscriptionWebhook struct {
	helix.ResponseCommon
	Data ManyEvents
}

example payload: {"data":[{"event_data":{"broadcaster_id":"225469317","broadcaster_name":"ADanaLife_","is_gift":false,"plan_name":"Channel Subscription (adanalife_)","tier":"1000", "user_id":"26784661","user_name":"MathGaming"},"event_timestamp":"2019-11-30T00:44:31Z","event_type":"subscriptions.subscribe","id":"1UJVQq8yMh9kOe0OmHpw3jbKkGH","version":"1.0"}]}

type TwitchAuthentication

type TwitchAuthentication struct {
	ChannelID       string `json:"channel_id"`
	UserAccessToken string `json:"user_access_token"`
	ClientID        string `json:"client_id"`
	AppAccessToken  string `json:"app_access_token"`
}

TwitchAuthentication is sensitive internal twitch access tokens, which are made available via the server to supporting scripts (if properly authenticated)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL