Version: v0.0.0-...-f84b611 Latest Latest

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0




This section is empty.


This section is empty.


func APIHelper

func APIHelper(w http.ResponseWriter, r *http.Request)

APIHelper - Prints a helpful error message

func AllChannels

func AllChannels(w http.ResponseWriter, r *http.Request)

AllChannels - Get all youtube channel responses

func AllPlaylists

func AllPlaylists(w http.ResponseWriter, r *http.Request)

AllPlaylists - Get all playlist responses

func AllPlaylistsWithItems

func AllPlaylistsWithItems(w http.ResponseWriter, r *http.Request)

AllPlaylistsWithItems - Get all playlist responses

func AllVideos

func AllVideos(w http.ResponseWriter, r *http.Request)

AllVideos - Get all singular videos responses

func FetchAllYoutubeInfoFromSheet

func FetchAllYoutubeInfoFromSheet(forceRefresh bool)

FetchAllYoutubeInfoFromSheet - Gets sheet values, resets responses and fetches youtube data

func Home

func Home(w http.ResponseWriter, r *http.Request)

Home - Displays the home page

func RandomChannel

func RandomChannel(w http.ResponseWriter, r *http.Request)

RandomChannel - Get a random channel from youtube responses

func RandomPlaylist

func RandomPlaylist(w http.ResponseWriter, r *http.Request)

RandomPlaylist - Get a random playlist response

func RandomPlaylistItem

func RandomPlaylistItem(w http.ResponseWriter, r *http.Request)

RandomPlaylistItem - Get a random playlist response

func RandomVideo

func RandomVideo(w http.ResponseWriter, r *http.Request)

RandomVideo - Get a random playlist item from a random playlist

func UpdateAllChannelsFromSheet

func UpdateAllChannelsFromSheet(w http.ResponseWriter, r *http.Request)

UpdateAllChannelsFromSheet - Refetches channel responses and forces refresh

func UpdateAllPlaylistsFromSheet

func UpdateAllPlaylistsFromSheet(w http.ResponseWriter, r *http.Request)

UpdateAllPlaylistsFromSheet - Refetches playlist responses and forces refresh

func UpdateAllValuesFromSheet

func UpdateAllValuesFromSheet(w http.ResponseWriter, r *http.Request)

UpdateAllValuesFromSheet - Updates json files by enforcing refresh

func UpdateAllVideosFromSheet

func UpdateAllVideosFromSheet(w http.ResponseWriter, r *http.Request)

UpdateAllVideosFromSheet - Refetches video responses and forces refresh


type TemplateData

type TemplateData struct {
	SiteTitle     string `json:"siteTitle"`
	Title         string `json:"title"`
	VideoID       string `json:"videoID"`
	PublishedDate string `json:"publishedDate"`

TemplateData - The data the goes into the served html page

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL