Documentation
¶
Index ¶
- Constants
- func AddPlaylistVideos(rest *PulseHttp, tuber ytlibrarian.Tuber, refid string, tags []string) error
- func AddUser(rest *PulseHttp, user string, authorize bool) error
- func AddVideoToPulse(rest *PulseHttp, refID string, tags []string, rating, effort, skill int) error
- func AddVideosToWatchQueue(rest *PulseHttp, vidIds []string) error
- func AuthorizeUser(rest *PulseHttp, user string) error
- func CreateSession(rest *PulseHttp, session *ytpulse.Session) (string, error)
- func CreateSessionWithVideos(rest *PulseHttp, session *ytpulse.Session, videoIds []string) (string, error)
- func FilterSessionSlice(filterStr string, sessions []ytpulse.Session) ([]ytpulse.Session, error)
- func FilterVideoSlice(filterStr string, videos []ytpulse.Video) ([]ytpulse.Video, error)
- func GetCacheDir() string
- func GetCachedChannels(rest *PulseHttp) (channels []ytpulse.Channel, err error)
- func GetCachedUserSessions(rest *PulseHttp) (sessions []ytpulse.Session, err error)
- func GetCachedUserVideos(rest *PulseHttp) (videos []ytpulse.Video, err error)
- func GetCachedUsers(rest *PulseHttp) (users []ytpulse.User, err error)
- func GetCachedVideo(rest *PulseHttp, id string, isRefid bool) (ytpulse.Video, error)
- func GetCachedWatchQueue(rest *PulseHttp) (queue ytpulse.WatchQueue, err error)
- func GetChannels(rest *PulseHttp) ([]ytpulse.Channel, error)
- func GetUserSessions(rest *PulseHttp) ([]ytpulse.Session, error)
- func GetUserVideos(rest *PulseHttp) ([]ytpulse.Video, error)
- func GetUsers(rest *PulseHttp) ([]ytpulse.User, error)
- func GetVideo(rest *PulseHttp, id string, isRefid bool) (ytpulse.Video, error)
- func GetVideosByIDs(rest *PulseHttp, ids []string) ([]ytpulse.Video, error)
- func GetWatchQueue(rest *PulseHttp) (ytpulse.WatchQueue, error)
- func IsTokenExpired(token *oauth2.Token) bool
- func NewOAuth2Config(clientID, secret string) *oauth2.Config
- func NewOAuthToken(ctx context.Context, config *oauth2.Config) *oauth2.Token
- func ParseRange(in string) []int
- func PlaylistIdFromURL(link string) (string, error)
- func PrintVideoSlice(format string, videos []ytpulse.Video) error
- func PrintWatchQueue(rest *PulseHttp, queue ytpulse.WatchQueue) error
- func RemoveWatchQueue(rest *PulseHttp) error
- func UpdateVideoData(rest *PulseHttp, vid ytpulse.Video) error
- func UpdateVideoTags(rest *PulseHttp, videos []ytpulse.Video, add, remove []string) []error
- func UpdateWatchQueue(rest *PulseHttp, queue ytpulse.WatchQueue) error
- func VideoIdFromURL(link string) (string, error)
- type PulseHttp
- func (h *PulseHttp) Del(endpoint string) (*http.Response, []byte, error)
- func (h *PulseHttp) Get(endpoint string) (*http.Response, []byte, error)
- func (h *PulseHttp) Post(endpoint, payload string) (*http.Response, []byte, error)
- func (h *PulseHttp) Put(endpoint, payload string) (*http.Response, []byte, error)
Constants ¶
View Source
const (
PulseWatchQueueName = "crooked monkey: next"
)
Variables ¶
This section is empty.
Functions ¶
func AddPlaylistVideos ¶
func AddVideoToPulse ¶
func AddVideosToWatchQueue ¶ added in v0.1.1
func AuthorizeUser ¶
func CreateSessionWithVideos ¶
func FilterSessionSlice ¶ added in v0.1.1
func FilterVideoSlice ¶
func GetCacheDir ¶ added in v0.1.1
func GetCacheDir() string
func GetCachedChannels ¶ added in v0.1.1
func GetCachedUserSessions ¶
func GetCachedUserVideos ¶
func GetCachedUsers ¶ added in v0.1.1
func GetCachedVideo ¶ added in v0.1.1
func GetCachedWatchQueue ¶ added in v0.1.1
func GetCachedWatchQueue(rest *PulseHttp) (queue ytpulse.WatchQueue, err error)
func GetWatchQueue ¶ added in v0.1.1
func GetWatchQueue(rest *PulseHttp) (ytpulse.WatchQueue, error)
func IsTokenExpired ¶
func NewOAuth2Config ¶
func ParseRange ¶ added in v0.1.1
func PlaylistIdFromURL ¶
func PrintWatchQueue ¶ added in v0.1.1
func PrintWatchQueue(rest *PulseHttp, queue ytpulse.WatchQueue) error
func RemoveWatchQueue ¶ added in v0.1.1
func UpdateVideoTags ¶ added in v0.1.1
func UpdateWatchQueue ¶ added in v0.1.1
func UpdateWatchQueue(rest *PulseHttp, queue ytpulse.WatchQueue) error
func VideoIdFromURL ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.