Documentation
¶
Index ¶
- type Accessibility
- type AccessibilityData
- type AddChatItemAction
- type AddLiveChatTickerItemAction
- type Amount
- type AuthorBadge
- type AuthorName
- type AuthorPhoto
- type ChatAction
- type ChatItem
- type ChatRenderer
- type ChatResponse
- type Chatlog
- type CommandMetadata
- type ContextMenuEndpoint
- type Continuation
- type ContinuationAction
- type ContinuationContents
- type CustomThumbnail
- type DetailText
- type Emoji
- type Error
- type HeaderSubtext
- type Icon
- type Image
- type LiveChatAuthorBadgeRenderer
- type LiveChatContinuation
- type LiveChatItemContextMenuEndpoint
- type LiveChatMembershipItemRenderer
- type LiveChatPaidMessageRenderer
- type LiveChatPlaceholderItemRenderer
- type LiveChatReplayContinuationData
- type LiveChatTextMessageRenderer
- type LiveChatTickerItem
- type LiveChatTickerPaidMessageItemRenderer
- type LiveChatTickerSponsorItemRenderer
- type LiveChatViewerEngagementMessageRenderer
- type Message
- type PlayerSeekContinuationData
- type PurchaseAmountText
- type Renderer
- type ReplayChatItemAction
- type Response
- type ResponseContext
- type Run
- type ShowItemEndpoint
- type ShowLiveChatItemEndpoint
- type SponsorPhoto
- type Thumbnail
- type TimestampText
- type WebCommandMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessibility ¶
type Accessibility struct {
AccessibilityData AccessibilityData `json:"accessibilityData"`
}
type AccessibilityData ¶
type AccessibilityData struct {
Label string `json:"label"`
}
type AddChatItemAction ¶
type AddLiveChatTickerItemAction ¶
type AddLiveChatTickerItemAction struct {
Item LiveChatTickerItem `json:"item"`
DurationSec string `json:"durationSec"`
}
type AuthorBadge ¶
type AuthorBadge struct {
LiveChatAuthorBadgeRenderer LiveChatAuthorBadgeRenderer `json:"liveChatAuthorBadgeRenderer"`
}
type AuthorName ¶
type AuthorName struct {
SimpleText string `json:"simpleText"`
}
type AuthorPhoto ¶
type AuthorPhoto struct {
Thumbnails []Thumbnail `json:"thumbnails"`
}
type ChatAction ¶
type ChatAction struct {
AddChatItemAction AddChatItemAction `json:"addChatItemAction"`
AddLiveChatTickerItemAction AddLiveChatTickerItemAction `json:"addLiveChatTickerItemAction"`
}
type ChatItem ¶
type ChatItem struct {
LiveChatViewerEngagementMessageRenderer LiveChatViewerEngagementMessageRenderer `json:"liveChatViewerEngagementMessageRenderer"`
LiveChatTextMessageRenderer LiveChatTextMessageRenderer `json:"liveChatTextMessageRenderer"`
LiveChatMembershipItemRenderer LiveChatMembershipItemRenderer `json:"liveChatMembershipItemRenderer"`
LiveChatPaidMessageRenderer LiveChatPaidMessageRenderer `json:"liveChatPaidMessageRenderer"`
LiveChatPlaceholderItemRenderer LiveChatPlaceholderItemRenderer `json:"liveChatPlaceholderItemRenderer"`
}
type ChatRenderer ¶ added in v1.1.0
type ChatRenderer interface {
ChatMessage() string
}
type ChatResponse ¶
type ChatResponse struct {
Response Response `json:"response"`
}
type Chatlog ¶
type Chatlog struct {
// contains filtered or unexported fields
}
func (*Chatlog) HandleChat ¶ added in v1.1.0
func (c *Chatlog) HandleChat(handler func(renderer ChatRenderer) error) error
type CommandMetadata ¶
type CommandMetadata struct {
WebCommandMetadata WebCommandMetadata `json:"webCommandMetadata"`
}
type ContextMenuEndpoint ¶
type ContextMenuEndpoint struct {
ClickTrackingParams string `json:"clickTrackingParams"`
CommandMetadata CommandMetadata `json:"commandMetadata"`
LiveChatItemContextMenuEndpoint LiveChatItemContextMenuEndpoint `json:"liveChatItemContextMenuEndpoint"`
}
type Continuation ¶
type Continuation struct {
LiveChatReplayContinuationData LiveChatReplayContinuationData `json:"liveChatReplayContinuationData"`
PlayerSeekContinuationData PlayerSeekContinuationData `json:"playerSeekContinuationData"`
}
type ContinuationAction ¶
type ContinuationAction struct {
ReplayChatItemAction ReplayChatItemAction `json:"replayChatItemAction"`
}
type ContinuationContents ¶
type ContinuationContents struct {
LiveChatContinuation LiveChatContinuation `json:"liveChatContinuation"`
}
type CustomThumbnail ¶
type CustomThumbnail struct {
Thumbnails []Thumbnail `json:"thumbnails"`
}
type DetailText ¶
type DetailText struct {
Runs []Run `json:"runs"`
}
type HeaderSubtext ¶
type HeaderSubtext struct {
Runs []Run `json:"runs"`
}
type Image ¶
type Image struct {
Thumbnails []Thumbnail `json:"thumbnails"`
Accessibility Accessibility `json:"accessibility"`
}
type LiveChatAuthorBadgeRenderer ¶
type LiveChatAuthorBadgeRenderer struct {
Icon Icon `json:"icon"`
CustomThumbnail CustomThumbnail `json:"customThumbnail"`
Tooltip string `json:"tooltip"`
Accessibility Accessibility `json:"accessibility"`
}
type LiveChatContinuation ¶
type LiveChatContinuation struct {
Continuations []Continuation `json:"continuations"`
Actions []ContinuationAction `json:"actions"`
}
type LiveChatItemContextMenuEndpoint ¶
type LiveChatItemContextMenuEndpoint struct {
Params string `json:"params"`
}
type LiveChatMembershipItemRenderer ¶
type LiveChatMembershipItemRenderer struct {
ID string `json:"id"`
TimestampUsec string `json:"timestampUsec"`
AuthorExternalChannelID string `json:"authorExternalChannelId"`
HeaderSubtext HeaderSubtext `json:"headerSubtext"`
AuthorName AuthorName `json:"authorName"`
AuthorPhoto AuthorPhoto `json:"authorPhoto"`
AuthorBadges []AuthorBadge `json:"authorBadges"`
ContextMenuEndpoint ContextMenuEndpoint `json:"contextMenuEndpoint"`
ContextMenuAccessibility Accessibility `json:"contextMenuAccessibility"`
}
func (*LiveChatMembershipItemRenderer) ChatMessage ¶ added in v1.1.0
func (r *LiveChatMembershipItemRenderer) ChatMessage() string
type LiveChatPaidMessageRenderer ¶
type LiveChatPaidMessageRenderer struct {
ID string `json:"id"`
TimestampUsec string `json:"timestampUsec"`
AuthorName AuthorName `json:"authorName"`
AuthorPhoto AuthorPhoto `json:"authorPhoto"`
PurchaseAmountText PurchaseAmountText `json:"purchaseAmountText"`
Message Message `json:"message"`
HeaderBackgroundColor int `json:"headerBackgroundColor"`
HeaderTextColor int `json:"headerTextColor"`
BodyBackgroundColor int `json:"bodyBackgroundColor"`
BodyTextColor int `json:"bodyTextColor"`
AuthorExternalChannelID string `json:"authorExternalChannelId"`
AuthorNameTextColor int `json:"authorNameTextColor"`
ContextMenuEndpoint ContextMenuEndpoint `json:"contextMenuEndpoint"`
TimestampColor int `json:"timestampColor"`
ContextMenuAccessibility Accessibility `json:"contextMenuAccessibility"`
TimestampText TimestampText `json:"timestampText"`
TrackingParams string `json:"trackingParams"`
}
func (*LiveChatPaidMessageRenderer) ChatMessage ¶ added in v1.1.0
func (r *LiveChatPaidMessageRenderer) ChatMessage() string
type LiveChatPlaceholderItemRenderer ¶
type LiveChatPlaceholderItemRenderer struct {
ID string `json:"id"`
TimestampUsec string `json:"timestampUsec"`
}
func (*LiveChatPlaceholderItemRenderer) ChatMessage ¶ added in v1.1.0
func (r *LiveChatPlaceholderItemRenderer) ChatMessage() string
type LiveChatTextMessageRenderer ¶
type LiveChatTextMessageRenderer struct {
ID string `json:"id"`
TimestampUsec string `json:"timestampUsec"`
Message Message `json:"message"`
AuthorName AuthorName `json:"authorName"`
AuthorPhoto AuthorPhoto `json:"authorPhoto"`
Icon Icon `json:"icon"`
ContextMenuEndpoint ContextMenuEndpoint `json:"contextMenuEndpoint"`
AuthorBadges []AuthorBadge `json:"authorBadges"`
AuthorExternalChannelID string `json:"authorExternalChannelId"`
ContextMenuAccessibility Accessibility `json:"contextMenuAccessibility"`
TimestampText TimestampText `json:"timestampText"`
}
func (*LiveChatTextMessageRenderer) ChatMessage ¶ added in v1.1.0
func (r *LiveChatTextMessageRenderer) ChatMessage() string
type LiveChatTickerItem ¶
type LiveChatTickerItem struct {
LiveChatTickerPaidMessageItemRenderer LiveChatTickerPaidMessageItemRenderer `json:"liveChatTickerPaidMessageItemRenderer"`
LiveChatTickerSponsorItemRenderer LiveChatTickerSponsorItemRenderer `json:"liveChatTickerSponsorItemRenderer"`
DurationSec string `json:"durationSec"`
}
type LiveChatTickerPaidMessageItemRenderer ¶
type LiveChatTickerPaidMessageItemRenderer struct {
ID string `json:"id"`
Amount Amount `json:"amount"`
AmountTextColor int `json:"amountTextColor"`
StartBackgroundColor int `json:"startBackgroundColor"`
EndBackgroundColor int `json:"endBackgroundColor"`
AuthorPhoto AuthorPhoto `json:"authorPhoto"`
DurationSec int `json:"durationSec"`
ShowItemEndpoint ShowItemEndpoint `json:"showItemEndpoint"`
AuthorExternalChannelID string `json:"authorExternalChannelId"`
FullDurationSec int `json:"fullDurationSec"`
TrackingParams string `json:"trackingParams"`
}
type LiveChatTickerSponsorItemRenderer ¶
type LiveChatTickerSponsorItemRenderer struct {
ID string `json:"id"`
DetailText DetailText `json:"detailText"`
DetailTextColor int `json:"detailTextColor"`
StartBackgroundColor int `json:"startBackgroundColor"`
EndBackgroundColor int `json:"endBackgroundColor"`
SponsorPhoto SponsorPhoto `json:"sponsorPhoto"`
DurationSec int `json:"durationSec"`
ShowItemEndpoint ShowItemEndpoint `json:"showItemEndpoint"`
AuthorExternalChannelID string `json:"authorExternalChannelId"`
FullDurationSec int `json:"fullDurationSec"`
}
type LiveChatViewerEngagementMessageRenderer ¶
type LiveChatViewerEngagementMessageRenderer struct {
ID string `json:"id"`
TimestampUsec string `json:"timestampUsec"`
Icon Icon `json:"icon"`
Message Message `json:"message"`
}
func (*LiveChatViewerEngagementMessageRenderer) ChatMessage ¶ added in v1.1.0
func (r *LiveChatViewerEngagementMessageRenderer) ChatMessage() string
type PlayerSeekContinuationData ¶
type PlayerSeekContinuationData struct {
Continuation string `json:"continuation"`
}
type PurchaseAmountText ¶
type PurchaseAmountText struct {
SimpleText string `json:"simpleText"`
}
type Renderer ¶
type Renderer struct {
LiveChatPaidMessageRenderer LiveChatPaidMessageRenderer `json:"liveChatPaidMessageRenderer"`
LiveChatMembershipItemRenderer LiveChatMembershipItemRenderer `json:"liveChatMembershipItemRenderer"`
}
type ReplayChatItemAction ¶
type ReplayChatItemAction struct {
Actions []ChatAction `json:"actions"`
VideoOffsetTimeMsec string `json:"videoOffsetTimeMsec"`
}
type Response ¶
type Response struct {
ResponseContext ResponseContext `json:"responseContext"`
ContinuationContents ContinuationContents `json:"continuationContents"`
}
type ResponseContext ¶
type ResponseContext struct {
Errors struct{ Error []Error } `json:"errors"`
}
type ShowItemEndpoint ¶
type ShowItemEndpoint struct {
ClickTrackingParams string `json:"clickTrackingParams"`
CommandMetadata CommandMetadata `json:"commandMetadata"`
ShowLiveChatItemEndpoint ShowLiveChatItemEndpoint `json:"showLiveChatItemEndpoint"`
}
type ShowLiveChatItemEndpoint ¶
type ShowLiveChatItemEndpoint struct {
Renderer Renderer `json:"renderer"`
}
type SponsorPhoto ¶
type SponsorPhoto struct {
Thumbnails []Thumbnail `json:"thumbnails"`
}
type TimestampText ¶
type TimestampText struct {
SimpleText string `json:"simpleText"`
}
type WebCommandMetadata ¶
type WebCommandMetadata struct {
}
Click to show internal directories.
Click to hide internal directories.