forked from openimsdk/openim-sdk-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
53 lines (39 loc) · 1.21 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package test
import (
"sync"
"github.com/erbaner/be-core/pkg/constant"
)
var LogLevel uint32 = 6
var PlatformID = int32(1)
var LogName = ""
var ReliabilityUserA = 1234567
var ReliabilityUserB = 1234567
var (
TESTIP = "121.5.182.23"
//TESTIP = "121.37.25.71"
//TESTIP = "open-im-test.rentsoft.cn"
APIADDR = "http://" + TESTIP + ":10002"
WSADDR = "ws://" + TESTIP + ":10001"
REGISTERADDR = APIADDR + "/auth/user_register"
TOKENADDR = APIADDR + "/auth/user_token"
SECRET = "tuoyuntuoyun"
SENDINTERVAL = 20
GETSELFUSERINFO = APIADDR + "/user/get_self_user_info"
CREATEGROUP = APIADDR + constant.CreateGroupRouter
ACCOUNTCHECK = APIADDR + "/user/account_check"
GETGROUPSINFOROUTER = APIADDR + constant.GetGroupsInfoRouter
)
var coreMgrLock sync.RWMutex
var allLoginMgr map[int]*CoreNode
var allLoginMgrtmp []*CoreNode
var userLock sync.RWMutex
var allUserID []string
var allToken []string
// var allWs []*interaction.Ws
var sendSuccessCount, sendFailedCount int
var sendSuccessLock sync.RWMutex
var sendFailedLock sync.RWMutex
var msgNumInOneClient = 0
// var Msgwg sync.WaitGroup
var sendMsgClient = 0
var MaxNumGoroutine = 100000