youtube

package
v0.0.0-...-646ff60 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

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

func InitConfig(cfg streamctl.Config)

Types

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
}

type TemplateTags

type TemplateTags string

func (*TemplateTags) Parse

func (t *TemplateTags) Parse(in string) error

func (*TemplateTags) String

func (t *TemplateTags) String() string

Jump to

Keyboard shortcuts

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