Documentation ¶
Index ¶
- Variables
- func GetAllComments(videoID string) ([]models.YoutubeComment, error)
- func InitSweeper(ds *discordgo.Session)
- func ProcessCommentThread(ct *youtube.CommentThread, comments *[]models.YoutubeComment) error
- func Scan(wv models.WatchedVideo)
- func Sweeper()
- func YoutubeCommentToEmbed(c models.YoutubeComment, videoID, videoTitle string) *discordgo.MessageEmbed
- type UserYoutubeService
- type YoutubeService
- func (svc *YoutubeService) GetLivechatID(videoID string) (string, string, error)
- func (svc *YoutubeService) GetStreamInfo(videoID string) (time.Time, *time.Time, *youtube.VideoSnippet, error)
- func (svc *YoutubeService) ListUpcomingStreams(channelID string) ([]models.YoutubeStreamRecord, error)
- func (svc *YoutubeService) ParseVideoID(text string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DS *discordgo.Session
Functions ¶
func GetAllComments ¶
func GetAllComments(videoID string) ([]models.YoutubeComment, error)
func InitSweeper ¶
func ProcessCommentThread ¶
func ProcessCommentThread(ct *youtube.CommentThread, comments *[]models.YoutubeComment) error
func Scan ¶
func Scan(wv models.WatchedVideo)
func YoutubeCommentToEmbed ¶
func YoutubeCommentToEmbed(c models.YoutubeComment, videoID, videoTitle string) *discordgo.MessageEmbed
Types ¶
type UserYoutubeService ¶
type UserYoutubeService struct {
// contains filtered or unexported fields
}
func NewUserYoutubeService ¶
func NewUserYoutubeService(token string, refreshToken *string) (*UserYoutubeService, error)
func (*UserYoutubeService) SendChatMessage ¶
func (usvc *UserYoutubeService) SendChatMessage(livechatID string, content string) (*youtube.LiveChatMessage, error)
func (*UserYoutubeService) Service ¶
func (svc *UserYoutubeService) Service() *youtube.Service
type YoutubeService ¶
type YoutubeService struct {
// contains filtered or unexported fields
}
var SS *YoutubeService
func NewYoutubeService ¶
func NewYoutubeService(ctx context.Context) (*YoutubeService, error)
func (*YoutubeService) GetLivechatID ¶
func (svc *YoutubeService) GetLivechatID(videoID string) (string, string, error)
func (*YoutubeService) GetStreamInfo ¶
func (*YoutubeService) ListUpcomingStreams ¶
func (svc *YoutubeService) ListUpcomingStreams(channelID string) ([]models.YoutubeStreamRecord, error)
func (*YoutubeService) ParseVideoID ¶
func (svc *YoutubeService) ParseVideoID(text string) (string, error)
Click to show internal directories.
Click to hide internal directories.