package conf

import (
	"log"
	"time"
)

var (
	// log conf
	//LogFlag = log.LstdFlags
	LogFlag = log.Lshortfile //日志中输出文件名和行号

	// gate conf
	PendingWriteNum        = 2000
	MaxMsgLen       uint32 = 4096
	HTTPTimeout            = 10 * time.Second
	LenMsgLen              = 2    // 2字节
	LittleEndian           = true // true 表示使用小端序，false 表示使用大端序。

	// skeleton conf
	GoLen              = 10000
	TimerDispatcherLen = 10000
	AsynCallLen        = 10000
	ChanRPCLen         = 10000

	// timeout
	HeartbeatCheckTime = 10 * time.Second // 心跳检测的时间间隔（秒）
	HeartbeatTimeout   = 60 * time.Second // 超时时间（秒）

	// mongo conf
	MongoHost    = "192.168.12.166"
	MongoPort    = 27017
	MongoUser    = ""
	MongoPwd     = ""
	MongoPoolNum = 10 //连接池数量
)
