Documentation ¶
Index ¶
Constants ¶
View Source
const (
ColonSeparator = ":"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockDataPartition ¶
type MockDataServer ¶
type MockDataServer struct { TcpAddr string Zone string ClusterID string Total uint64 Used uint64 Available uint64 CreatedPartitionWeights uint64 //dataPartitionCnt*dataPartitionSize RemainWeightsForCreatePartition uint64 //all-useddataPartitionsWieghts CreatedPartitionCnt uint64 MaxWeightsForCreatePartition uint64 // contains filtered or unexported fields }
func NewMockDataServer ¶
func NewMockDataServer(addr string, zoneName string) *MockDataServer
func (*MockDataServer) Start ¶
func (mds *MockDataServer) Start()
type MockMetaPartition ¶
type MockMetaServer ¶
type MockMetaServer struct { NodeID uint64 TcpAddr string ZoneName string sync.RWMutex // contains filtered or unexported fields }
func NewMockMetaServer ¶
func NewMockMetaServer(addr string, zoneName string) *MockMetaServer
func (*MockMetaServer) Start ¶
func (mms *MockMetaServer) Start()
Click to show internal directories.
Click to hide internal directories.