Documentation
¶
Index ¶
- type SchemaGetter
- func (_m *SchemaGetter) ClusterHealthScore() int
- func (_m *SchemaGetter) CopyShardingState(class string) *sharding.State
- func (_m *SchemaGetter) GetSchemaSkipAuth() entitiesschema.Schema
- func (_m *SchemaGetter) NodeName() string
- func (_m *SchemaGetter) Nodes() []string
- func (_m *SchemaGetter) OptimisticTenantStatus(ctx context.Context, class string, tenants string) (map[string]string, error)
- func (_m *SchemaGetter) ReadOnlyClass(_a0 string) *models.Class
- func (_m *SchemaGetter) ResolveParentNodes(_a0 string, _a1 string) (map[string]string, error)
- func (_m *SchemaGetter) ShardFromUUID(class string, uuid []byte) string
- func (_m *SchemaGetter) ShardOwner(class string, shard string) (string, error)
- func (_m *SchemaGetter) ShardReplicas(class string, shard string) ([]string, error)
- func (_m *SchemaGetter) Statistics() map[string]interface{}
- func (_m *SchemaGetter) TenantsShards(ctx context.Context, class string, tenants ...string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchemaGetter ¶
SchemaGetter is an autogenerated mock type for the SchemaGetter type
func NewSchemaGetter ¶
func NewSchemaGetter(t interface { mock.TestingT Cleanup(func()) }, ) *SchemaGetter
NewSchemaGetter creates a new instance of SchemaGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SchemaGetter) ClusterHealthScore ¶
func (_m *SchemaGetter) ClusterHealthScore() int
ClusterHealthScore provides a mock function with given fields:
func (*SchemaGetter) CopyShardingState ¶
func (_m *SchemaGetter) CopyShardingState(class string) *sharding.State
CopyShardingState provides a mock function with given fields: class
func (*SchemaGetter) GetSchemaSkipAuth ¶
func (_m *SchemaGetter) GetSchemaSkipAuth() entitiesschema.Schema
GetSchemaSkipAuth provides a mock function with given fields:
func (*SchemaGetter) NodeName ¶
func (_m *SchemaGetter) NodeName() string
NodeName provides a mock function with given fields:
func (*SchemaGetter) Nodes ¶
func (_m *SchemaGetter) Nodes() []string
Nodes provides a mock function with given fields:
func (*SchemaGetter) OptimisticTenantStatus ¶
func (_m *SchemaGetter) OptimisticTenantStatus(ctx context.Context, class string, tenants string) (map[string]string, error)
OptimisticTenantStatus provides a mock function with given fields: ctx, class, tenants
func (*SchemaGetter) ReadOnlyClass ¶
func (_m *SchemaGetter) ReadOnlyClass(_a0 string) *models.Class
ReadOnlyClass provides a mock function with given fields: _a0
func (*SchemaGetter) ResolveParentNodes ¶
ResolveParentNodes provides a mock function with given fields: _a0, _a1
func (*SchemaGetter) ShardFromUUID ¶
func (_m *SchemaGetter) ShardFromUUID(class string, uuid []byte) string
ShardFromUUID provides a mock function with given fields: class, uuid
func (*SchemaGetter) ShardOwner ¶
func (_m *SchemaGetter) ShardOwner(class string, shard string) (string, error)
ShardOwner provides a mock function with given fields: class, shard
func (*SchemaGetter) ShardReplicas ¶
func (_m *SchemaGetter) ShardReplicas(class string, shard string) ([]string, error)
ShardReplicas provides a mock function with given fields: class, shard
func (*SchemaGetter) Statistics ¶
func (_m *SchemaGetter) Statistics() map[string]interface{}
Statistics provides a mock function with given fields:
func (*SchemaGetter) TenantsShards ¶
func (_m *SchemaGetter) TenantsShards(ctx context.Context, class string, tenants ...string) (map[string]string, error)
TenantsShards provides a mock function with given fields: ctx, class, tenants