forked from openimsdk/openim-sdk-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
31 lines (28 loc) · 789 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package config
import (
"github.com/openimsdk/openim-sdk-core/v3/sdk_struct"
"github.com/openimsdk/protocol/constant"
)
const (
TestIP = "127.0.0.1"
APIAddr = "http://" + TestIP + ":10002"
WsAddr = "ws://" + TestIP + ":10001"
AdminUserID = "imAdmin"
Secret = "openIM123"
PlatformID = constant.AndroidPlatformID
LogLevel = 3
DataDir = "./data/"
LogFilePath = "./logs/"
IsLogStandardOutput = false
)
func GetConf() sdk_struct.IMConfig {
var cf sdk_struct.IMConfig
cf.ApiAddr = APIAddr
cf.WsAddr = WsAddr
cf.DataDir = DataDir
cf.LogLevel = LogLevel
cf.PlatformID = int32(PlatformID)
cf.LogFilePath = LogFilePath
cf.IsLogStandardOutput = IsLogStandardOutput
return cf
}