Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { CreateRTMPUpLink() ControlUpLinkWindow(userID string, open bool) (err error) StreamLive(username string, w http.ResponseWriter, r *http.Request) (err error) Register(idToken data.UserRegister) (err error) UserDetails(userID string) (detail data.UserDetail, err error) UserGetOneByID(userID string) (user data.User, err error) CastList(variant string, count, offset int, userID ...string) (videos []data.Video, err error) AuthorList(author string, withUnlisted bool, count, offset int) (videos []data.Video, err error) SearchVideo(query string, tags []string, count, offset int) (videos []data.Video, err error) VideoDetails(hash string) (video data.Video, err error) CreateVOD(upload data.VideoUpload, controller beego.Controller, userID string) (ID primitive.ObjectID, err error) DeleteVideo(ID primitive.ObjectID, userID string) (err error) UpdateVideo(video data.VideoEdit, controller beego.Controller, userID string) (err error) CheckUniqueVideoTitle(title string) (err error) LikeVideo(userID string, hash string, like bool) (err error) Subscribe(userID string, username string, subscribe bool) (err error) CheckUserLikes(hash, username string) (liked bool, err error) CheckUserSubscribes(authorID string, username string) (subscribed bool, err error) CommentVideo(userID string, hash, content string) (comment data.Comment, err error) TranscodeListenerWorker() StartTranscode(hash string) ConnectNotificationWS(ctx *context.Context, userID string) (err error) ConnectChatWS(ctx *context.Context, hash string, userID ...string) (err error) NotificationPingWorker(conn *websocket.Conn) ChatReaderWorker(conn *websocket.Conn, hash string, user data.User, live bool) PushNotification(userID string, message data.NotificationOutgoing) BroadcastNotificationSubscriber(authorID string, message data.NotificationOutgoing) }
func NewHandler ¶
type Notification ¶
type Notification struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.