package lib import "time" type RawReq struct { ID int64 Req []byte } type RawResp struct { ID int64 Resp []byte Err error Elapse time.Duration } type SceneInfo struct { Name string Desc string } const ( //默认的机器人数量 DefaultRobotNum int = 10 ) //机器人状态 const ( // STATUS_ORIGINAL 代表原始。 STATUS_ORIGINAL uint32 = 0 // STATUS_STARTING 代表正在启动。 STATUS_STARTING uint32 = 1 // STATUS_STARTED 代表已启动。 STATUS_STARTED uint32 = 2 // STATUS_STOPPING 代表正在停止。 STATUS_STOPPING uint32 = 3 // STATUS_STOPPED 代表已停止。 STATUS_STOPPED uint32 = 4 ) // 场景状态 const ( // 启用 STATUS_ENABLE uint32 = 1 // 禁用 STATUS_DISENABLE uint32 = 0 )