Documentation
¶
Index ¶
- Constants
- func FormatDBTable(table string) string
- type AnalyticsSettings
- type AppConfig
- type AzureCognitiveServicesSpeech
- type AzureSubscriptionKey
- type ChatParticipant
- type ClientInfo
- type CopyrightConf
- type DatabaseInfo
- type EtherpadInfo
- type LivekitInfo
- type NatsInfo
- type NatsInfoRecorder
- type NatsSubjects
- type PrometheusConf
- type RecorderInfo
- type RedisInfo
- type ReplicaDBInfo
- type SharedNotePad
- type UploadFileSettings
- type WebhookConf
Constants ¶
View Source
const ( RecorderBot = "RECORDER_BOT" RtmpBot = "RTMP_BOT" IngressUserIdPrefix = "ingres_" RecorderUserAuthName = "PLUGNMEET_RECORDER_AUTH" MaxPreloadedWhiteboardFileSize int64 = 5 * 1000000 // limit to 5MB // all the time.Sleep() values WaitBeforeTriggerOnAfterRoomEnded = 10 * time.Second WaitBeforeSpeechServicesOnAfterRoomEnded = 3 * time.Second WaitBeforeBreakoutRoomOnAfterRoomStart = 2 * time.Second WaitBeforeAnalyticsStartProcessing = 40 * time.Second MaxDurationWaitBeforeCleanRoomWebhook = 1 * time.Minute DefaultWebhookQueueSize = 200 )
View Source
const ( RequestedRoomNotExist = "requested room does not exist" OnlyAdminCanRequest = "only admin can send this request" NoRoomIdInToken = "no roomId in token" UserNotActive = "user isn't active now" CanNotDemotePresenter = "can't demote current presenter" CanNotChangeAlternativePresenter = "can't change alternative presenter" CanNotPromoteToPresenter = "can't promote to presenter" InvalidConsumerKey = "invalid consumer_key" VerificationFailed = "verification failed" UserIdOrEmailRequired = "either value of user_id or lis_person_contact_email_primary required" )
Variables ¶
This section is empty.
Functions ¶
func FormatDBTable ¶ added in v1.9.3
Types ¶
type AnalyticsSettings ¶ added in v1.5.0
type AppConfig ¶
type AppConfig struct {
RDS *redis.Client
DB *gorm.DB
Logger *logrus.Logger
NatsConn *nats.Conn
JetStream jetstream.JetStream
ClientFiles map[string][]string
RootWorkingDir string
Client ClientInfo `yaml:"client"`
RoomDefaultSettings *utils.RoomDefaultSettings `yaml:"room_default_settings"`
LogSettings logging.LogSettings `yaml:"log_settings"`
LivekitInfo LivekitInfo `yaml:"livekit_info"`
RedisInfo RedisInfo `yaml:"redis_info"`
DatabaseInfo DatabaseInfo `yaml:"database_info"`
UploadFileSettings UploadFileSettings `yaml:"upload_file_settings"`
RecorderInfo RecorderInfo `yaml:"recorder_info"`
AzureCognitiveServicesSpeech AzureCognitiveServicesSpeech `yaml:"azure_cognitive_services_speech"`
AnalyticsSettings *AnalyticsSettings `yaml:"analytics_settings"`
NatsInfo NatsInfo `yaml:"nats_info"`
}
type AzureCognitiveServicesSpeech ¶ added in v1.4.0
type AzureCognitiveServicesSpeech struct {
Enabled bool `yaml:"enabled"`
MaxNumTranLangsAllowSelecting int32 `yaml:"max_num_tran_langs"`
SubscriptionKeys []AzureSubscriptionKey `yaml:"subscription_keys"`
}
type AzureSubscriptionKey ¶ added in v1.4.0
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"`
TokenValidity *time.Duration `yaml:"token_validity"`
WebhookConf WebhookConf `yaml:"webhook_conf"`
PrometheusConf PrometheusConf `yaml:"prometheus"`
ProxyHeader string `yaml:"proxy_header"`
CopyrightConf *CopyrightConf `yaml:"copyright_conf"`
BBBJoinHost *string `yaml:"bbb_join_host"`
}
type CopyrightConf ¶ added in v1.6.0
type DatabaseInfo ¶ added in v1.7.1
type DatabaseInfo struct {
DriverName string `yaml:"driver_name"`
Host string `yaml:"host"`
Port int32 `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
DBName string `yaml:"db"`
Prefix string `yaml:"prefix"`
Charset *string `yaml:"charset"`
Loc *string `yaml:"loc"`
ConnMaxLifetime *time.Duration `yaml:"conn_max_lifetime"`
MaxOpenConns *int `yaml:"max_open_conns"`
Replicas []ReplicaDBInfo `yaml:"replicas"`
}
type EtherpadInfo ¶
type LivekitInfo ¶
type NatsInfo ¶ added in v1.7.1
type NatsInfo struct {
NatsUrls []string `yaml:"nats_urls"`
NatsWSUrls []string `yaml:"nats_ws_urls"`
Account string `yaml:"account"`
User string `yaml:"user"`
Password string `yaml:"password"`
Nkey *string `yaml:"nkey"`
AuthCalloutIssuerPrivate string `yaml:"auth_callout_issuer_private"`
AuthCalloutXkeyPrivate *string `yaml:"auth_callout_xkey_private"`
NumReplicas int `yaml:"num_replicas"`
Subjects NatsSubjects `yaml:"subjects"`
Recorder NatsInfoRecorder `yaml:"recorder"`
}
type NatsInfoRecorder ¶ added in v1.7.1
type NatsSubjects ¶ added in v1.7.1
type NatsSubjects struct {
SystemApiWorker string `yaml:"system_api_worker"`
SystemJsWorker string `yaml:"system_js_worker"`
SystemPublic string `yaml:"system_public"`
SystemPrivate string `yaml:"system_private"`
Chat string `yaml:"chat"`
Whiteboard string `yaml:"whiteboard"`
DataChannel string `yaml:"data_channel"`
}
type PrometheusConf ¶
type RecorderInfo ¶
type RecorderInfo struct {
RecordingFilesPath string `yaml:"recording_files_path"`
TokenValidity time.Duration `yaml:"token_validity"`
EnableDelRecordingBackup bool `yaml:"enable_del_recording_backup"`
DelRecordingBackupPath string `yaml:"del_recording_backup_path"`
DelRecordingBackupDuration time.Duration `yaml:"del_recording_backup_duration"`
}
type RedisInfo ¶
type RedisInfo struct {
Host string `yaml:"host"`
Username string `yaml:"username"`
Password string `yaml:"password"`
DBName int `yaml:"db"`
UseTLS bool `yaml:"use_tls"`
MasterName string `yaml:"sentinel_master_name"`
SentinelUsername string `yaml:"sentinel_username"`
SentinelPassword string `yaml:"sentinel_password"`
SentinelAddresses []string `yaml:"sentinel_addresses"`
}
type ReplicaDBInfo ¶ added in v1.9.3
type ReplicaDBInfo struct {
Host string `yaml:"host"`
Port int32 `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
ReplicaDBInfo holds connection details for a read replica database.
type SharedNotePad ¶
type SharedNotePad struct {
}
type UploadFileSettings ¶
type WebhookConf ¶
Click to show internal directories.
Click to hide internal directories.