Documentation ¶
Index ¶
- type Assign
- type Server
- func (a *Server) Close(ctx context.Context) error
- func (a *Server) ReBalance(ctx context.Context, in *pb.ReBalanceReq) (*pb.ReBalanceResp, error)
- func (a *Server) RegSection(ctx context.Context, in *pb.RegSectionReq) (*pb.RegSectionResp, error)
- func (a *Server) UnRegSection(ctx context.Context, in *pb.UnRegSectionReq) (*pb.UnRegSectionResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assign ¶
type Assign struct {
// contains filtered or unexported fields
}
Assign watch /segment/{table}/alloc/{addr} and /segment/{table}/section/{tag}/{hashId}. assign 'pending' section to a certain alloc and put routing rule(with 'pending' value). delete --prefix routing key in case alloc crashed. watch routing rule to manage idle section to re-assign.
func (*Assign) RegSection ¶
type Server ¶
type Server struct { *pb.UnimplementedAssignServer // contains filtered or unexported fields }
func NewAssignServer ¶
func (*Server) ReBalance ¶
func (a *Server) ReBalance(ctx context.Context, in *pb.ReBalanceReq) (*pb.ReBalanceResp, error)
func (*Server) RegSection ¶
func (a *Server) RegSection(ctx context.Context, in *pb.RegSectionReq) (*pb.RegSectionResp, error)
func (*Server) UnRegSection ¶
func (a *Server) UnRegSection(ctx context.Context, in *pb.UnRegSectionReq) (*pb.UnRegSectionResp, error)
Click to show internal directories.
Click to hide internal directories.