Documentation ¶
Index ¶
- Variables
- func CreateClient(ctx context.Context, config *oauth2.Config) *http.Client
- func DeleteUser(name string)
- func GetTokenFromFile(filename string) (*oauth2.Token, error)
- func GetTokenFromWeb(config *oauth2.Config) *oauth2.Token
- func HandleError(err error, message string) string
- func NewClient()
- func NewUser(name string)
- func SaveToken(filename string, token *oauth2.Token)
- func SearchQuery(service *youtube.Service, search string) map[string]string
- func TokenCacheFile() (string, error)
- type RequestResponseFormat
- type Respond
- type SearchRequest
- type UserAdd
- type Users
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeleteUser ¶
func DeleteUser(name string)
*Searches linearly through session clients and deletes selected username
func SearchQuery ¶
*YOUTUBE QUERY FUNCTION
func TokenCacheFile ¶
Types ¶
type RequestResponseFormat ¶
type RequestResponseFormat struct {
Message string `json:"message"`
}
type SearchRequest ¶
SearchRequest used for user search
type Users ¶
type Users struct { UserIndex int `json:"UserIndex"` UserName string `json:"UserName"` Searches []*Respond `json:"Searches"` SessionTime int `json:"SessionTime"` }
User struct for user presets
func RelatedVideoGenerate ¶
Function loops through queried videos and makes
*another request for more related videos.
func (*Users) SearchHandler ¶
func (h *Users) SearchHandler(w http.ResponseWriter, r *http.Request)
func (*Users) ServeArray ¶
func (h *Users) ServeArray(w http.ResponseWriter, r *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.