Documentation ¶
Index ¶
- Constants
- func SetupRoutes(e *echo.Echo, cfg *config.Config, srv *socketio.Server)
- type ArchivalRequest
- type ArchiveEventsData
- type ArchiveRequestsPageData
- type AuditData
- type AuditEvent
- type Comment
- type CommentData
- type HomePageData
- type LoggedInUserData
- type NewVideoMsg
- type PaginationData
- type ProfileData
- type RouteHandler
- type UnapprovedVideo
- type Video
- type VideoDetail
- type VideoInProgress
Constants ¶
View Source
const ( NumberOfPagesToDisplay = 5 NumberOfVideosPerPage = 50 )
View Source
const (
MINIMUM_NUMBER_OF_TAGS = 5
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArchivalRequest ¶
type ArchiveEventsData ¶
type ArchiveEventsData struct {
ArchivalEvents []*schedulerproto.ArchivalEvent
}
type ArchiveRequestsPageData ¶
type ArchiveRequestsPageData struct {
ArchivalRequests []ArchivalRequest
}
type AuditData ¶
type AuditData struct { Length int Events []AuditEvent }
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 HomePageData ¶
type HomePageData struct { PaginationData PaginationData Videos []Video }
type LoggedInUserData ¶
type NewVideoMsg ¶
type PaginationData ¶
type ProfileData ¶
type ProfileData struct { PaginationData PaginationData UserID int64 Username string ProfilePictureURL string Videos []Video Banned bool L *LoggedInUserData }
type RouteHandler ¶
type RouteHandler struct {
// contains filtered or unexported fields
}
func NewRouteHandler ¶
func NewRouteHandler(v videoproto.VideoServiceClient, u userproto.UserServiceClient, s schedulerproto.SchedulerClient, p partyproto.PartyserviceClient, srv *socketio.Server) *RouteHandler
type UnapprovedVideo ¶
type VideoDetail ¶
type VideoDetail struct { 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 Tags []string RecommendedVideos []Video L *LoggedInUserData }
type VideoInProgress ¶
Source Files ¶
- GET_archiveevents_-id.go
- GET_archiverequests.go
- GET_audits.go
- GET_comments_-id.go
- GET_downloads_in_progress.go
- GET_home.go
- GET_inference_categories.go
- GET_user_profile.go
- GET_users_-id.go
- GET_videos_-id.go
- POST_approve_-id.go
- POST_approve_video.go
- POST_archiverequests.go
- POST_ban_-id.go
- POST_comment_upvotes.go
- POST_comments.go
- POST_delete-archiverequest.go
- POST_delete_-id.go
- POST_login.go
- POST_logout.go
- POST_password_reset.go
- POST_rate_-id.go
- POST_register.go
- POST_retry_archival_request.go
- POST_revolt_login.go
- POST_set_user_rank_-id_-rank.go
- POST_upload.go
- pagination.go
- partyservice.go
- routes.go
- utils.go
Click to show internal directories.
Click to hide internal directories.