新增ws连接及webrtc连接
This commit is contained in:
@@ -7,28 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type AppConfig struct {
|
||||
Port int `yaml:"port"`
|
||||
Database DatabaseConfig `yaml:"database"`
|
||||
BitBrowser BitBrowserConfig `yaml:"bitBrowser"`
|
||||
AdsPower AdsPowerConfig `yaml:"adsPower"`
|
||||
}
|
||||
|
||||
type DatabaseConfig struct {
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
Host string `yaml:"host"`
|
||||
Port int `yaml:"port"`
|
||||
Database string `yaml:"database"`
|
||||
}
|
||||
|
||||
type BitBrowserConfig struct {
|
||||
ApiUrl string `yaml:"apiUrl"`
|
||||
ApiToken string `yaml:"apiToken"`
|
||||
}
|
||||
|
||||
type AdsPowerConfig struct {
|
||||
ApiUrl string `yaml:"apiUrl"`
|
||||
ApiToken string `yaml:"apiToken"`
|
||||
Port int `yaml:"port"`
|
||||
}
|
||||
|
||||
func LoadConfig() (*AppConfig, error) {
|
||||
|
||||
Reference in New Issue
Block a user