- Added CallHandler and related services for managing call sessions and participants. - Enhanced WSHandler to support call signaling, including invite, answer, reject, and end functionalities. - Updated router to include call-related routes for history and ICE server retrieval. - Introduced WebRTC configuration in the application settings for call management. - Refactored wire generation to include CallService and CallRepository for improved dependency injection.
14 lines
358 B
Go
14 lines
358 B
Go
package config
|
|
|
|
// WebRTCConfig WebRTC ICE 服务器配置
|
|
type WebRTCConfig struct {
|
|
ICEServers []ICEServerConfig `mapstructure:"ice_servers"`
|
|
}
|
|
|
|
// ICEServerConfig ICE 服务器配置
|
|
type ICEServerConfig struct {
|
|
URLs []string `mapstructure:"urls"`
|
|
Username string `mapstructure:"username"`
|
|
Credential string `mapstructure:"credential"`
|
|
}
|