Documentation
¶
Index ¶
- Variables
- type CloseShardRequest
- type CreateTableOnShardRequest
- type Dispatch
- type DispatchImpl
- func (d *DispatchImpl) CloseShard(ctx context.Context, addr string, request *CloseShardRequest) error
- func (d *DispatchImpl) CreateTableOnShard(ctx context.Context, addr string, request *CreateTableOnShardRequest) error
- func (d *DispatchImpl) DropTableOnShard(ctx context.Context, addr string, request *DropTableOnShardRequest) error
- func (d *DispatchImpl) OpenShard(ctx context.Context, addr string, request *OpenShardRequest) error
- type DropTableOnShardRequest
- type OpenShardRequest
- type UpdateShardInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDispatch = coderr.NewCodeError(coderr.Internal, "event dispatch failed")
Functions ¶
This section is empty.
Types ¶
type CloseShardRequest ¶
type CloseShardRequest struct {
ShardID uint32
}
type Dispatch ¶
type Dispatch interface {
OpenShard(context context.Context, address string, request *OpenShardRequest) error
CloseShard(context context.Context, address string, request *CloseShardRequest) error
CreateTableOnShard(context context.Context, address string, request *CreateTableOnShardRequest) error
DropTableOnShard(context context.Context, address string, request *DropTableOnShardRequest) error
}
type DispatchImpl ¶
type DispatchImpl struct {
// contains filtered or unexported fields
}
func NewDispatchImpl ¶
func NewDispatchImpl() *DispatchImpl
func (*DispatchImpl) CloseShard ¶
func (d *DispatchImpl) CloseShard(ctx context.Context, addr string, request *CloseShardRequest) error
func (*DispatchImpl) CreateTableOnShard ¶
func (d *DispatchImpl) CreateTableOnShard(ctx context.Context, addr string, request *CreateTableOnShardRequest) error
func (*DispatchImpl) DropTableOnShard ¶
func (d *DispatchImpl) DropTableOnShard(ctx context.Context, addr string, request *DropTableOnShardRequest) error
func (*DispatchImpl) OpenShard ¶
func (d *DispatchImpl) OpenShard(ctx context.Context, addr string, request *OpenShardRequest) error
type DropTableOnShardRequest ¶
type DropTableOnShardRequest struct {
UpdateShardInfo *UpdateShardInfo
TableInfo *cluster.TableInfo
}
type OpenShardRequest ¶
type UpdateShardInfo ¶
Click to show internal directories.
Click to hide internal directories.