Documentation ¶
Index ¶
- Constants
- func CalculateTagsLength(tags []string) int
- func InitConfig(cfg streamctl.Config)
- func TruncateTags(tags []string) []string
- type ChatListener
- type Config
- type FlagBroadcastTemplateIDs
- type LiveBroadcast
- type OAuthHandler
- type PlatformSpecificConfig
- type StreamProfile
- type StreamStatusCustomData
- type TemplateTags
- type YouTube
- func (yt *YouTube) ApplyProfile(ctx context.Context, profile StreamProfile, customArgs ...any) error
- func (yt *YouTube) BanUser(ctx context.Context, userID streamcontrol.ChatUserID, reason string, ...) error
- func (yt *YouTube) Close() error
- func (yt *YouTube) DeleteActiveBroadcasts(ctx context.Context) error
- func (yt *YouTube) EndStream(ctx context.Context) error
- func (yt *YouTube) Flush(ctx context.Context) error
- func (yt *YouTube) GetChatMessagesChan(ctx context.Context) (<-chan streamcontrol.ChatMessage, error)
- func (yt *YouTube) GetStreamStatus(ctx context.Context) (_ret *streamcontrol.StreamStatus, _err error)
- func (yt *YouTube) InsertAdsCuePoint(ctx context.Context, ts time.Time, duration time.Duration) error
- func (yt *YouTube) IsCapable(ctx context.Context, cap streamcontrol.Capability) bool
- func (yt *YouTube) IterateActiveBroadcasts(ctx context.Context, callback func(broadcast *youtube.LiveBroadcast) error, ...) error
- func (yt *YouTube) IterateUpcomingBroadcasts(ctx context.Context, callback func(broadcast *youtube.LiveBroadcast) error, ...) error
- func (yt *YouTube) ListBroadcasts(ctx context.Context) ([]*youtube.LiveBroadcast, error)
- func (yt *YouTube) ListStreams(ctx context.Context) ([]*youtube.LiveStream, error)
- func (yt *YouTube) Ping(ctx context.Context) (_err error)
- func (yt *YouTube) RemoveChatMessage(ctx context.Context, messageID streamcontrol.ChatMessageID) error
- func (yt *YouTube) SendChatMessage(ctx context.Context, message string) error
- func (yt *YouTube) SetDescription(ctx context.Context, description string) error
- func (yt *YouTube) SetTitle(ctx context.Context, title string) error
- func (yt *YouTube) StartStream(ctx context.Context, title string, description string, profile StreamProfile, ...) (_err error)
Constants ¶
View Source
const ( TemplateTagsUndefined = youtube.TemplateTagsUndefined TemplateTagsIgnore = youtube.TemplateTagsIgnore TemplateTagsUseAsPrimary = youtube.TemplateTagsUseAsPrimary TemplateTagsUseAsAdditional = youtube.TemplateTagsUseAsAdditional )
View Source
const ID = youtube.ID
View Source
const (
LimitTagsLength = 500
)
Variables ¶
This section is empty.
Functions ¶
func CalculateTagsLength ¶
func InitConfig ¶
func TruncateTags ¶
Types ¶
type ChatListener ¶
type ChatListener struct {
// contains filtered or unexported fields
}
func NewChatListener ¶
func NewChatListener( ctx context.Context, videoID string, ) (*ChatListener, error)
func (*ChatListener) Close ¶
func (h *ChatListener) Close() error
func (*ChatListener) MessagesChan ¶
func (h *ChatListener) MessagesChan() <-chan streamcontrol.ChatMessage
type FlagBroadcastTemplateIDs ¶
type FlagBroadcastTemplateIDs []string
type LiveBroadcast ¶
type LiveBroadcast = youtube.LiveBroadcast
type OAuthHandler ¶
type OAuthHandler = youtube.OAuthHandler
type PlatformSpecificConfig ¶
type PlatformSpecificConfig = youtube.PlatformSpecificConfig
type StreamProfile ¶
type StreamProfile = youtube.StreamProfile
type StreamStatusCustomData ¶
type StreamStatusCustomData = youtube.StreamStatusCustomData
func GetStreamStatusCustomData ¶
func GetStreamStatusCustomData(in *streamcontrol.StreamStatus) StreamStatusCustomData
type TemplateTags ¶
type TemplateTags = youtube.TemplateTags
type YouTube ¶
type YouTube struct { Config Config YouTubeService *youtube.Service CancelFunc context.CancelFunc SaveConfigFunc func(Config) error // contains filtered or unexported fields }
func (*YouTube) ApplyProfile ¶
func (*YouTube) BanUser ¶
func (yt *YouTube) BanUser( ctx context.Context, userID streamcontrol.ChatUserID, reason string, deadline time.Time, ) error
func (*YouTube) DeleteActiveBroadcasts ¶
func (*YouTube) GetChatMessagesChan ¶
func (yt *YouTube) GetChatMessagesChan( ctx context.Context, ) (<-chan streamcontrol.ChatMessage, error)
func (*YouTube) GetStreamStatus ¶
func (yt *YouTube) GetStreamStatus( ctx context.Context, ) (_ret *streamcontrol.StreamStatus, _err error)
func (*YouTube) InsertAdsCuePoint ¶
func (*YouTube) IsCapable ¶
func (yt *YouTube) IsCapable( ctx context.Context, cap streamcontrol.Capability, ) bool
func (*YouTube) IterateActiveBroadcasts ¶
func (*YouTube) IterateUpcomingBroadcasts ¶
func (*YouTube) ListBroadcasts ¶
func (*YouTube) ListStreams ¶
func (*YouTube) RemoveChatMessage ¶
func (yt *YouTube) RemoveChatMessage( ctx context.Context, messageID streamcontrol.ChatMessageID, ) error
func (*YouTube) SendChatMessage ¶
func (*YouTube) SetDescription ¶
func (*YouTube) StartStream ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.