youtube

package
v0.0.0-...-07de05f Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasYouTubeService

func HasYouTubeService() bool

func SetYouTubeService

func SetYouTubeService(s *Service)

Types

type Service

type Service struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func GetYouTubeService

func GetYouTubeService() *Service

func (*Service) DecQuotaEntryCount

func (s *Service) DecQuotaEntryCount()

func (*Service) GetChannelFeeds

func (s *Service) GetChannelFeeds(channelId, publishedAfter string) ([]*youtubeAPI.Activity, error)

func (*Service) GetChannelSingle

func (s *Service) GetChannelSingle(channelId string) (*youtubeAPI.Channel, error)

func (*Service) GetCheckingInterval

func (s *Service) GetCheckingInterval() int64

func (*Service) GetVideoSingle

func (s *Service) GetVideoSingle(videoId string) (*youtubeAPI.Video, error)

func (*Service) IncQuotaEntryCount

func (s *Service) IncQuotaEntryCount()

func (*Service) Init

func (s *Service) Init(configFilePath string)

func (*Service) SearchQuerySingle

func (s *Service) SearchQuerySingle(keywords []string, searchType string) (*youtubeAPI.SearchResult, error)

searchQuerySingle returns single search result with given type @searchType. returns (nil, nil) when there is no matching results.

func (*Service) UpdateCheckingInterval

func (s *Service) UpdateCheckingInterval() error

Jump to

Keyboard shortcuts

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