Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct { ServerAddrTable map[string]*Server ClusterAddrTable map[string]*hashset.Set /* serverrName */ }
ClusterInfo cluster info
type DataVersion ¶
type DataVersion struct {
// contains filtered or unexported fields
}
DataVersion DataVersion
func (*DataVersion) NextVersion ¶
func (dv *DataVersion) NextVersion()
NextVersion atomic set next version
type LiveServer ¶
type LiveServer struct { LastUpdateTimestamp int64 HaServerAddr string DataVersion *DataVersion Conn gnet.Conn }
LiveServer online server
func NewLiveServer ¶
func NewLiveServer(lastUpdateTimestamp int64, haServerAddr string, dataVersion *DataVersion, conn gnet.Conn) *LiveServer
NewLiveServer new or not new?
Click to show internal directories.
Click to hide internal directories.