twitchmodels

package
v0.0.0-...-102fae3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	UserID string `json:"user_id"`
}

type DeafultAccountClaims

type DeafultAccountClaims struct {
	Aud               string `json:"aud"`
	Azp               string `json:"azp"`
	Exp               int64  `json:"exp"`
	Iat               int64  `json:"iat"`
	Iss               string `json:"iss"`
	Sub               string `json:"sub"`
	PreferredUsername string `json:"preferred_username"`
}

type Event

type Event struct {
	ID                   string `json:"id"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	Type                 string `json:"type"`
	StartedAt            string `json:"started_at"`
}

type FollowInfo

type FollowInfo struct {
	BroadcasterID    string `json:"broadcaster_id"`
	BroadcasterLogin string `json:"broadcaster_login"`
	BroadcasterName  string `json:"broadcaster_name"`
	FollowedAt       string `json:"followed_at"`
}

type OAuthResponse

type OAuthResponse struct {
	Access_token string `json:"access_token"`
	ExpiresIn    int    `json:"expires_in"`
	TokenType    string `json:"token_type"`
}

type StreamInfo

type StreamInfo struct {
	BroadcasterID               string   `json:"broadcaster_id"`
	BroadcasterLogin            string   `json:"broadcaster_login"`
	BroadcasterName             string   `json:"broadcaster_name"`
	BroadcasterLanguage         string   `json:"broadcaster_language"`
	GameID                      string   `json:"game_id"`
	GameName                    string   `json:"game_name"`
	Title                       string   `json:"title"`
	Delay                       int64    `json:"delay"`
	Tags                        []string `json:"tags"`
	ContentClassificationLabels []string `json:"content_classification_labels"`
	IsBrandedContent            bool     `json:"is_branded_content"`
}

type Transport

type Transport struct {
	Method   string `json:"method"`
	Callback string `json:"callback"`
}

type UserAccessToken

type UserAccessToken struct {
	AccessToken  string    `json:"access_token"`
	ExpiresIn    int       `json:"expires_in"`
	CreatedAt    time.Time `json:"created_at"`
	RefreshToken string    `json:"refresh_token"`
	Scope        []string  `json:"scope"`
	TokenType    string    `json:"token_type"`
}

func (*UserAccessToken) Scan

func (u *UserAccessToken) Scan(value interface{}) error

func (*UserAccessToken) Value

func (u *UserAccessToken) Value() (driver.Value, error)

type Webhook

type Webhook struct {
	ID        string    `json:"id"`
	Status    string    `json:"status"`
	Type      string    `json:"type"`
	Version   string    `json:"version"`
	Condition Condition `json:"condition"`
	CreatedAt time.Time `json:"created_at"`
	Transport Transport `json:"transport"`
	Cost      int       `json:"cost"`
}

type WebhookData

type WebhookData struct {
	Data         []Webhook `json:"data"`
	Total        int       `json:"total"`
	TotalCost    int       `json:"total_cost"`
	MaxTotalCost int       `json:"max_total_cost"`
}

Jump to

Keyboard shortcuts

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