Documentation ¶
Index ¶
- Constants
- func GetLogger() *logrus.Logger
- func New(a *AppConfig)
- type AnalyticsSettings
- type AppConfig
- type AzureCognitiveServicesSpeech
- type AzureSubscriptionKey
- type ChatParticipant
- type ClientInfo
- type CopyrightConf
- type DatabaseInfo
- type ErrorResponse
- type EtherpadInfo
- type LivekitInfo
- type LogSettings
- type NatsInfo
- type NatsInfoRecorder
- type NatsSubjects
- type PrometheusConf
- type RecorderInfo
- type RedisInfo
- type SharedNotePad
- type UploadFileSettings
- type WebhookConf
Constants ¶
View Source
const ( RecorderBot = "RECORDER_BOT" RtmpBot = "RTMP_BOT" IngressUserIdPrefix = "ingres_" 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 WaitDurationIfRoomCreationLocked = 1 * time.Second 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 ¶
Types ¶
type AnalyticsSettings ¶ added in v1.5.0
type AppConfig ¶
type AppConfig struct { RDS *redis.Client DB *gorm.DB NatsConn *nats.Conn JetStream jetstream.JetStream ClientFiles map[string][]string RootWorkingDir string Client ClientInfo `yaml:"client"` RoomDefaultSettings *utils.RoomDefaultSettings `yaml:"room_default_settings"` LogSettings 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"` }
func (*AppConfig) FormatDBTable ¶
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"` }
type ErrorResponse ¶
type EtherpadInfo ¶
type LivekitInfo ¶
type LogSettings ¶
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"` AuthCalloutIssuerPrivate string `yaml:"auth_callout_issuer_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 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 SharedNotePad ¶
type SharedNotePad struct {}
type UploadFileSettings ¶
type WebhookConf ¶
Click to show internal directories.
Click to hide internal directories.