Documentation ¶
Index ¶
- Constants
- Variables
- func AdminAddUser(ctx *gin.Context)
- func AdminAddVendorBackend(ctx *gin.Context)
- func AdminApprovePendingRoom(ctx *gin.Context)
- func AdminApprovePendingUser(ctx *gin.Context)
- func AdminBanRoom(ctx *gin.Context)
- func AdminBanUser(ctx *gin.Context)
- func AdminDeleteRoom(ctx *gin.Context)
- func AdminDeleteUser(ctx *gin.Context)
- func AdminDeleteVendorBackends(ctx *gin.Context)
- func AdminDisableVendorBackends(ctx *gin.Context)
- func AdminEditSettings(ctx *gin.Context)
- func AdminEnableVendorBackends(ctx *gin.Context)
- func AdminGetRoomMembers(ctx *gin.Context)
- func AdminGetRooms(ctx *gin.Context)
- func AdminGetUserJoinedRooms(ctx *gin.Context)
- func AdminGetUserRooms(ctx *gin.Context)
- func AdminGetUsers(ctx *gin.Context)
- func AdminGetVendorBackends(ctx *gin.Context)
- func AdminReconnectVendorBackends(ctx *gin.Context)
- func AdminRoomPassword(ctx *gin.Context)
- func AdminSendTestEmail(ctx *gin.Context)
- func AdminSettings(ctx *gin.Context)
- func AdminUnBanRoom(ctx *gin.Context)
- func AdminUnBanUser(ctx *gin.Context)
- func AdminUpdateVendorBackends(ctx *gin.Context)
- func AdminUserPassword(ctx *gin.Context)
- func AdminUsername(ctx *gin.Context)
- func ChangeCurrentMovie(ctx *gin.Context)
- func CheckRoom(ctx *gin.Context)
- func CheckRoomPassword(ctx *gin.Context)
- func ClearMovies(ctx *gin.Context)
- func CreateRoom(ctx *gin.Context)
- func CurrentMovie(ctx *gin.Context)
- func DelMovie(ctx *gin.Context)
- func DeleteRoom(ctx *gin.Context)
- func EditMovie(ctx *gin.Context)
- func GetPageItems[T any](ctx *gin.Context, items []T) ([]T, error)
- func GetUserBindEmailStep1Captcha(ctx *gin.Context)
- func GetUserRetrievePasswordEmailStep1Captcha(ctx *gin.Context)
- func GetUserSignupEmailStep1Captcha(ctx *gin.Context)
- func Init(e *gin.Engine)
- func JoinFlvLive(ctx *gin.Context)
- func JoinHlsLive(ctx *gin.Context)
- func LoginRoom(ctx *gin.Context)
- func LoginUser(ctx *gin.Context)
- func LogoutUser(ctx *gin.Context)
- func Me(ctx *gin.Context)
- func Movies(ctx *gin.Context)
- func NewPublishKey(ctx *gin.Context)
- func NewWSMessageHandler(u *op.User, r *op.Room, l *log.Entry) func(c *websocket.Conn) error
- func NewWebSocketHandler(wss *utils.WebSocket) gin.HandlerFunc
- func ProxyMovie(ctx *gin.Context)
- func PushMovie(ctx *gin.Context)
- func PushMovies(ctx *gin.Context)
- func RoomAdminApproveMember(ctx *gin.Context)
- func RoomAdminBanMember(ctx *gin.Context)
- func RoomAdminDeleteMember(ctx *gin.Context)
- func RoomAdminMembers(ctx *gin.Context)
- func RoomAdminUnbanMember(ctx *gin.Context)
- func RoomHotList(ctx *gin.Context)
- func RoomInfo(ctx *gin.Context)
- func RoomList(ctx *gin.Context)
- func RoomMe(ctx *gin.Context)
- func RoomMembers(ctx *gin.Context)
- func RoomPiblicSettings(ctx *gin.Context)
- func RoomSetAdmin(ctx *gin.Context)
- func RoomSetAdminPermissions(ctx *gin.Context)
- func RoomSetMember(ctx *gin.Context)
- func RoomSetMemberPermissions(ctx *gin.Context)
- func RoomSetting(ctx *gin.Context)
- func RootAddAdmin(ctx *gin.Context)
- func RootDeleteAdmin(ctx *gin.Context)
- func SendUserBindEmailCaptcha(ctx *gin.Context)
- func SendUserRetrievePasswordEmailCaptcha(ctx *gin.Context)
- func SendUserSignupEmailCaptcha(ctx *gin.Context)
- func ServeHlsLive(ctx *gin.Context)
- func SetRoomPassword(ctx *gin.Context)
- func SetRoomSetting(ctx *gin.Context)
- func SetUserPassword(ctx *gin.Context)
- func SetUsername(ctx *gin.Context)
- func Settings(ctx *gin.Context)
- func SwapMovie(ctx *gin.Context)
- func UserBindEmail(ctx *gin.Context)
- func UserBindProviders(ctx *gin.Context)
- func UserCheckJoinedRoom(ctx *gin.Context)
- func UserDeleteRoom(ctx *gin.Context)
- func UserJoinedRooms(ctx *gin.Context)
- func UserRetrievePasswordEmail(ctx *gin.Context)
- func UserRooms(ctx *gin.Context)
- func UserSignupEmail(ctx *gin.Context)
- func UserSignupPassword(ctx *gin.Context)
- func UserUnbindEmail(ctx *gin.Context)
- type FormatErrNotSupportFileType
Constants ¶
View Source
const (
MaxChatMessageLength = 4096
)
Variables ¶
View Source
var ( ErrAuthFailed = errors.New("auth failed") ErrAuthExpired = errors.New("auth expired") ErrRoomAlready = errors.New("room already exists") )
View Source
var HOST = settings.NewStringSetting( "host", "", model.SettingGroupServer, settings.WithValidatorString(func(s string) error { if s == "" { return nil } if !strings.HasPrefix(s, "http://") && !strings.HasPrefix(s, "https://") { return errors.New("host must start with http:// or https://") } _, err := url.Parse(s) return err }), )
Functions ¶
func AdminAddUser ¶ added in v0.7.0
func AdminAddVendorBackend ¶ added in v0.3.1
func AdminApprovePendingRoom ¶ added in v0.7.0
func AdminApprovePendingUser ¶ added in v0.7.0
func AdminBanRoom ¶ added in v0.7.0
func AdminBanUser ¶ added in v0.7.0
func AdminDeleteRoom ¶ added in v0.5.2
func AdminDeleteUser ¶ added in v0.7.0
func AdminDeleteVendorBackends ¶ added in v0.3.1
func AdminDisableVendorBackends ¶ added in v0.3.1
func AdminEditSettings ¶ added in v0.7.0
func AdminEnableVendorBackends ¶ added in v0.3.1
func AdminGetRoomMembers ¶ added in v0.5.0
func AdminGetRooms ¶ added in v0.7.0
func AdminGetUserJoinedRooms ¶ added in v0.7.0
func AdminGetUserRooms ¶ added in v0.7.0
func AdminGetUsers ¶ added in v0.7.0
func AdminGetVendorBackends ¶ added in v0.3.1
func AdminReconnectVendorBackends ¶ added in v0.3.1
func AdminRoomPassword ¶ added in v0.3.0
func AdminSendTestEmail ¶ added in v0.7.0
func AdminSettings ¶ added in v0.3.0
func AdminUnBanRoom ¶ added in v0.7.0
func AdminUnBanUser ¶ added in v0.7.0
func AdminUpdateVendorBackends ¶ added in v0.3.1
func AdminUserPassword ¶ added in v0.3.0
func AdminUsername ¶ added in v0.3.0
func ChangeCurrentMovie ¶
func CheckRoomPassword ¶ added in v0.7.0
func ClearMovies ¶
func CreateRoom ¶ added in v0.3.0
func CurrentMovie ¶
func DeleteRoom ¶
func GetUserBindEmailStep1Captcha ¶ added in v0.4.5
func GetUserRetrievePasswordEmailStep1Captcha ¶ added in v0.4.5
func GetUserSignupEmailStep1Captcha ¶ added in v0.4.5
func JoinFlvLive ¶ added in v0.3.5
func JoinHlsLive ¶ added in v0.3.5
func LogoutUser ¶ added in v0.3.0
func NewPublishKey ¶
func NewWSMessageHandler ¶
func NewWebSocketHandler ¶
func NewWebSocketHandler(wss *utils.WebSocket) gin.HandlerFunc
func ProxyMovie ¶
func PushMovies ¶ added in v0.3.0
func RoomAdminApproveMember ¶ added in v0.5.0
func RoomAdminBanMember ¶ added in v0.5.0
func RoomAdminDeleteMember ¶ added in v0.7.0
func RoomAdminMembers ¶ added in v0.5.0
func RoomAdminUnbanMember ¶ added in v0.5.0
func RoomHotList ¶ added in v0.3.0
func RoomMembers ¶ added in v0.5.0
func RoomPiblicSettings ¶ added in v0.5.0
func RoomSetAdmin ¶ added in v0.5.0
func RoomSetAdminPermissions ¶ added in v0.5.0
func RoomSetMember ¶ added in v0.5.0
func RoomSetMemberPermissions ¶ added in v0.5.0
func RoomSetting ¶ added in v0.3.0
func RootAddAdmin ¶ added in v0.7.0
func RootDeleteAdmin ¶ added in v0.7.0
func SendUserBindEmailCaptcha ¶ added in v0.4.5
func SendUserRetrievePasswordEmailCaptcha ¶ added in v0.4.5
func SendUserSignupEmailCaptcha ¶ added in v0.4.5
func ServeHlsLive ¶ added in v0.3.5
func SetRoomPassword ¶ added in v0.3.0
func SetRoomSetting ¶ added in v0.3.0
func SetUserPassword ¶
func SetUsername ¶ added in v0.3.0
func UserBindEmail ¶ added in v0.4.5
func UserBindProviders ¶ added in v0.3.0
func UserCheckJoinedRoom ¶ added in v0.7.0
func UserDeleteRoom ¶ added in v0.5.2
func UserJoinedRooms ¶ added in v0.7.0
func UserRetrievePasswordEmail ¶ added in v0.4.5
func UserSignupEmail ¶ added in v0.4.5
func UserSignupPassword ¶ added in v0.7.0
func UserUnbindEmail ¶ added in v0.4.5
Types ¶
type FormatErrNotSupportFileType ¶
type FormatErrNotSupportFileType string
func (FormatErrNotSupportFileType) Error ¶
func (e FormatErrNotSupportFileType) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.