Documentation ¶
Overview ¶
Package managepb contains the protobuf-generate code for the cluster management interface
Index ¶
- Variables
- func RegisterClusterManagementServer(s *grpc.Server, srv ClusterManagementServer)
- type AddNodeRequest
- type AddNodeResponse
- func (*AddNodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddNodeResponse) GetError() *Error
- func (x *AddNodeResponse) GetNodeId() string
- func (*AddNodeResponse) ProtoMessage()
- func (x *AddNodeResponse) ProtoReflect() protoreflect.Message
- func (x *AddNodeResponse) Reset()
- func (x *AddNodeResponse) String() string
- type ClusterManagementClient
- type ClusterManagementServer
- type EndpointInfo
- func (*EndpointInfo) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointInfo) GetHostPort() string
- func (x *EndpointInfo) GetName() string
- func (x *EndpointInfo) GetNodeId() string
- func (x *EndpointInfo) GetServiceName() string
- func (*EndpointInfo) ProtoMessage()
- func (x *EndpointInfo) ProtoReflect() protoreflect.Message
- func (x *EndpointInfo) Reset()
- func (x *EndpointInfo) String() string
- type EndpointRequest
- type EndpointResponse
- func (*EndpointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointResponse) GetEndpoints() []*EndpointInfo
- func (x *EndpointResponse) GetError() *Error
- func (x *EndpointResponse) GetNodeId() string
- func (*EndpointResponse) ProtoMessage()
- func (x *EndpointResponse) ProtoReflect() protoreflect.Message
- func (x *EndpointResponse) Reset()
- func (x *EndpointResponse) String() string
- type Error
- type Error_Code
- type GetStatusRequest
- type GetStatusResponse
- func (*GetStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatusResponse) GetClusterName() string
- func (x *GetStatusResponse) GetCreated() int64
- func (x *GetStatusResponse) GetError() *Error
- func (x *GetStatusResponse) GetLeaderNodeId() string
- func (x *GetStatusResponse) GetLocalNodeId() string
- func (x *GetStatusResponse) GetLocalRole() string
- func (x *GetStatusResponse) GetLocalState() string
- func (x *GetStatusResponse) GetRaftNodeCount() int32
- func (x *GetStatusResponse) GetSerfNodeCount() int32
- func (x *GetStatusResponse) GetShardCount() int32
- func (x *GetStatusResponse) GetShardWeight() int32
- func (*GetStatusResponse) ProtoMessage()
- func (x *GetStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatusResponse) Reset()
- func (x *GetStatusResponse) String() string
- type ListEndpointRequest
- type ListEndpointResponse
- func (*ListEndpointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEndpointResponse) GetEndpoints() []*EndpointInfo
- func (x *ListEndpointResponse) GetError() *Error
- func (x *ListEndpointResponse) GetNodeId() string
- func (*ListEndpointResponse) ProtoMessage()
- func (x *ListEndpointResponse) ProtoReflect() protoreflect.Message
- func (x *ListEndpointResponse) Reset()
- func (x *ListEndpointResponse) String() string
- type ListNodesRequest
- type ListNodesResponse
- func (*ListNodesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNodesResponse) GetError() *Error
- func (x *ListNodesResponse) GetLeaderId() string
- func (x *ListNodesResponse) GetNodeId() string
- func (x *ListNodesResponse) GetNodes() []*NodeInfo
- func (*ListNodesResponse) ProtoMessage()
- func (x *ListNodesResponse) ProtoReflect() protoreflect.Message
- func (x *ListNodesResponse) Reset()
- func (x *ListNodesResponse) String() string
- type ListShardsRequest
- type ListShardsResponse
- func (*ListShardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListShardsResponse) GetError() *Error
- func (x *ListShardsResponse) GetNodeId() string
- func (x *ListShardsResponse) GetShards() []*ShardInfo
- func (x *ListShardsResponse) GetTotalShards() int32
- func (x *ListShardsResponse) GetTotalWeight() int32
- func (*ListShardsResponse) ProtoMessage()
- func (x *ListShardsResponse) ProtoReflect() protoreflect.Message
- func (x *ListShardsResponse) Reset()
- func (x *ListShardsResponse) String() string
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NodeInfo) GetLeader() bool
- func (x *NodeInfo) GetNodeId() string
- func (x *NodeInfo) GetRaftState() string
- func (x *NodeInfo) GetSerfState() string
- func (*NodeInfo) ProtoMessage()
- func (x *NodeInfo) ProtoReflect() protoreflect.Message
- func (x *NodeInfo) Reset()
- func (x *NodeInfo) String() string
- type RemoveNodeRequest
- type RemoveNodeResponse
- func (*RemoveNodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveNodeResponse) GetError() *Error
- func (x *RemoveNodeResponse) GetNodeId() string
- func (*RemoveNodeResponse) ProtoMessage()
- func (x *RemoveNodeResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveNodeResponse) Reset()
- func (x *RemoveNodeResponse) String() string
- type ShardInfo
- func (*ShardInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ShardInfo) GetNodeId() string
- func (x *ShardInfo) GetShardCount() int32
- func (x *ShardInfo) GetShardWeight() int32
- func (*ShardInfo) ProtoMessage()
- func (x *ShardInfo) ProtoReflect() protoreflect.Message
- func (x *ShardInfo) Reset()
- func (x *ShardInfo) String() string
- type StepDownRequest
- type StepDownResponse
- func (*StepDownResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StepDownResponse) GetError() *Error
- func (x *StepDownResponse) GetNodeId() string
- func (*StepDownResponse) ProtoMessage()
- func (x *StepDownResponse) ProtoReflect() protoreflect.Message
- func (x *StepDownResponse) Reset()
- func (x *StepDownResponse) String() string
- type UnimplementedClusterManagementServer
- func (*UnimplementedClusterManagementServer) AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error)
- func (*UnimplementedClusterManagementServer) FindEndpoint(context.Context, *EndpointRequest) (*EndpointResponse, error)
- func (*UnimplementedClusterManagementServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
- func (*UnimplementedClusterManagementServer) ListEndpoints(context.Context, *ListEndpointRequest) (*ListEndpointResponse, error)
- func (*UnimplementedClusterManagementServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error)
- func (*UnimplementedClusterManagementServer) ListShards(context.Context, *ListShardsRequest) (*ListShardsResponse, error)
- func (*UnimplementedClusterManagementServer) RemoveNode(context.Context, *RemoveNodeRequest) (*RemoveNodeResponse, error)
- func (*UnimplementedClusterManagementServer) StepDown(context.Context, *StepDownRequest) (*StepDownResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( Error_Code_name = map[int32]string{ 0: "UNSPECIFIED", 1: "OK", 2: "INVALID", 3: "NO_LEADER", 4: "GENERIC", 5: "UNKNOWN_ID", } Error_Code_value = map[string]int32{ "UNSPECIFIED": 0, "OK": 1, "INVALID": 2, "NO_LEADER": 3, "GENERIC": 4, "UNKNOWN_ID": 5, } )
Enum value maps for Error_Code.
var File_clusterfunk_management_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClusterManagementServer ¶
func RegisterClusterManagementServer(s *grpc.Server, srv ClusterManagementServer)
Types ¶
type AddNodeRequest ¶
type AddNodeRequest struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // contains filtered or unexported fields }
Messages for the AddNode method
func (*AddNodeRequest) Descriptor
deprecated
func (*AddNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddNodeRequest.ProtoReflect.Descriptor instead.
func (*AddNodeRequest) GetNodeId ¶
func (x *AddNodeRequest) GetNodeId() string
func (*AddNodeRequest) ProtoMessage ¶
func (*AddNodeRequest) ProtoMessage()
func (*AddNodeRequest) ProtoReflect ¶
func (x *AddNodeRequest) ProtoReflect() protoreflect.Message
func (*AddNodeRequest) Reset ¶
func (x *AddNodeRequest) Reset()
func (*AddNodeRequest) String ¶
func (x *AddNodeRequest) String() string
type AddNodeResponse ¶
type AddNodeResponse struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
AddNodeResponse
func (*AddNodeResponse) Descriptor
deprecated
func (*AddNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddNodeResponse.ProtoReflect.Descriptor instead.
func (*AddNodeResponse) GetError ¶
func (x *AddNodeResponse) GetError() *Error
func (*AddNodeResponse) GetNodeId ¶
func (x *AddNodeResponse) GetNodeId() string
func (*AddNodeResponse) ProtoMessage ¶
func (*AddNodeResponse) ProtoMessage()
func (*AddNodeResponse) ProtoReflect ¶
func (x *AddNodeResponse) ProtoReflect() protoreflect.Message
func (*AddNodeResponse) Reset ¶
func (x *AddNodeResponse) Reset()
func (*AddNodeResponse) String ¶
func (x *AddNodeResponse) String() string
type ClusterManagementClient ¶
type ClusterManagementClient interface { // GetState returns the cluster state of the local node. GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) // ListNodes lists the known nodes in the cluster, as seen by the leader. ListNodes(ctx context.Context, in *ListNodesRequest, opts ...grpc.CallOption) (*ListNodesResponse, error) // FindEndpoint looks up an endpoint and returns the list. The list is // retrieved from the local node. FindEndpoint(ctx context.Context, in *EndpointRequest, opts ...grpc.CallOption) (*EndpointResponse, error) // ListEndpoints lists all of the endpoints in the cluster that this node // knows about. Serf propagation time might make an difference here. ListEndpoints(ctx context.Context, in *ListEndpointRequest, opts ...grpc.CallOption) (*ListEndpointResponse, error) // AddNode adds a node to the cluster. This request is proxied to the leader // if it is received by a non-leader node. The request will fail if there's // no current leader in the cluster. AddNode(ctx context.Context, in *AddNodeRequest, opts ...grpc.CallOption) (*AddNodeResponse, error) // RemoveNode removes a node from the cluster. This request is handled by // the leader. If the request is sent to one of the non-leaders in the cluster // it will be proxied to the leader. RemoveNode(ctx context.Context, in *RemoveNodeRequest, opts ...grpc.CallOption) (*RemoveNodeResponse, error) // StepDown causes the (Raft) leader to step down and a new leader will be // elected. StepDown(ctx context.Context, in *StepDownRequest, opts ...grpc.CallOption) (*StepDownResponse, error) // ListShards dumps the current shard map as seen by the node handling the // request. ListShards(ctx context.Context, in *ListShardsRequest, opts ...grpc.CallOption) (*ListShardsResponse, error) }
ClusterManagementClient is the client API for ClusterManagement service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClusterManagementClient ¶
func NewClusterManagementClient(cc grpc.ClientConnInterface) ClusterManagementClient
type ClusterManagementServer ¶
type ClusterManagementServer interface { // GetState returns the cluster state of the local node. GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) // ListNodes lists the known nodes in the cluster, as seen by the leader. ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) // FindEndpoint looks up an endpoint and returns the list. The list is // retrieved from the local node. FindEndpoint(context.Context, *EndpointRequest) (*EndpointResponse, error) // ListEndpoints lists all of the endpoints in the cluster that this node // knows about. Serf propagation time might make an difference here. ListEndpoints(context.Context, *ListEndpointRequest) (*ListEndpointResponse, error) // AddNode adds a node to the cluster. This request is proxied to the leader // if it is received by a non-leader node. The request will fail if there's // no current leader in the cluster. AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error) // RemoveNode removes a node from the cluster. This request is handled by // the leader. If the request is sent to one of the non-leaders in the cluster // it will be proxied to the leader. RemoveNode(context.Context, *RemoveNodeRequest) (*RemoveNodeResponse, error) // StepDown causes the (Raft) leader to step down and a new leader will be // elected. StepDown(context.Context, *StepDownRequest) (*StepDownResponse, error) // ListShards dumps the current shard map as seen by the node handling the // request. ListShards(context.Context, *ListShardsRequest) (*ListShardsResponse, error) }
ClusterManagementServer is the server API for ClusterManagement service.
type EndpointInfo ¶
type EndpointInfo struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` HostPort string `protobuf:"bytes,3,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"` ServiceName string `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // contains filtered or unexported fields }
func (*EndpointInfo) Descriptor
deprecated
func (*EndpointInfo) Descriptor() ([]byte, []int)
Deprecated: Use EndpointInfo.ProtoReflect.Descriptor instead.
func (*EndpointInfo) GetHostPort ¶
func (x *EndpointInfo) GetHostPort() string
func (*EndpointInfo) GetName ¶
func (x *EndpointInfo) GetName() string
func (*EndpointInfo) GetNodeId ¶
func (x *EndpointInfo) GetNodeId() string
func (*EndpointInfo) GetServiceName ¶ added in v0.0.8
func (x *EndpointInfo) GetServiceName() string
func (*EndpointInfo) ProtoMessage ¶
func (*EndpointInfo) ProtoMessage()
func (*EndpointInfo) ProtoReflect ¶
func (x *EndpointInfo) ProtoReflect() protoreflect.Message
func (*EndpointInfo) Reset ¶
func (x *EndpointInfo) Reset()
func (*EndpointInfo) String ¶
func (x *EndpointInfo) String() string
type EndpointRequest ¶
type EndpointRequest struct { EndpointName string `protobuf:"bytes,1,opt,name=endpoint_name,json=endpointName,proto3" json:"endpoint_name,omitempty"` // contains filtered or unexported fields }
EndpointRequest is the a request for a list of endpoints protolint:disable:next:INDENT
func (*EndpointRequest) Descriptor
deprecated
func (*EndpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndpointRequest.ProtoReflect.Descriptor instead.
func (*EndpointRequest) GetEndpointName ¶
func (x *EndpointRequest) GetEndpointName() string
func (*EndpointRequest) ProtoMessage ¶
func (*EndpointRequest) ProtoMessage()
func (*EndpointRequest) ProtoReflect ¶
func (x *EndpointRequest) ProtoReflect() protoreflect.Message
func (*EndpointRequest) Reset ¶
func (x *EndpointRequest) Reset()
func (*EndpointRequest) String ¶
func (x *EndpointRequest) String() string
type EndpointResponse ¶
type EndpointResponse struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Endpoints []*EndpointInfo `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // contains filtered or unexported fields }
func (*EndpointResponse) Descriptor
deprecated
func (*EndpointResponse) Descriptor() ([]byte, []int)
Deprecated: Use EndpointResponse.ProtoReflect.Descriptor instead.
func (*EndpointResponse) GetEndpoints ¶
func (x *EndpointResponse) GetEndpoints() []*EndpointInfo
func (*EndpointResponse) GetError ¶
func (x *EndpointResponse) GetError() *Error
func (*EndpointResponse) GetNodeId ¶
func (x *EndpointResponse) GetNodeId() string
func (*EndpointResponse) ProtoMessage ¶
func (*EndpointResponse) ProtoMessage()
func (*EndpointResponse) ProtoReflect ¶
func (x *EndpointResponse) ProtoReflect() protoreflect.Message
func (*EndpointResponse) Reset ¶
func (x *EndpointResponse) Reset()
func (*EndpointResponse) String ¶
func (x *EndpointResponse) String() string
type Error ¶
type Error struct { ErrorCode Error_Code `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=managepb.Error_Code" json:"error_code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
Errors is the various error codes that might be returned. The values are should be fairly obvious.
func (*Error) Descriptor
deprecated
func (*Error) GetErrorCode ¶
func (x *Error) GetErrorCode() Error_Code
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Error_Code ¶
type Error_Code int32
const ( Error_UNSPECIFIED Error_Code = 0 Error_OK Error_Code = 1 Error_INVALID Error_Code = 2 Error_NO_LEADER Error_Code = 3 Error_GENERIC Error_Code = 4 Error_UNKNOWN_ID Error_Code = 5 )
func (Error_Code) Descriptor ¶
func (Error_Code) Descriptor() protoreflect.EnumDescriptor
func (Error_Code) Enum ¶
func (x Error_Code) Enum() *Error_Code
func (Error_Code) EnumDescriptor
deprecated
func (Error_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use Error_Code.Descriptor instead.
func (Error_Code) Number ¶
func (x Error_Code) Number() protoreflect.EnumNumber
func (Error_Code) String ¶
func (x Error_Code) String() string
func (Error_Code) Type ¶
func (Error_Code) Type() protoreflect.EnumType
type GetStatusRequest ¶
type GetStatusRequest struct {
// contains filtered or unexported fields
}
GetStatusRequest
func (*GetStatusRequest) Descriptor
deprecated
func (*GetStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.
func (*GetStatusRequest) ProtoMessage ¶
func (*GetStatusRequest) ProtoMessage()
func (*GetStatusRequest) ProtoReflect ¶
func (x *GetStatusRequest) ProtoReflect() protoreflect.Message
func (*GetStatusRequest) Reset ¶
func (x *GetStatusRequest) Reset()
func (*GetStatusRequest) String ¶
func (x *GetStatusRequest) String() string
type GetStatusResponse ¶
type GetStatusResponse struct { LocalNodeId string `protobuf:"bytes,1,opt,name=local_node_id,json=localNodeId,proto3" json:"local_node_id,omitempty"` LeaderNodeId string `protobuf:"bytes,2,opt,name=leader_node_id,json=leaderNodeId,proto3" json:"leader_node_id,omitempty"` RaftNodeCount int32 `protobuf:"varint,3,opt,name=raft_node_count,json=raftNodeCount,proto3" json:"raft_node_count,omitempty"` SerfNodeCount int32 `protobuf:"varint,4,opt,name=serf_node_count,json=serfNodeCount,proto3" json:"serf_node_count,omitempty"` LocalRole string `protobuf:"bytes,5,opt,name=local_role,json=localRole,proto3" json:"local_role,omitempty"` LocalState string `protobuf:"bytes,6,opt,name=local_state,json=localState,proto3" json:"local_state,omitempty"` ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` ShardCount int32 `protobuf:"varint,8,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty"` ShardWeight int32 `protobuf:"varint,9,opt,name=shard_weight,json=shardWeight,proto3" json:"shard_weight,omitempty"` Error *Error `protobuf:"bytes,10,opt,name=error,proto3" json:"error,omitempty"` Created int64 `protobuf:"varint,11,opt,name=created,proto3" json:"created,omitempty"` // contains filtered or unexported fields }
GetStatusResponse
func (*GetStatusResponse) Descriptor
deprecated
func (*GetStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead.
func (*GetStatusResponse) GetClusterName ¶
func (x *GetStatusResponse) GetClusterName() string
func (*GetStatusResponse) GetCreated ¶ added in v0.0.8
func (x *GetStatusResponse) GetCreated() int64
func (*GetStatusResponse) GetError ¶
func (x *GetStatusResponse) GetError() *Error
func (*GetStatusResponse) GetLeaderNodeId ¶
func (x *GetStatusResponse) GetLeaderNodeId() string
func (*GetStatusResponse) GetLocalNodeId ¶
func (x *GetStatusResponse) GetLocalNodeId() string
func (*GetStatusResponse) GetLocalRole ¶
func (x *GetStatusResponse) GetLocalRole() string
func (*GetStatusResponse) GetLocalState ¶
func (x *GetStatusResponse) GetLocalState() string
func (*GetStatusResponse) GetRaftNodeCount ¶
func (x *GetStatusResponse) GetRaftNodeCount() int32
func (*GetStatusResponse) GetSerfNodeCount ¶
func (x *GetStatusResponse) GetSerfNodeCount() int32
func (*GetStatusResponse) GetShardCount ¶
func (x *GetStatusResponse) GetShardCount() int32
func (*GetStatusResponse) GetShardWeight ¶
func (x *GetStatusResponse) GetShardWeight() int32
func (*GetStatusResponse) ProtoMessage ¶
func (*GetStatusResponse) ProtoMessage()
func (*GetStatusResponse) ProtoReflect ¶
func (x *GetStatusResponse) ProtoReflect() protoreflect.Message
func (*GetStatusResponse) Reset ¶
func (x *GetStatusResponse) Reset()
func (*GetStatusResponse) String ¶
func (x *GetStatusResponse) String() string
type ListEndpointRequest ¶
type ListEndpointRequest struct {
// contains filtered or unexported fields
}
ListEndpointRequest is a request to list all known endpoints
func (*ListEndpointRequest) Descriptor
deprecated
func (*ListEndpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointRequest.ProtoReflect.Descriptor instead.
func (*ListEndpointRequest) ProtoMessage ¶
func (*ListEndpointRequest) ProtoMessage()
func (*ListEndpointRequest) ProtoReflect ¶
func (x *ListEndpointRequest) ProtoReflect() protoreflect.Message
func (*ListEndpointRequest) Reset ¶
func (x *ListEndpointRequest) Reset()
func (*ListEndpointRequest) String ¶
func (x *ListEndpointRequest) String() string
type ListEndpointResponse ¶
type ListEndpointResponse struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Endpoints []*EndpointInfo `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // contains filtered or unexported fields }
ListEndpointResponse is a list of all known endpoints on this node. There is no filtering on the endpoints.
func (*ListEndpointResponse) Descriptor
deprecated
func (*ListEndpointResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointResponse.ProtoReflect.Descriptor instead.
func (*ListEndpointResponse) GetEndpoints ¶
func (x *ListEndpointResponse) GetEndpoints() []*EndpointInfo
func (*ListEndpointResponse) GetError ¶
func (x *ListEndpointResponse) GetError() *Error
func (*ListEndpointResponse) GetNodeId ¶
func (x *ListEndpointResponse) GetNodeId() string
func (*ListEndpointResponse) ProtoMessage ¶
func (*ListEndpointResponse) ProtoMessage()
func (*ListEndpointResponse) ProtoReflect ¶
func (x *ListEndpointResponse) ProtoReflect() protoreflect.Message
func (*ListEndpointResponse) Reset ¶
func (x *ListEndpointResponse) Reset()
func (*ListEndpointResponse) String ¶
func (x *ListEndpointResponse) String() string
type ListNodesRequest ¶
type ListNodesRequest struct {
// contains filtered or unexported fields
}
ListNodesRequest
func (*ListNodesRequest) Descriptor
deprecated
func (*ListNodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNodesRequest.ProtoReflect.Descriptor instead.
func (*ListNodesRequest) ProtoMessage ¶
func (*ListNodesRequest) ProtoMessage()
func (*ListNodesRequest) ProtoReflect ¶
func (x *ListNodesRequest) ProtoReflect() protoreflect.Message
func (*ListNodesRequest) Reset ¶
func (x *ListNodesRequest) Reset()
func (*ListNodesRequest) String ¶
func (x *ListNodesRequest) String() string
type ListNodesResponse ¶
type ListNodesResponse struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` LeaderId string `protobuf:"bytes,2,opt,name=leader_id,json=leaderId,proto3" json:"leader_id,omitempty"` Nodes []*NodeInfo `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"` Error *Error `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
ListNodesResponse is the response to a ListSerfNodes call. The number of Serf nodes will initially be quite small so we won't need a stream response here.
func (*ListNodesResponse) Descriptor
deprecated
func (*ListNodesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNodesResponse.ProtoReflect.Descriptor instead.
func (*ListNodesResponse) GetError ¶
func (x *ListNodesResponse) GetError() *Error
func (*ListNodesResponse) GetLeaderId ¶
func (x *ListNodesResponse) GetLeaderId() string
func (*ListNodesResponse) GetNodeId ¶
func (x *ListNodesResponse) GetNodeId() string
func (*ListNodesResponse) GetNodes ¶
func (x *ListNodesResponse) GetNodes() []*NodeInfo
func (*ListNodesResponse) ProtoMessage ¶
func (*ListNodesResponse) ProtoMessage()
func (*ListNodesResponse) ProtoReflect ¶
func (x *ListNodesResponse) ProtoReflect() protoreflect.Message
func (*ListNodesResponse) Reset ¶
func (x *ListNodesResponse) Reset()
func (*ListNodesResponse) String ¶
func (x *ListNodesResponse) String() string
type ListShardsRequest ¶
type ListShardsRequest struct {
// contains filtered or unexported fields
}
ListShardsRequest
func (*ListShardsRequest) Descriptor
deprecated
func (*ListShardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListShardsRequest.ProtoReflect.Descriptor instead.
func (*ListShardsRequest) ProtoMessage ¶
func (*ListShardsRequest) ProtoMessage()
func (*ListShardsRequest) ProtoReflect ¶
func (x *ListShardsRequest) ProtoReflect() protoreflect.Message
func (*ListShardsRequest) Reset ¶
func (x *ListShardsRequest) Reset()
func (*ListShardsRequest) String ¶
func (x *ListShardsRequest) String() string
type ListShardsResponse ¶
type ListShardsResponse struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Shards []*ShardInfo `protobuf:"bytes,3,rep,name=shards,proto3" json:"shards,omitempty"` TotalShards int32 `protobuf:"varint,4,opt,name=total_shards,json=totalShards,proto3" json:"total_shards,omitempty"` TotalWeight int32 `protobuf:"varint,5,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"` // contains filtered or unexported fields }
ListShardsResponse
func (*ListShardsResponse) Descriptor
deprecated
func (*ListShardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListShardsResponse.ProtoReflect.Descriptor instead.
func (*ListShardsResponse) GetError ¶
func (x *ListShardsResponse) GetError() *Error
func (*ListShardsResponse) GetNodeId ¶
func (x *ListShardsResponse) GetNodeId() string
func (*ListShardsResponse) GetShards ¶
func (x *ListShardsResponse) GetShards() []*ShardInfo
func (*ListShardsResponse) GetTotalShards ¶
func (x *ListShardsResponse) GetTotalShards() int32
func (*ListShardsResponse) GetTotalWeight ¶
func (x *ListShardsResponse) GetTotalWeight() int32
func (*ListShardsResponse) ProtoMessage ¶
func (*ListShardsResponse) ProtoMessage()
func (*ListShardsResponse) ProtoReflect ¶
func (x *ListShardsResponse) ProtoReflect() protoreflect.Message
func (*ListShardsResponse) Reset ¶
func (x *ListShardsResponse) Reset()
func (*ListShardsResponse) String ¶
func (x *ListShardsResponse) String() string
type NodeInfo ¶
type NodeInfo struct { // NodeId is the node's identifier. NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` RaftState string `protobuf:"bytes,2,opt,name=raft_state,json=raftState,proto3" json:"raft_state,omitempty"` SerfState string `protobuf:"bytes,3,opt,name=serf_state,json=serfState,proto3" json:"serf_state,omitempty"` Leader bool `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` // contains filtered or unexported fields }
NodeInfo contains information on a single node in the cluster/swarm
func (*NodeInfo) Descriptor
deprecated
func (*NodeInfo) GetRaftState ¶
func (*NodeInfo) GetSerfState ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) ProtoReflect ¶
func (x *NodeInfo) ProtoReflect() protoreflect.Message
type RemoveNodeRequest ¶
type RemoveNodeRequest struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // contains filtered or unexported fields }
RemoveNodeRequest
func (*RemoveNodeRequest) Descriptor
deprecated
func (*RemoveNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveNodeRequest.ProtoReflect.Descriptor instead.
func (*RemoveNodeRequest) GetNodeId ¶
func (x *RemoveNodeRequest) GetNodeId() string
func (*RemoveNodeRequest) ProtoMessage ¶
func (*RemoveNodeRequest) ProtoMessage()
func (*RemoveNodeRequest) ProtoReflect ¶
func (x *RemoveNodeRequest) ProtoReflect() protoreflect.Message
func (*RemoveNodeRequest) Reset ¶
func (x *RemoveNodeRequest) Reset()
func (*RemoveNodeRequest) String ¶
func (x *RemoveNodeRequest) String() string
type RemoveNodeResponse ¶
type RemoveNodeResponse struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
RemoveNodeResponse
func (*RemoveNodeResponse) Descriptor
deprecated
func (*RemoveNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveNodeResponse.ProtoReflect.Descriptor instead.
func (*RemoveNodeResponse) GetError ¶
func (x *RemoveNodeResponse) GetError() *Error
func (*RemoveNodeResponse) GetNodeId ¶
func (x *RemoveNodeResponse) GetNodeId() string
func (*RemoveNodeResponse) ProtoMessage ¶
func (*RemoveNodeResponse) ProtoMessage()
func (*RemoveNodeResponse) ProtoReflect ¶
func (x *RemoveNodeResponse) ProtoReflect() protoreflect.Message
func (*RemoveNodeResponse) Reset ¶
func (x *RemoveNodeResponse) Reset()
func (*RemoveNodeResponse) String ¶
func (x *RemoveNodeResponse) String() string
type ShardInfo ¶
type ShardInfo struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` ShardCount int32 `protobuf:"varint,2,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty"` ShardWeight int32 `protobuf:"varint,3,opt,name=shard_weight,json=shardWeight,proto3" json:"shard_weight,omitempty"` // contains filtered or unexported fields }
func (*ShardInfo) Descriptor
deprecated
func (*ShardInfo) GetShardCount ¶
func (*ShardInfo) GetShardWeight ¶
func (*ShardInfo) ProtoMessage ¶
func (*ShardInfo) ProtoMessage()
func (*ShardInfo) ProtoReflect ¶
func (x *ShardInfo) ProtoReflect() protoreflect.Message
type StepDownRequest ¶
type StepDownRequest struct {
// contains filtered or unexported fields
}
func (*StepDownRequest) Descriptor
deprecated
func (*StepDownRequest) Descriptor() ([]byte, []int)
Deprecated: Use StepDownRequest.ProtoReflect.Descriptor instead.
func (*StepDownRequest) ProtoMessage ¶
func (*StepDownRequest) ProtoMessage()
func (*StepDownRequest) ProtoReflect ¶
func (x *StepDownRequest) ProtoReflect() protoreflect.Message
func (*StepDownRequest) Reset ¶
func (x *StepDownRequest) Reset()
func (*StepDownRequest) String ¶
func (x *StepDownRequest) String() string
type StepDownResponse ¶
type StepDownResponse struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*StepDownResponse) Descriptor
deprecated
func (*StepDownResponse) Descriptor() ([]byte, []int)
Deprecated: Use StepDownResponse.ProtoReflect.Descriptor instead.
func (*StepDownResponse) GetError ¶
func (x *StepDownResponse) GetError() *Error
func (*StepDownResponse) GetNodeId ¶
func (x *StepDownResponse) GetNodeId() string
func (*StepDownResponse) ProtoMessage ¶
func (*StepDownResponse) ProtoMessage()
func (*StepDownResponse) ProtoReflect ¶
func (x *StepDownResponse) ProtoReflect() protoreflect.Message
func (*StepDownResponse) Reset ¶
func (x *StepDownResponse) Reset()
func (*StepDownResponse) String ¶
func (x *StepDownResponse) String() string
type UnimplementedClusterManagementServer ¶
type UnimplementedClusterManagementServer struct { }
UnimplementedClusterManagementServer can be embedded to have forward compatible implementations.
func (*UnimplementedClusterManagementServer) AddNode ¶
func (*UnimplementedClusterManagementServer) AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error)
func (*UnimplementedClusterManagementServer) FindEndpoint ¶
func (*UnimplementedClusterManagementServer) FindEndpoint(context.Context, *EndpointRequest) (*EndpointResponse, error)
func (*UnimplementedClusterManagementServer) GetStatus ¶
func (*UnimplementedClusterManagementServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
func (*UnimplementedClusterManagementServer) ListEndpoints ¶
func (*UnimplementedClusterManagementServer) ListEndpoints(context.Context, *ListEndpointRequest) (*ListEndpointResponse, error)
func (*UnimplementedClusterManagementServer) ListNodes ¶
func (*UnimplementedClusterManagementServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error)
func (*UnimplementedClusterManagementServer) ListShards ¶
func (*UnimplementedClusterManagementServer) ListShards(context.Context, *ListShardsRequest) (*ListShardsResponse, error)
func (*UnimplementedClusterManagementServer) RemoveNode ¶
func (*UnimplementedClusterManagementServer) RemoveNode(context.Context, *RemoveNodeRequest) (*RemoveNodeResponse, error)
func (*UnimplementedClusterManagementServer) StepDown ¶
func (*UnimplementedClusterManagementServer) StepDown(context.Context, *StepDownRequest) (*StepDownResponse, error)