Documentation ¶
Index ¶
- Constants
- func SetAppConfig(a *AppConfig)
- func ValidateId(fl validator.FieldLevel) bool
- type AppConfig
- func (a *AppConfig) AddChatUser(roomId string, participant ChatParticipant)
- func (a *AppConfig) AddRoomWithDurationMap(roomId string, r RoomWithDuration)
- func (a *AppConfig) DeleteChatRoom(roomId string)
- func (a *AppConfig) DeleteRoomFromRoomWithDurationMap(roomId string)
- func (a *AppConfig) DoValidateReq(r interface{}) []*ErrorResponse
- func (a *AppConfig) FormatDBTable(table string) string
- func (a *AppConfig) GetChatParticipants(roomId string) map[string]ChatParticipant
- func (a *AppConfig) GetRoomsWithDurationMap() map[string]RoomWithDuration
- func (a *AppConfig) IncreaseRoomDuration(roomId string, duration uint64) uint64
- func (a *AppConfig) RemoveChatParticipant(roomId, userId string)
- type ChatParticipant
- type ClientInfo
- type ErrorResponse
- type EtherpadInfo
- type LivekitInfo
- type LogSettings
- type PrometheusConf
- type RecorderInfo
- type RoomWithDuration
- type SharedNotePad
- type UploadFileSettings
- type WebhookConf
Constants ¶
View Source
const ( RECORDER_BOT = "RECORDER_BOT" RTMP_BOT = "RTMP_BOT" )
Variables ¶
This section is empty.
Functions ¶
func SetAppConfig ¶
func SetAppConfig(a *AppConfig)
func ValidateId ¶
func ValidateId(fl validator.FieldLevel) bool
Types ¶
type AppConfig ¶
type AppConfig struct { DB *sql.DB RDS *redis.Client sync.RWMutex ClientFiles map[string][]string Client ClientInfo `yaml:"client"` RoomDefaultSettings *utils.RoomDefaultSettings `yaml:"room_default_settings"` LogSettings LogSettings `yaml:"log_settings"` LivekitInfo LivekitInfo `yaml:"livekit_info"` RedisInfo *factory.RedisInfo `yaml:"redis_info"` MySqlInfo *factory.MySqlInfo `yaml:"mysql_info"` UploadFileSettings UploadFileSettings `yaml:"upload_file_settings"` RecorderInfo RecorderInfo `yaml:"recorder_info"` // contains filtered or unexported fields }
var AppCnf *AppConfig
func (*AppConfig) AddChatUser ¶
func (a *AppConfig) AddChatUser(roomId string, participant ChatParticipant)
func (*AppConfig) AddRoomWithDurationMap ¶
func (a *AppConfig) AddRoomWithDurationMap(roomId string, r RoomWithDuration)
func (*AppConfig) DeleteChatRoom ¶
func (*AppConfig) DeleteRoomFromRoomWithDurationMap ¶
func (*AppConfig) DoValidateReq ¶
func (a *AppConfig) DoValidateReq(r interface{}) []*ErrorResponse
func (*AppConfig) FormatDBTable ¶
func (*AppConfig) GetChatParticipants ¶
func (a *AppConfig) GetChatParticipants(roomId string) map[string]ChatParticipant
func (*AppConfig) GetRoomsWithDurationMap ¶
func (a *AppConfig) GetRoomsWithDurationMap() map[string]RoomWithDuration
func (*AppConfig) IncreaseRoomDuration ¶
func (*AppConfig) RemoveChatParticipant ¶
type ChatParticipant ¶
type ClientInfo ¶
type ClientInfo struct { Port int `yaml:"port"` Debug bool `yaml:"debug"` Path string `yaml:"path"` ApiKey string `yaml:"api_key"` Secret string `yaml:"secret"` WebhookConf WebhookConf `yaml:"webhook_conf"` PrometheusConf PrometheusConf `yaml:"prometheus"` ProxyHeader string `yaml:"proxy_header"` CopyrightConf *plugnmeet.CopyrightConf `yaml:"copyright_conf"` }
type ErrorResponse ¶
type EtherpadInfo ¶
type LivekitInfo ¶
type LogSettings ¶
type PrometheusConf ¶
type RecorderInfo ¶
type RoomWithDuration ¶
type SharedNotePad ¶
type SharedNotePad struct {}
type UploadFileSettings ¶
type WebhookConf ¶
Click to show internal directories.
Click to hide internal directories.