Documentation ¶
Index ¶
- Variables
- func GetOpenGraph(uri string) (*opengraph.OpenGraph, error)
- func GetRefreshingDiscordTokenSource(ctx context.Context, db *ent.Client, config *oauth2.Config, userID uint64) (oauth2.TokenSource, error)
- func GetYouTubeChannelOG(channelID string) (*opengraph.OpenGraph, error)
- func GetYouTubeService(ctx context.Context, db *ent.Client, userID uint64, config *oauth2.Config) (*youtube.Service, error)
- func GoogleErrHasReason(err *googleapi.Error, code int, reason string) bool
- func IsCommentsDisabledErr(err *googleapi.Error) bool
- func IsUnusableYouTubeTokenErr(err error) bool
- func IsYouTubeSignupRequiredErr(err *googleapi.Error) bool
- func SelectRandomMembersOnlyVideoID(ctx context.Context, logger zerolog.Logger, svc *youtube.Service, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoYouTubeTokenForUser = errors.New("user does not have a YouTube token") ErrInvalidGrant = errors.New("invalid_grant - token expired or revoked") ErrYouTubeSignupRequired = errors.New("youtubeSignupRequired - Google account does not have YouTube account") ErrNoMembersOnlyVideos = errors.New("YouTube channel has membership enabled, but no members-only videos") )
Functions ¶
func GetOpenGraph ¶
Gets OpenGraph data from the provided URL.
func GetYouTubeChannelOG ¶
func GetYouTubeService ¶
func GoogleErrHasReason ¶
func IsCommentsDisabledErr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.