package consts

import "time"

const (
	DeployGroupWx = 1 // 微信
	DeployGroupDy = 2 // 抖音
)

const (
	DeployRunSyncTime       = 3 * time.Second // 3秒同步一次状态
	INTTRUE           int32 = 1               //启动mproom
)

const (
	DeployRunStart   int32 = 1 // 运行中
	DeployRunStop    int32 = 2 // 已退出
	DeployRunTimeout int32 = 3 // 超时
	DeployRunNoFound int32 = 4 // 未找到容器
)

const (
	DeployStatusWait    int32 = 1 // 等待部署
	DeployStatusIng     int32 = 2 // 部署中
	DeployStatusSuc     int32 = 3 // 部署成功
	DeployStatusErr     int32 = 4 // 部署失败
	DeployStatusTimeout int32 = 5 // 部署超时

)

// 部署类型
const (
	DeployTypeGrave  = "grave"        // 游戏服
	DeployTypeLogin  = "login"        // 登录服
	DeployTypeMatch  = "chaptermatch" // 网关服
	DeployTypeSync   = "chaptersync"  // 网关服
	DeployTypeMpRoom = "mproom"       // 网关服
)

// 程序包
const (
	DeployPackJsonConvert  = "jsonConvert"
	DeployPackLogin        = "login"
	DeployPackGate         = "gate"
	DeployPackStore        = "store"
	DeployPackWorld        = "world"
	DeployPackArchive      = "archive"
	DeployPackMPRoom       = "mproom"
	DeployPackChapterd     = "chapterd"
	DeployPackChapter      = "chapter"
	DeployPackChapterMatch = "chapterMatch"
	DeployPackChapterSync  = "chapterSync"
)

var (
	// 服务类型
	DeployTypeSlice = []string{DeployTypeGrave, DeployTypeLogin, DeployTypeMatch, DeployTypeSync, DeployTypeMpRoom} // , DeployTypeGate

	//程序包组
	// DeployPacksGroup = []string{DeployPackJsonConvert, DeployPackStore, DeployPackWorld, DeployPackArchive, DeployPackChapterd, DeployPackChapter, DeployPackMPRoom, DeployPackGate}

	// 服务组
	DeployServLoginGroup = []string{DeployPackJsonConvert, DeployPackLogin}
	DeployServGraveGroup = []string{DeployPackJsonConvert, DeployPackStore, DeployPackWorld, DeployPackArchive,
		DeployPackChapter, DeployPackMPRoom, DeployPackGate, DeployPackChapterMatch, DeployPackChapterSync}
	// DeployServGraveGroupNoMPRoom = []string{DeployPackJsonConvert, DeployPackStore, DeployPackWorld, DeployPackArchive, DeployPackChapterd, DeployPackGate}
	// DeployServGateGroup          = []string{DeployPackJsonConvert, DeployPackGate}
)

//#processLst=("jsonConvert" "archive" "chapter" "chapterd" "gate" "store" "world")  # jsonConvert,archive,chapter,chapterd,gate,store,world
//#serverList=("jsonConvert" "archive" "chapterd" "gate" "store" "world") # jsonConvert,archive,chapterd,gate,store,world

// 部署推送类型
const (
	DeployPublishTypeVersion = 1 // 版本发布
	DeployPublishTypeStop    = 2 // 停止服务
)

// 是否推送统计通知
const (
	DeployNotifyNo = 1 // 未通知
	DeployNotifyOk = 2 // 已通知
)
