vars

package
v3.8.3-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommonGroup = "common"
	LargeGroup  = "large"
)
View Source
const (
	GroupNamePrefix = "group_test_"
)
View Source
const (
	UserIDPrefix = "test_v3_u"
)

Variables

View Source
var (
	UserNum              int // user num
	SuperUserNum         int // number of users with all friends
	LargeGroupNum        int // number of large group
	LargeGroupMemberNum  int // number of large group member num
	CommonGroupNum       int // number of common group create by each user
	CommonGroupMemberNum int // number of common group member num
	SingleMessageNum     int // number of single message each user send
	GroupMessageNum      int // number of group message each user send

	ShouldRegister      bool // determine whether register
	ShouldImportFriends bool // determine whether import friends
	ShouldCreateGroup   bool // determine whether create group
	ShouldSendMsg       bool // determine whether send messages

	ShouldCheckGroupNum        bool // determine whether check group num
	ShouldCheckConversationNum bool // determine whether check conversation num
	ShouldCheckMessageNum      bool // determine whether check message num
	ShouldCheckUninsAndReins   bool // determine whether check again after uninstall and reinstall

	LoginRate float64 // number of login user rate
)
View Source
var (
	SendMsgCount     atomic.Int64
	RecvMsgConsuming chan *StatMsg
)
View Source
var (
	UserIDs      []string // all user ids
	SuperUserIDs []string // user ids of users with all friends

	Contexts []context.Context    // users contexts
	Cancels  []context.CancelFunc // users contexts

	LoginUserNum int
	NowLoginNum  atomic.Int64
)
View Source
var (
	FlagMap = map[string]string{
		"TestMode":                   "test",
		"UserNum":                    "u",
		"SuperUserNum":               "su",
		"LargeGroupNum":              "lg",
		"LargeGroupMemberNum":        "lgm",
		"CommonGroupNum":             "cg",
		"CommonGroupMemberNum":       "cgm",
		"SingleMessageNum":           "sm",
		"GroupMessageNum":            "gm",
		"ShouldRegister":             "reg",
		"ShouldImportFriends":        "imf",
		"ShouldCreateGroup":          "crg",
		"ShouldSendMsg":              "sem",
		"ShouldCheckGroupNum":        "ckgn",
		"ShouldCheckConversationNum": "ckcon",
		"ShouldCheckMessageNum":      "ckmsn",
		"ShouldCheckUninsAndReins":   "ckuni",
		"LoginRate":                  "lgr",
	}
)
View Source
var (
	IsLogin = false
)
View Source
var (
	OsStdout = os.Stdout
)

Functions

This section is empty.

Types

type StatMsg added in v3.8.1

type StatMsg struct {
	CostTime    int64
	ReceiveTime int64
	Msg         *sdk_struct.MsgStruct
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL