Documentation ¶
Index ¶
Constants ¶
View Source
const ( TemplateTagsUndefined = TemplateTags("") TemplateTagsIgnore = TemplateTags("ignore") TemplateTagsUseAsPrimary = TemplateTags("use_as_primary") TemplateTagsUseAsAdditional = TemplateTags("use_as_additional") )
View Source
const ID = streamctl.PlatformName("youtube")
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
Types ¶
type Config ¶
type Config = streamctl.PlatformConfig[PlatformSpecificConfig, StreamProfile]
type OAuthHandler ¶
type OAuthHandler func(context.Context, oauthhandler.OAuthHandlerArgument) error
type PlatformSpecificConfig ¶
type PlatformSpecificConfig struct { ChannelID string ClientID string ClientSecret secret.String Token *secret.OAuth2Token CustomOAuthHandler OAuthHandler `yaml:"-"` GetOAuthListenPorts func() []uint16 `yaml:"-"` }
func (PlatformSpecificConfig) IsInitialized ¶
func (cfg PlatformSpecificConfig) IsInitialized() bool
type StreamProfile ¶
type StreamProfile struct { streamctl.StreamProfileBase `yaml:",omitempty,inline,alias"` AutoNumerate bool TemplateBroadcastIDs []string Tags []string TemplateTags TemplateTags }
type StreamStatusCustomData ¶
type StreamStatusCustomData struct { ActiveBroadcasts []*youtube.LiveBroadcast UpcomingBroadcasts []*youtube.LiveBroadcast Streams []*youtube.LiveStream }
func GetStreamStatusCustomData ¶
func GetStreamStatusCustomData(in *streamcontrol.StreamStatus) StreamStatusCustomData
type TemplateTags ¶
type TemplateTags string
func (*TemplateTags) Parse ¶
func (t *TemplateTags) Parse(in string) error
func (*TemplateTags) String ¶
func (t *TemplateTags) String() string
Click to show internal directories.
Click to hide internal directories.