config

package
v3.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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
)
View Source
const (
	ErrGroupSmallLimit       = 20  // max goroutine of a small error group
	ErrGroupMiddleSmallLimit = 50  // max goroutine of a middle small error group
	ErrGroupCommonLimit      = 100 // max goroutine of a common error group
)
View Source
const (
	SleepSec          = 30
	CheckWaitSec      = 5 // check wait sec
	BarRemoveWaiteSec = 1 // progress bar remove wait second
)
View Source
const (
	CheckMsgRate    = 1 // Sampling and statistical message ratio. Max check message is MaxCheckMsg
	MaxCheckMsg     = 1e+8
	MaxCheckLoopNum = 40
)
View Source
const (
	ReceiveMsgTimeThresholdLow    = 1 // Receive msg time threshold low. Unit: s
	ReceiveMsgTimeThresholdMedium = 3 // Receive msg time threshold medium. Unit: s
	ReceiveMsgTimeThresholdHigh   = 5 // Receive msg time threshold high. Unit: s
)
View Source
const (
	ApiParamLength = 1000
)
View Source
const (
	MaxUserNum = 1e+5 // max users
)

Variables

This section is empty.

Functions

func GetConf

func GetConf() sdk_struct.IMConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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