Documentation
¶
Index ¶
Constants ¶
View Source
const ( NumberOfPagesToDisplay = 5 NumberOfVideosPerPage = 50 )
View Source
const (
MINIMUM_NUMBER_OF_TAGS = 5
)
Variables ¶
This section is empty.
Functions ¶
func SetupRoutes ¶
func SetupTestRoutes ¶
func SetupTestRoutes(e *echo.Echo)
Types ¶
type ArchiveRequestsPageData ¶
type ArchiveRequestsPageData struct { L LoggedInUserData ArchivalRequests []*schedulerproto.ContentArchivalEntry }
type CommentData ¶
type CommentData struct { ID int64 `json:"id"` CreationDate string `json:"created"` Content string `json:"content"` Username string `json:"fullname"` ProfileImage string `json:"profile_picture_url"` VoteScore int64 `json:"upvote_count"` CurrUserHasUpvoted bool `json:"user_has_upvoted"` ParentID int64 `json:"parent,omitempty"` }
type HomeHandler ¶
type HomeHandler struct {
// contains filtered or unexported fields
}
type HomePageData ¶
type HomePageData struct { L LoggedInUserData PaginationData PaginationData Videos []Video }
type LoggedInUserData ¶
type PaginationData ¶
type ProfileData ¶
type ProfileData struct { L LoggedInUserData PaginationData PaginationData UserID int64 Username string ProfilePictureURL string Videos []Video }
type RouteHandler ¶
type RouteHandler struct {
// contains filtered or unexported fields
}
func NewRouteHandler ¶
func NewRouteHandler(v videoproto.VideoServiceClient, u userproto.UserServiceClient, s schedulerproto.SchedulerClient) *RouteHandler
type VideoDetail ¶
type VideoDetail struct { L LoggedInUserData Title string MPDLoc string Views uint64 Rating float64 VideoID int64 AuthorID int64 Username string UserDescription string VideoDescription string UserSubscribers uint64 ProfilePicture string UploadDate string // should be a datetime Comments []Comment Tags []string RecommendedVideos []Video NextVideo int64 }
Click to show internal directories.
Click to hide internal directories.