Documentation ¶
Index ¶
- Constants
- Variables
- func AddAdmin(ctx *gin.Context)
- func AddUser(ctx *gin.Context)
- func AdminAddVendorBackend(ctx *gin.Context)
- func AdminDeleteRoom(ctx *gin.Context)
- func AdminDeleteVendorBackends(ctx *gin.Context)
- func AdminDisableVendorBackends(ctx *gin.Context)
- func AdminEnableVendorBackends(ctx *gin.Context)
- func AdminGetRoomMembers(ctx *gin.Context)
- func AdminGetVendorBackends(ctx *gin.Context)
- func AdminReconnectVendorBackends(ctx *gin.Context)
- func AdminRoomPassword(ctx *gin.Context)
- func AdminSettings(ctx *gin.Context)
- func AdminUpdateVendorBackends(ctx *gin.Context)
- func AdminUserPassword(ctx *gin.Context)
- func AdminUsername(ctx *gin.Context)
- func ApprovePendingRoom(ctx *gin.Context)
- func ApprovePendingUser(ctx *gin.Context)
- func BanRoom(ctx *gin.Context)
- func BanUser(ctx *gin.Context)
- func ChangeCurrentMovie(ctx *gin.Context)
- func CheckRoom(ctx *gin.Context)
- func ClearMovies(ctx *gin.Context)
- func CreateRoom(ctx *gin.Context)
- func CurrentMovie(ctx *gin.Context)
- func DelMovie(ctx *gin.Context)
- func DeleteAdmin(ctx *gin.Context)
- func DeleteRoom(ctx *gin.Context)
- func DeleteUser(ctx *gin.Context)
- func EditAdminSettings(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 GetUserRooms(ctx *gin.Context)
- func GetUserSignupEmailStep1Captcha(ctx *gin.Context)
- func GuestJoinRoom(ctx *gin.Context)
- func Init(e *gin.Engine)
- func JoinFlvLive(ctx *gin.Context)
- func JoinHlsLive(ctx *gin.Context)
- func JoinLive(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 *logrus.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 RoomAdminMembers(ctx *gin.Context)
- func RoomAdminUnbanMember(ctx *gin.Context)
- func RoomHotList(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 Rooms(ctx *gin.Context)
- func SendTestEmail(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 UnBanRoom(ctx *gin.Context)
- func UnBanUser(ctx *gin.Context)
- func UserBindEmail(ctx *gin.Context)
- func UserBindProviders(ctx *gin.Context)
- func UserDeleteRoom(ctx *gin.Context)
- func UserRetrievePasswordEmail(ctx *gin.Context)
- func UserRooms(ctx *gin.Context)
- func UserSignupEmail(ctx *gin.Context)
- func UserUnbindEmail(ctx *gin.Context)
- func Users(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 AdminAddVendorBackend ¶ added in v0.3.1
func AdminDeleteRoom ¶ added in v0.5.2
func AdminDeleteVendorBackends ¶ added in v0.3.1
func AdminDisableVendorBackends ¶ added in v0.3.1
func AdminEnableVendorBackends ¶ added in v0.3.1
func AdminGetRoomMembers ¶ added in v0.5.0
func AdminGetVendorBackends ¶ added in v0.3.1
func AdminReconnectVendorBackends ¶ added in v0.3.1
func AdminRoomPassword ¶ added in v0.3.0
func AdminSettings ¶ added in v0.3.0
func AdminUpdateVendorBackends ¶ added in v0.3.1
func AdminUserPassword ¶ added in v0.3.0
func AdminUsername ¶ added in v0.3.0
func ApprovePendingRoom ¶ added in v0.3.0
func ApprovePendingUser ¶ added in v0.3.0
func ChangeCurrentMovie ¶
func ClearMovies ¶
func CreateRoom ¶ added in v0.3.0
func CurrentMovie ¶
func DeleteAdmin ¶ added in v0.3.0
func DeleteRoom ¶
func DeleteUser ¶ added in v0.3.0
func EditAdminSettings ¶ added in v0.3.0
func GetUserBindEmailStep1Captcha ¶ added in v0.4.5
func GetUserRetrievePasswordEmailStep1Captcha ¶ added in v0.4.5
func GetUserRooms ¶ added in v0.3.0
func GetUserSignupEmailStep1Captcha ¶ added in v0.4.5
func GuestJoinRoom ¶ added in v0.5.0
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 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 SendTestEmail ¶ added in v0.4.5
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 UserDeleteRoom ¶ added in v0.5.2
func UserRetrievePasswordEmail ¶ added in v0.4.5
func UserSignupEmail ¶ added in v0.4.5
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.