web

package
v0.0.0-...-905e761 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeAPI

func ServeAPI(db *ent.Client, discordConfig *oauth2.Config, youTubeConfig *oauth2.Config, topic *pubsub.Topic, jwtKey []byte, address string, debug bool) error

func UpsertYouTubeChannelID

func UpsertYouTubeChannelID(ctx context.Context, db *ent.Client, channelID string) error

UpsertYouTubeChannelID upserts YouTube channels by ID.

Returns an error if the channel does not have a membership playlist.

Types

type ErrNoMembershipPlaylist

type ErrNoMembershipPlaylist struct {
	ChannelID string
	// contains filtered or unexported fields
}

func (ErrNoMembershipPlaylist) Error

func (e ErrNoMembershipPlaylist) Error() string

Jump to

Keyboard shortcuts

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