Documentation ¶
Index ¶
- Constants
- func InitEmptyCluster(ctx context.Context, t *testing.T) *cluster.Cluster
- func InitPrepareCluster(ctx context.Context, t *testing.T) *cluster.Cluster
- func InitStableCluster(ctx context.Context, t *testing.T) *cluster.Cluster
- func NewTestStorage(_ *testing.T) procedure.Storage
- type MockDispatch
- func (m MockDispatch) CloseShard(_ context.Context, _ string, _ eventdispatch.CloseShardRequest) error
- func (m MockDispatch) CloseTableOnShard(_ context.Context, _ string, _ eventdispatch.CloseTableOnShardRequest) error
- func (m MockDispatch) CreateTableOnShard(_ context.Context, _ string, _ eventdispatch.CreateTableOnShardRequest) error
- func (m MockDispatch) DropTableOnShard(_ context.Context, _ string, _ eventdispatch.DropTableOnShardRequest) error
- func (m MockDispatch) OpenShard(_ context.Context, _ string, _ eventdispatch.OpenShardRequest) error
- func (m MockDispatch) OpenTableOnShard(_ context.Context, _ string, _ eventdispatch.OpenTableOnShardRequest) error
- type MockIDAllocator
- type MockStorage
Constants ¶
View Source
const ( TestTableName0 = "table0" TestTableName1 = "table1" TestSchemaName = "TestSchemaName" TestRootPath = "/rootPath" DefaultIDAllocatorStep = 20 ClusterName = "ceresdbCluster1" DefaultNodeCount = 2 DefaultShardTotal = 4 DefaultSchedulerOperator = true DefaultTopologyType = "static" DefaultProcedureExecutingBatchSize = math.MaxUint32 )
Variables ¶
This section is empty.
Functions ¶
func InitEmptyCluster ¶ added in v1.2.0
InitEmptyCluster will return a cluster that has created shards and nodes, but it does not have any shard node mapping.
func InitPrepareCluster ¶ added in v1.2.1
InitPrepareCluster will return a cluster that has created shards and nodes, and cluster state is prepare.
func InitStableCluster ¶ added in v1.2.0
InitStableCluster will return a cluster that has created shards and nodes, and shards have been assigned to existing nodes.
Types ¶
type MockDispatch ¶
type MockDispatch struct{}
func (MockDispatch) CloseShard ¶
func (m MockDispatch) CloseShard(_ context.Context, _ string, _ eventdispatch.CloseShardRequest) error
func (MockDispatch) CloseTableOnShard ¶
func (m MockDispatch) CloseTableOnShard(_ context.Context, _ string, _ eventdispatch.CloseTableOnShardRequest) error
func (MockDispatch) CreateTableOnShard ¶
func (m MockDispatch) CreateTableOnShard(_ context.Context, _ string, _ eventdispatch.CreateTableOnShardRequest) error
func (MockDispatch) DropTableOnShard ¶
func (m MockDispatch) DropTableOnShard(_ context.Context, _ string, _ eventdispatch.DropTableOnShardRequest) error
func (MockDispatch) OpenShard ¶
func (m MockDispatch) OpenShard(_ context.Context, _ string, _ eventdispatch.OpenShardRequest) error
func (MockDispatch) OpenTableOnShard ¶
func (m MockDispatch) OpenTableOnShard(_ context.Context, _ string, _ eventdispatch.OpenTableOnShardRequest) error
type MockIDAllocator ¶ added in v1.2.1
type MockIDAllocator struct{}
type MockStorage ¶
type MockStorage struct{}
func (MockStorage) CreateOrUpdate ¶
func (MockStorage) MarkDeleted ¶
func (m MockStorage) MarkDeleted(_ context.Context, _ uint64) error
Click to show internal directories.
Click to hide internal directories.