Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SwitchCacheServerType ¶
func SwitchCacheServerType(types CacheServerType) string
func SwitchSlotType ¶
Types ¶
type CacheServer ¶
type CacheServer struct { ID uint Types CacheServerType TypeName string `json:"-"` IP string //对应的ip地址. }
type CacheServerType ¶
type CacheServerType uint
CacheServer类型.
const ( CACHESERVER_TYPE_NORMAL CacheServerType = 1 //正常状态. CACHESERVER_TYPE_OFFLINE CacheServerType = 2 //离线. CACHESERVER_TYPE_MIGRATE CacheServerType = 3 //迁移. )
Click to show internal directories.
Click to hide internal directories.