Documentation ¶
Index ¶
- type MasterCliServer
- func (m *MasterCliServer) Info(ctx context.Context, request *service.InfoRequest) (*service.InfoResponse, error)
- func (m *MasterCliServer) Join(ctx context.Context, request *service.JoinRequest) (*service.JoinResponse, error)
- func (m *MasterCliServer) Leave(ctx context.Context, request *service.LeaveRequest) (*service.LeaveResponse, error)
- func (m *MasterCliServer) List(ctx context.Context, request *service.ListRequest) (*service.ListResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterCliServer ¶
type MasterCliServer struct { service.UnimplementedCtiServiceServer // contains filtered or unexported fields }
func NewMasterCliServer ¶
func NewMasterCliServer(node *raft.Node) *MasterCliServer
func (*MasterCliServer) Info ¶
func (m *MasterCliServer) Info(ctx context.Context, request *service.InfoRequest) (*service.InfoResponse, error)
Info 获取节点信息
func (*MasterCliServer) Join ¶
func (m *MasterCliServer) Join(ctx context.Context, request *service.JoinRequest) (*service.JoinResponse, error)
Join 加入集群操作
func (*MasterCliServer) Leave ¶
func (m *MasterCliServer) Leave(ctx context.Context, request *service.LeaveRequest) (*service.LeaveResponse, error)
Leave 将节点移除
func (*MasterCliServer) List ¶
func (m *MasterCliServer) List(ctx context.Context, request *service.ListRequest) (*service.ListResponse, error)
List 获取节点列表
Click to show internal directories.
Click to hide internal directories.