Documentation
¶
Overview ¶
Package management is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementClient) error
- func RegisterManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterManagementServer(s *grpc.Server, srv ManagementServer)
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetNodes() map[string]*Node
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) String() string
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type ClusterInfoResponse
- func (*ClusterInfoResponse) Descriptor() ([]byte, []int)
- func (m *ClusterInfoResponse) GetCluster() *Cluster
- func (*ClusterInfoResponse) ProtoMessage()
- func (m *ClusterInfoResponse) Reset()
- func (m *ClusterInfoResponse) String() string
- func (m *ClusterInfoResponse) XXX_DiscardUnknown()
- func (m *ClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterInfoResponse) XXX_Merge(src proto.Message)
- func (m *ClusterInfoResponse) XXX_Size() int
- func (m *ClusterInfoResponse) XXX_Unmarshal(b []byte) error
- type ClusterJoinRequest
- func (*ClusterJoinRequest) Descriptor() ([]byte, []int)
- func (m *ClusterJoinRequest) GetNode() *Node
- func (*ClusterJoinRequest) ProtoMessage()
- func (m *ClusterJoinRequest) Reset()
- func (m *ClusterJoinRequest) String() string
- func (m *ClusterJoinRequest) XXX_DiscardUnknown()
- func (m *ClusterJoinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterJoinRequest) XXX_Merge(src proto.Message)
- func (m *ClusterJoinRequest) XXX_Size() int
- func (m *ClusterJoinRequest) XXX_Unmarshal(b []byte) error
- type ClusterLeaveRequest
- func (*ClusterLeaveRequest) Descriptor() ([]byte, []int)
- func (m *ClusterLeaveRequest) GetId() string
- func (*ClusterLeaveRequest) ProtoMessage()
- func (m *ClusterLeaveRequest) Reset()
- func (m *ClusterLeaveRequest) String() string
- func (m *ClusterLeaveRequest) XXX_DiscardUnknown()
- func (m *ClusterLeaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterLeaveRequest) XXX_Merge(src proto.Message)
- func (m *ClusterLeaveRequest) XXX_Size() int
- func (m *ClusterLeaveRequest) XXX_Unmarshal(b []byte) error
- type ClusterWatchResponse
- func (*ClusterWatchResponse) Descriptor() ([]byte, []int)
- func (m *ClusterWatchResponse) GetCluster() *Cluster
- func (m *ClusterWatchResponse) GetEvent() ClusterWatchResponse_Event
- func (m *ClusterWatchResponse) GetNode() *Node
- func (*ClusterWatchResponse) ProtoMessage()
- func (m *ClusterWatchResponse) Reset()
- func (m *ClusterWatchResponse) String() string
- func (m *ClusterWatchResponse) XXX_DiscardUnknown()
- func (m *ClusterWatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterWatchResponse) XXX_Merge(src proto.Message)
- func (m *ClusterWatchResponse) XXX_Size() int
- func (m *ClusterWatchResponse) XXX_Unmarshal(b []byte) error
- type ClusterWatchResponse_Event
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetKey() string
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetKey() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetValue() *any.Any
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type KeyValue
- func (*KeyValue) Descriptor() ([]byte, []int)
- func (m *KeyValue) GetKey() string
- func (m *KeyValue) GetValue() *any.Any
- func (*KeyValue) ProtoMessage()
- func (m *KeyValue) Reset()
- func (m *KeyValue) String() string
- func (m *KeyValue) XXX_DiscardUnknown()
- func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValue) XXX_Merge(src proto.Message)
- func (m *KeyValue) XXX_Size() int
- func (m *KeyValue) XXX_Unmarshal(b []byte) error
- type ManagementClient
- type ManagementServer
- type Management_ClusterWatchClient
- type Management_ClusterWatchServer
- type Management_WatchClient
- type Management_WatchServer
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetGrpcAddress() string
- func (m *Metadata) GetGrpcGatewayAddress() string
- func (m *Metadata) GetHttpAddress() string
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) String() string
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetBindAddress() string
- func (m *Node) GetId() string
- func (m *Node) GetMetadata() *Metadata
- func (m *Node) GetState() Node_State
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type NodeHealthCheckRequest
- func (*NodeHealthCheckRequest) Descriptor() ([]byte, []int)
- func (m *NodeHealthCheckRequest) GetProbe() NodeHealthCheckRequest_Probe
- func (*NodeHealthCheckRequest) ProtoMessage()
- func (m *NodeHealthCheckRequest) Reset()
- func (m *NodeHealthCheckRequest) String() string
- func (m *NodeHealthCheckRequest) XXX_DiscardUnknown()
- func (m *NodeHealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeHealthCheckRequest) XXX_Merge(src proto.Message)
- func (m *NodeHealthCheckRequest) XXX_Size() int
- func (m *NodeHealthCheckRequest) XXX_Unmarshal(b []byte) error
- type NodeHealthCheckRequest_Probe
- type NodeHealthCheckResponse
- func (*NodeHealthCheckResponse) Descriptor() ([]byte, []int)
- func (m *NodeHealthCheckResponse) GetState() NodeHealthCheckResponse_State
- func (*NodeHealthCheckResponse) ProtoMessage()
- func (m *NodeHealthCheckResponse) Reset()
- func (m *NodeHealthCheckResponse) String() string
- func (m *NodeHealthCheckResponse) XXX_DiscardUnknown()
- func (m *NodeHealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeHealthCheckResponse) XXX_Merge(src proto.Message)
- func (m *NodeHealthCheckResponse) XXX_Size() int
- func (m *NodeHealthCheckResponse) XXX_Unmarshal(b []byte) error
- type NodeHealthCheckResponse_State
- type NodeInfoResponse
- func (*NodeInfoResponse) Descriptor() ([]byte, []int)
- func (m *NodeInfoResponse) GetNode() *Node
- func (*NodeInfoResponse) ProtoMessage()
- func (m *NodeInfoResponse) Reset()
- func (m *NodeInfoResponse) String() string
- func (m *NodeInfoResponse) XXX_DiscardUnknown()
- func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeInfoResponse) XXX_Merge(src proto.Message)
- func (m *NodeInfoResponse) XXX_Size() int
- func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error
- type Node_State
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetEvent() Proposal_Event
- func (m *Proposal) GetKeyValue() *KeyValue
- func (m *Proposal) GetNode() *Node
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) String() string
- func (m *Proposal) XXX_DiscardUnknown()
- func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proposal) XXX_Merge(src proto.Message)
- func (m *Proposal) XXX_Size() int
- func (m *Proposal) XXX_Unmarshal(b []byte) error
- type Proposal_Event
- type SetRequest
- func (*SetRequest) Descriptor() ([]byte, []int)
- func (m *SetRequest) GetKey() string
- func (m *SetRequest) GetValue() *any.Any
- func (*SetRequest) ProtoMessage()
- func (m *SetRequest) Reset()
- func (m *SetRequest) String() string
- func (m *SetRequest) XXX_DiscardUnknown()
- func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetRequest) XXX_Merge(src proto.Message)
- func (m *SetRequest) XXX_Size() int
- func (m *SetRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedManagementServer
- func (*UnimplementedManagementServer) ClusterInfo(ctx context.Context, req *empty.Empty) (*ClusterInfoResponse, error)
- func (*UnimplementedManagementServer) ClusterJoin(ctx context.Context, req *ClusterJoinRequest) (*empty.Empty, error)
- func (*UnimplementedManagementServer) ClusterLeave(ctx context.Context, req *ClusterLeaveRequest) (*empty.Empty, error)
- func (*UnimplementedManagementServer) ClusterWatch(req *empty.Empty, srv Management_ClusterWatchServer) error
- func (*UnimplementedManagementServer) Delete(ctx context.Context, req *DeleteRequest) (*empty.Empty, error)
- func (*UnimplementedManagementServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error)
- func (*UnimplementedManagementServer) NodeHealthCheck(ctx context.Context, req *NodeHealthCheckRequest) (*NodeHealthCheckResponse, error)
- func (*UnimplementedManagementServer) NodeInfo(ctx context.Context, req *empty.Empty) (*NodeInfoResponse, error)
- func (*UnimplementedManagementServer) Set(ctx context.Context, req *SetRequest) (*empty.Empty, error)
- func (*UnimplementedManagementServer) Snapshot(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedManagementServer) Watch(req *WatchRequest, srv Management_WatchServer) error
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)
- func (m *WatchRequest) GetKey() string
- func (*WatchRequest) ProtoMessage()
- func (m *WatchRequest) Reset()
- func (m *WatchRequest) String() string
- func (m *WatchRequest) XXX_DiscardUnknown()
- func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchRequest) XXX_Merge(src proto.Message)
- func (m *WatchRequest) XXX_Size() int
- func (m *WatchRequest) XXX_Unmarshal(b []byte) error
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)
- func (m *WatchResponse) GetCommand() WatchResponse_Command
- func (m *WatchResponse) GetKey() string
- func (m *WatchResponse) GetValue() *any.Any
- func (*WatchResponse) ProtoMessage()
- func (m *WatchResponse) Reset()
- func (m *WatchResponse) String() string
- func (m *WatchResponse) XXX_DiscardUnknown()
- func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchResponse) XXX_Merge(src proto.Message)
- func (m *WatchResponse) XXX_Size() int
- func (m *WatchResponse) XXX_Unmarshal(b []byte) error
- type WatchResponse_Command
Constants ¶
This section is empty.
Variables ¶
var ClusterWatchResponse_Event_name = map[int32]string{
0: "UNKNOWN",
1: "JOIN",
2: "LEAVE",
3: "UPDATE",
}
var ClusterWatchResponse_Event_value = map[string]int32{
"UNKNOWN": 0,
"JOIN": 1,
"LEAVE": 2,
"UPDATE": 3,
}
var NodeHealthCheckRequest_Probe_name = map[int32]string{
0: "UNKNOWN",
1: "HEALTHINESS",
2: "LIVENESS",
3: "READINESS",
}
var NodeHealthCheckRequest_Probe_value = map[string]int32{
"UNKNOWN": 0,
"HEALTHINESS": 1,
"LIVENESS": 2,
"READINESS": 3,
}
var NodeHealthCheckResponse_State_name = map[int32]string{
0: "UNKNOWN",
1: "HEALTHY",
2: "UNHEALTHY",
3: "ALIVE",
4: "DEAD",
5: "READY",
6: "NOT_READY",
}
var NodeHealthCheckResponse_State_value = map[string]int32{
"UNKNOWN": 0,
"HEALTHY": 1,
"UNHEALTHY": 2,
"ALIVE": 3,
"DEAD": 4,
"READY": 5,
"NOT_READY": 6,
}
var Node_State_name = map[int32]string{
0: "UNKNOWN",
1: "FOLLOWER",
2: "CANDIDATE",
3: "LEADER",
4: "SHUTDOWN",
}
var Node_State_value = map[string]int32{
"UNKNOWN": 0,
"FOLLOWER": 1,
"CANDIDATE": 2,
"LEADER": 3,
"SHUTDOWN": 4,
}
var Proposal_Event_name = map[int32]string{
0: "UNKNOWN",
1: "SET_NODE",
2: "DELETE_NODE",
3: "SET_VALUE",
4: "DELETE_VALUE",
}
var Proposal_Event_value = map[string]int32{
"UNKNOWN": 0,
"SET_NODE": 1,
"DELETE_NODE": 2,
"SET_VALUE": 3,
"DELETE_VALUE": 4,
}
var WatchResponse_Command_name = map[int32]string{
0: "UNKNOWN",
1: "SET",
2: "DELETE",
}
var WatchResponse_Command_value = map[string]int32{
"UNKNOWN": 0,
"SET": 1,
"DELETE": 2,
}
Functions ¶
func RegisterManagementHandler ¶
func RegisterManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterManagementHandler registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterManagementHandlerClient ¶
func RegisterManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementClient) error
RegisterManagementHandlerClient registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ManagementClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ManagementClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ManagementClient" to call the correct interceptors.
func RegisterManagementHandlerFromEndpoint ¶
func RegisterManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterManagementHandlerFromEndpoint is same as RegisterManagementHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterManagementServer ¶
func RegisterManagementServer(s *grpc.Server, srv ManagementServer)
Types ¶
type Cluster ¶
type Cluster struct {
Nodes map[string]*Node `` /* 151-byte string literal not displayed */
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Cluster) Descriptor ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type ClusterInfoResponse ¶
type ClusterInfoResponse struct {
Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ClusterInfoResponse) Descriptor ¶
func (*ClusterInfoResponse) Descriptor() ([]byte, []int)
func (*ClusterInfoResponse) GetCluster ¶
func (m *ClusterInfoResponse) GetCluster() *Cluster
func (*ClusterInfoResponse) ProtoMessage ¶
func (*ClusterInfoResponse) ProtoMessage()
func (*ClusterInfoResponse) Reset ¶
func (m *ClusterInfoResponse) Reset()
func (*ClusterInfoResponse) String ¶
func (m *ClusterInfoResponse) String() string
func (*ClusterInfoResponse) XXX_DiscardUnknown ¶
func (m *ClusterInfoResponse) XXX_DiscardUnknown()
func (*ClusterInfoResponse) XXX_Marshal ¶
func (m *ClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterInfoResponse) XXX_Merge ¶
func (m *ClusterInfoResponse) XXX_Merge(src proto.Message)
func (*ClusterInfoResponse) XXX_Size ¶
func (m *ClusterInfoResponse) XXX_Size() int
func (*ClusterInfoResponse) XXX_Unmarshal ¶
func (m *ClusterInfoResponse) XXX_Unmarshal(b []byte) error
type ClusterJoinRequest ¶
type ClusterJoinRequest struct {
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ClusterJoinRequest) Descriptor ¶
func (*ClusterJoinRequest) Descriptor() ([]byte, []int)
func (*ClusterJoinRequest) GetNode ¶
func (m *ClusterJoinRequest) GetNode() *Node
func (*ClusterJoinRequest) ProtoMessage ¶
func (*ClusterJoinRequest) ProtoMessage()
func (*ClusterJoinRequest) Reset ¶
func (m *ClusterJoinRequest) Reset()
func (*ClusterJoinRequest) String ¶
func (m *ClusterJoinRequest) String() string
func (*ClusterJoinRequest) XXX_DiscardUnknown ¶
func (m *ClusterJoinRequest) XXX_DiscardUnknown()
func (*ClusterJoinRequest) XXX_Marshal ¶
func (m *ClusterJoinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterJoinRequest) XXX_Merge ¶
func (m *ClusterJoinRequest) XXX_Merge(src proto.Message)
func (*ClusterJoinRequest) XXX_Size ¶
func (m *ClusterJoinRequest) XXX_Size() int
func (*ClusterJoinRequest) XXX_Unmarshal ¶
func (m *ClusterJoinRequest) XXX_Unmarshal(b []byte) error
type ClusterLeaveRequest ¶
type ClusterLeaveRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ClusterLeaveRequest) Descriptor ¶
func (*ClusterLeaveRequest) Descriptor() ([]byte, []int)
func (*ClusterLeaveRequest) GetId ¶
func (m *ClusterLeaveRequest) GetId() string
func (*ClusterLeaveRequest) ProtoMessage ¶
func (*ClusterLeaveRequest) ProtoMessage()
func (*ClusterLeaveRequest) Reset ¶
func (m *ClusterLeaveRequest) Reset()
func (*ClusterLeaveRequest) String ¶
func (m *ClusterLeaveRequest) String() string
func (*ClusterLeaveRequest) XXX_DiscardUnknown ¶
func (m *ClusterLeaveRequest) XXX_DiscardUnknown()
func (*ClusterLeaveRequest) XXX_Marshal ¶
func (m *ClusterLeaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterLeaveRequest) XXX_Merge ¶
func (m *ClusterLeaveRequest) XXX_Merge(src proto.Message)
func (*ClusterLeaveRequest) XXX_Size ¶
func (m *ClusterLeaveRequest) XXX_Size() int
func (*ClusterLeaveRequest) XXX_Unmarshal ¶
func (m *ClusterLeaveRequest) XXX_Unmarshal(b []byte) error
type ClusterWatchResponse ¶
type ClusterWatchResponse struct {
Event ClusterWatchResponse_Event `protobuf:"varint,1,opt,name=event,proto3,enum=management.ClusterWatchResponse_Event" json:"event,omitempty"`
Node *Node `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
Cluster *Cluster `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ClusterWatchResponse) Descriptor ¶
func (*ClusterWatchResponse) Descriptor() ([]byte, []int)
func (*ClusterWatchResponse) GetCluster ¶
func (m *ClusterWatchResponse) GetCluster() *Cluster
func (*ClusterWatchResponse) GetEvent ¶
func (m *ClusterWatchResponse) GetEvent() ClusterWatchResponse_Event
func (*ClusterWatchResponse) GetNode ¶
func (m *ClusterWatchResponse) GetNode() *Node
func (*ClusterWatchResponse) ProtoMessage ¶
func (*ClusterWatchResponse) ProtoMessage()
func (*ClusterWatchResponse) Reset ¶
func (m *ClusterWatchResponse) Reset()
func (*ClusterWatchResponse) String ¶
func (m *ClusterWatchResponse) String() string
func (*ClusterWatchResponse) XXX_DiscardUnknown ¶
func (m *ClusterWatchResponse) XXX_DiscardUnknown()
func (*ClusterWatchResponse) XXX_Marshal ¶
func (m *ClusterWatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterWatchResponse) XXX_Merge ¶
func (m *ClusterWatchResponse) XXX_Merge(src proto.Message)
func (*ClusterWatchResponse) XXX_Size ¶
func (m *ClusterWatchResponse) XXX_Size() int
func (*ClusterWatchResponse) XXX_Unmarshal ¶
func (m *ClusterWatchResponse) XXX_Unmarshal(b []byte) error
type ClusterWatchResponse_Event ¶
type ClusterWatchResponse_Event int32
const ( ClusterWatchResponse_UNKNOWN ClusterWatchResponse_Event = 0 ClusterWatchResponse_JOIN ClusterWatchResponse_Event = 1 ClusterWatchResponse_LEAVE ClusterWatchResponse_Event = 2 ClusterWatchResponse_UPDATE ClusterWatchResponse_Event = 3 )
func (ClusterWatchResponse_Event) EnumDescriptor ¶
func (ClusterWatchResponse_Event) EnumDescriptor() ([]byte, []int)
func (ClusterWatchResponse_Event) String ¶
func (x ClusterWatchResponse_Event) String() string
type DeleteRequest ¶
type DeleteRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetKey ¶
func (m *DeleteRequest) GetKey() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type GetRequest ¶
type GetRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetKey ¶
func (m *GetRequest) GetKey() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse struct {
// option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
// json_schema: {
// required: ["value"]
// },
// example: {
// value: '{ "fields": { "field1": "Get Example", "field2": "This is an example Get response." } }'
// }
// };
// google.protobuf.Any value = 1 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {type: 6}];
Value *any.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetValue ¶
func (m *GetResponse) GetValue() *any.Any
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type KeyValue ¶
type KeyValue struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*KeyValue) Descriptor ¶
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) XXX_DiscardUnknown ¶
func (m *KeyValue) XXX_DiscardUnknown()
func (*KeyValue) XXX_Marshal ¶
func (*KeyValue) XXX_Unmarshal ¶
type ManagementClient ¶
type ManagementClient interface {
NodeHealthCheck(ctx context.Context, in *NodeHealthCheckRequest, opts ...grpc.CallOption) (*NodeHealthCheckResponse, error)
NodeInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NodeInfoResponse, error)
ClusterJoin(ctx context.Context, in *ClusterJoinRequest, opts ...grpc.CallOption) (*empty.Empty, error)
ClusterLeave(ctx context.Context, in *ClusterLeaveRequest, opts ...grpc.CallOption) (*empty.Empty, error)
ClusterInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ClusterInfoResponse, error)
ClusterWatch(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Management_ClusterWatchClient, error)
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*empty.Empty, error)
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error)
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Management_WatchClient, error)
Snapshot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}
ManagementClient is the client API for Management service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewManagementClient ¶
func NewManagementClient(cc *grpc.ClientConn) ManagementClient
type ManagementServer ¶
type ManagementServer interface {
NodeHealthCheck(context.Context, *NodeHealthCheckRequest) (*NodeHealthCheckResponse, error)
NodeInfo(context.Context, *empty.Empty) (*NodeInfoResponse, error)
ClusterJoin(context.Context, *ClusterJoinRequest) (*empty.Empty, error)
ClusterLeave(context.Context, *ClusterLeaveRequest) (*empty.Empty, error)
ClusterInfo(context.Context, *empty.Empty) (*ClusterInfoResponse, error)
ClusterWatch(*empty.Empty, Management_ClusterWatchServer) error
Get(context.Context, *GetRequest) (*GetResponse, error)
Set(context.Context, *SetRequest) (*empty.Empty, error)
Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
Watch(*WatchRequest, Management_WatchServer) error
Snapshot(context.Context, *empty.Empty) (*empty.Empty, error)
}
ManagementServer is the server API for Management service.
type Management_ClusterWatchClient ¶
type Management_ClusterWatchClient interface {
Recv() (*ClusterWatchResponse, error)
grpc.ClientStream
}
type Management_ClusterWatchServer ¶
type Management_ClusterWatchServer interface {
Send(*ClusterWatchResponse) error
grpc.ServerStream
}
type Management_WatchClient ¶
type Management_WatchClient interface {
Recv() (*WatchResponse, error)
grpc.ClientStream
}
type Management_WatchServer ¶
type Management_WatchServer interface {
Send(*WatchResponse) error
grpc.ServerStream
}
type Metadata ¶
type Metadata struct {
GrpcAddress string `protobuf:"bytes,1,opt,name=grpc_address,json=grpcAddress,proto3" json:"grpc_address,omitempty"`
GrpcGatewayAddress string `protobuf:"bytes,2,opt,name=grpc_gateway_address,json=grpcGatewayAddress,proto3" json:"grpc_gateway_address,omitempty"`
HttpAddress string `protobuf:"bytes,3,opt,name=http_address,json=httpAddress,proto3" json:"http_address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Metadata) Descriptor ¶
func (*Metadata) GetGrpcAddress ¶
func (*Metadata) GetGrpcGatewayAddress ¶
func (*Metadata) GetHttpAddress ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_Unmarshal ¶
type Node ¶
type Node struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
BindAddress string `protobuf:"bytes,2,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
State Node_State `protobuf:"varint,3,opt,name=state,proto3,enum=management.Node_State" json:"state,omitempty"`
Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Node) Descriptor ¶
func (*Node) GetBindAddress ¶
func (*Node) GetMetadata ¶
func (*Node) GetState ¶
func (m *Node) GetState() Node_State
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type NodeHealthCheckRequest ¶
type NodeHealthCheckRequest struct {
Probe NodeHealthCheckRequest_Probe `protobuf:"varint,1,opt,name=probe,proto3,enum=management.NodeHealthCheckRequest_Probe" json:"probe,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*NodeHealthCheckRequest) Descriptor ¶
func (*NodeHealthCheckRequest) Descriptor() ([]byte, []int)
func (*NodeHealthCheckRequest) GetProbe ¶
func (m *NodeHealthCheckRequest) GetProbe() NodeHealthCheckRequest_Probe
func (*NodeHealthCheckRequest) ProtoMessage ¶
func (*NodeHealthCheckRequest) ProtoMessage()
func (*NodeHealthCheckRequest) Reset ¶
func (m *NodeHealthCheckRequest) Reset()
func (*NodeHealthCheckRequest) String ¶
func (m *NodeHealthCheckRequest) String() string
func (*NodeHealthCheckRequest) XXX_DiscardUnknown ¶
func (m *NodeHealthCheckRequest) XXX_DiscardUnknown()
func (*NodeHealthCheckRequest) XXX_Marshal ¶
func (m *NodeHealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeHealthCheckRequest) XXX_Merge ¶
func (m *NodeHealthCheckRequest) XXX_Merge(src proto.Message)
func (*NodeHealthCheckRequest) XXX_Size ¶
func (m *NodeHealthCheckRequest) XXX_Size() int
func (*NodeHealthCheckRequest) XXX_Unmarshal ¶
func (m *NodeHealthCheckRequest) XXX_Unmarshal(b []byte) error
type NodeHealthCheckRequest_Probe ¶
type NodeHealthCheckRequest_Probe int32
const ( NodeHealthCheckRequest_UNKNOWN NodeHealthCheckRequest_Probe = 0 NodeHealthCheckRequest_HEALTHINESS NodeHealthCheckRequest_Probe = 1 NodeHealthCheckRequest_LIVENESS NodeHealthCheckRequest_Probe = 2 NodeHealthCheckRequest_READINESS NodeHealthCheckRequest_Probe = 3 )
func (NodeHealthCheckRequest_Probe) EnumDescriptor ¶
func (NodeHealthCheckRequest_Probe) EnumDescriptor() ([]byte, []int)
func (NodeHealthCheckRequest_Probe) String ¶
func (x NodeHealthCheckRequest_Probe) String() string
type NodeHealthCheckResponse ¶
type NodeHealthCheckResponse struct {
State NodeHealthCheckResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=management.NodeHealthCheckResponse_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*NodeHealthCheckResponse) Descriptor ¶
func (*NodeHealthCheckResponse) Descriptor() ([]byte, []int)
func (*NodeHealthCheckResponse) GetState ¶
func (m *NodeHealthCheckResponse) GetState() NodeHealthCheckResponse_State
func (*NodeHealthCheckResponse) ProtoMessage ¶
func (*NodeHealthCheckResponse) ProtoMessage()
func (*NodeHealthCheckResponse) Reset ¶
func (m *NodeHealthCheckResponse) Reset()
func (*NodeHealthCheckResponse) String ¶
func (m *NodeHealthCheckResponse) String() string
func (*NodeHealthCheckResponse) XXX_DiscardUnknown ¶
func (m *NodeHealthCheckResponse) XXX_DiscardUnknown()
func (*NodeHealthCheckResponse) XXX_Marshal ¶
func (m *NodeHealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeHealthCheckResponse) XXX_Merge ¶
func (m *NodeHealthCheckResponse) XXX_Merge(src proto.Message)
func (*NodeHealthCheckResponse) XXX_Size ¶
func (m *NodeHealthCheckResponse) XXX_Size() int
func (*NodeHealthCheckResponse) XXX_Unmarshal ¶
func (m *NodeHealthCheckResponse) XXX_Unmarshal(b []byte) error
type NodeHealthCheckResponse_State ¶
type NodeHealthCheckResponse_State int32
const ( NodeHealthCheckResponse_UNKNOWN NodeHealthCheckResponse_State = 0 NodeHealthCheckResponse_HEALTHY NodeHealthCheckResponse_State = 1 NodeHealthCheckResponse_UNHEALTHY NodeHealthCheckResponse_State = 2 NodeHealthCheckResponse_ALIVE NodeHealthCheckResponse_State = 3 NodeHealthCheckResponse_DEAD NodeHealthCheckResponse_State = 4 NodeHealthCheckResponse_READY NodeHealthCheckResponse_State = 5 NodeHealthCheckResponse_NOT_READY NodeHealthCheckResponse_State = 6 )
func (NodeHealthCheckResponse_State) EnumDescriptor ¶
func (NodeHealthCheckResponse_State) EnumDescriptor() ([]byte, []int)
func (NodeHealthCheckResponse_State) String ¶
func (x NodeHealthCheckResponse_State) String() string
type NodeInfoResponse ¶
type NodeInfoResponse struct {
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*NodeInfoResponse) Descriptor ¶
func (*NodeInfoResponse) Descriptor() ([]byte, []int)
func (*NodeInfoResponse) GetNode ¶
func (m *NodeInfoResponse) GetNode() *Node
func (*NodeInfoResponse) ProtoMessage ¶
func (*NodeInfoResponse) ProtoMessage()
func (*NodeInfoResponse) Reset ¶
func (m *NodeInfoResponse) Reset()
func (*NodeInfoResponse) String ¶
func (m *NodeInfoResponse) String() string
func (*NodeInfoResponse) XXX_DiscardUnknown ¶
func (m *NodeInfoResponse) XXX_DiscardUnknown()
func (*NodeInfoResponse) XXX_Marshal ¶
func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeInfoResponse) XXX_Merge ¶
func (m *NodeInfoResponse) XXX_Merge(src proto.Message)
func (*NodeInfoResponse) XXX_Size ¶
func (m *NodeInfoResponse) XXX_Size() int
func (*NodeInfoResponse) XXX_Unmarshal ¶
func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error
type Node_State ¶
type Node_State int32
const ( Node_UNKNOWN Node_State = 0 Node_FOLLOWER Node_State = 1 Node_CANDIDATE Node_State = 2 Node_LEADER Node_State = 3 Node_SHUTDOWN Node_State = 4 )
func (Node_State) EnumDescriptor ¶
func (Node_State) EnumDescriptor() ([]byte, []int)
func (Node_State) String ¶
func (x Node_State) String() string
type Proposal ¶
type Proposal struct {
Event Proposal_Event `protobuf:"varint,1,opt,name=event,proto3,enum=management.Proposal_Event" json:"event,omitempty"`
Node *Node `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
KeyValue *KeyValue `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Proposal) Descriptor ¶
func (*Proposal) GetEvent ¶
func (m *Proposal) GetEvent() Proposal_Event
func (*Proposal) GetKeyValue ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) XXX_DiscardUnknown ¶
func (m *Proposal) XXX_DiscardUnknown()
func (*Proposal) XXX_Marshal ¶
func (*Proposal) XXX_Unmarshal ¶
type Proposal_Event ¶
type Proposal_Event int32
const ( Proposal_UNKNOWN Proposal_Event = 0 Proposal_SET_NODE Proposal_Event = 1 Proposal_DELETE_NODE Proposal_Event = 2 Proposal_SET_VALUE Proposal_Event = 3 Proposal_DELETE_VALUE Proposal_Event = 4 )
func (Proposal_Event) EnumDescriptor ¶
func (Proposal_Event) EnumDescriptor() ([]byte, []int)
func (Proposal_Event) String ¶
func (x Proposal_Event) String() string
type SetRequest ¶
type SetRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SetRequest) Descriptor ¶
func (*SetRequest) Descriptor() ([]byte, []int)
func (*SetRequest) GetKey ¶
func (m *SetRequest) GetKey() string
func (*SetRequest) GetValue ¶
func (m *SetRequest) GetValue() *any.Any
func (*SetRequest) ProtoMessage ¶
func (*SetRequest) ProtoMessage()
func (*SetRequest) Reset ¶
func (m *SetRequest) Reset()
func (*SetRequest) String ¶
func (m *SetRequest) String() string
func (*SetRequest) XXX_DiscardUnknown ¶
func (m *SetRequest) XXX_DiscardUnknown()
func (*SetRequest) XXX_Marshal ¶
func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetRequest) XXX_Merge ¶
func (m *SetRequest) XXX_Merge(src proto.Message)
func (*SetRequest) XXX_Size ¶
func (m *SetRequest) XXX_Size() int
func (*SetRequest) XXX_Unmarshal ¶
func (m *SetRequest) XXX_Unmarshal(b []byte) error
type UnimplementedManagementServer ¶
type UnimplementedManagementServer struct {
}
UnimplementedManagementServer can be embedded to have forward compatible implementations.
func (*UnimplementedManagementServer) ClusterInfo ¶
func (*UnimplementedManagementServer) ClusterInfo(ctx context.Context, req *empty.Empty) (*ClusterInfoResponse, error)
func (*UnimplementedManagementServer) ClusterJoin ¶
func (*UnimplementedManagementServer) ClusterJoin(ctx context.Context, req *ClusterJoinRequest) (*empty.Empty, error)
func (*UnimplementedManagementServer) ClusterLeave ¶
func (*UnimplementedManagementServer) ClusterLeave(ctx context.Context, req *ClusterLeaveRequest) (*empty.Empty, error)
func (*UnimplementedManagementServer) ClusterWatch ¶
func (*UnimplementedManagementServer) ClusterWatch(req *empty.Empty, srv Management_ClusterWatchServer) error
func (*UnimplementedManagementServer) Delete ¶
func (*UnimplementedManagementServer) Delete(ctx context.Context, req *DeleteRequest) (*empty.Empty, error)
func (*UnimplementedManagementServer) Get ¶
func (*UnimplementedManagementServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error)
func (*UnimplementedManagementServer) NodeHealthCheck ¶
func (*UnimplementedManagementServer) NodeHealthCheck(ctx context.Context, req *NodeHealthCheckRequest) (*NodeHealthCheckResponse, error)
func (*UnimplementedManagementServer) NodeInfo ¶
func (*UnimplementedManagementServer) NodeInfo(ctx context.Context, req *empty.Empty) (*NodeInfoResponse, error)
func (*UnimplementedManagementServer) Set ¶
func (*UnimplementedManagementServer) Set(ctx context.Context, req *SetRequest) (*empty.Empty, error)
func (*UnimplementedManagementServer) Watch ¶
func (*UnimplementedManagementServer) Watch(req *WatchRequest, srv Management_WatchServer) error
type WatchRequest ¶
type WatchRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*WatchRequest) Descriptor ¶
func (*WatchRequest) Descriptor() ([]byte, []int)
func (*WatchRequest) GetKey ¶
func (m *WatchRequest) GetKey() string
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) Reset ¶
func (m *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (m *WatchRequest) String() string
func (*WatchRequest) XXX_DiscardUnknown ¶
func (m *WatchRequest) XXX_DiscardUnknown()
func (*WatchRequest) XXX_Marshal ¶
func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WatchRequest) XXX_Merge ¶
func (m *WatchRequest) XXX_Merge(src proto.Message)
func (*WatchRequest) XXX_Size ¶
func (m *WatchRequest) XXX_Size() int
func (*WatchRequest) XXX_Unmarshal ¶
func (m *WatchRequest) XXX_Unmarshal(b []byte) error
type WatchResponse ¶
type WatchResponse struct {
Command WatchResponse_Command `protobuf:"varint,1,opt,name=command,proto3,enum=management.WatchResponse_Command" json:"command,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Value *any.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*WatchResponse) Descriptor ¶
func (*WatchResponse) Descriptor() ([]byte, []int)
func (*WatchResponse) GetCommand ¶
func (m *WatchResponse) GetCommand() WatchResponse_Command
func (*WatchResponse) GetKey ¶
func (m *WatchResponse) GetKey() string
func (*WatchResponse) GetValue ¶
func (m *WatchResponse) GetValue() *any.Any
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) Reset ¶
func (m *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (m *WatchResponse) String() string
func (*WatchResponse) XXX_DiscardUnknown ¶
func (m *WatchResponse) XXX_DiscardUnknown()
func (*WatchResponse) XXX_Marshal ¶
func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WatchResponse) XXX_Merge ¶
func (m *WatchResponse) XXX_Merge(src proto.Message)
func (*WatchResponse) XXX_Size ¶
func (m *WatchResponse) XXX_Size() int
func (*WatchResponse) XXX_Unmarshal ¶
func (m *WatchResponse) XXX_Unmarshal(b []byte) error
type WatchResponse_Command ¶
type WatchResponse_Command int32
const ( WatchResponse_UNKNOWN WatchResponse_Command = 0 WatchResponse_SET WatchResponse_Command = 1 WatchResponse_DELETE WatchResponse_Command = 2 )
func (WatchResponse_Command) EnumDescriptor ¶
func (WatchResponse_Command) EnumDescriptor() ([]byte, []int)
func (WatchResponse_Command) String ¶
func (x WatchResponse_Command) String() string