Documentation ¶
Overview ¶
Package protobuf is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterKVSHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterKVSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KVSClient) error
- func RegisterKVSHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterKVSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KVSServer) error
- func RegisterKVSServer(s *grpc.Server, srv KVSServer)
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetLeader() string
- 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 ClusterResponse
- func (*ClusterResponse) Descriptor() ([]byte, []int)
- func (m *ClusterResponse) GetCluster() *Cluster
- func (*ClusterResponse) ProtoMessage()
- func (m *ClusterResponse) Reset()
- func (m *ClusterResponse) String() string
- func (m *ClusterResponse) XXX_DiscardUnknown()
- func (m *ClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterResponse) XXX_Merge(src proto.Message)
- func (m *ClusterResponse) XXX_Size() int
- func (m *ClusterResponse) XXX_Unmarshal(b []byte) error
- type DeleteMetadataRequest
- func (*DeleteMetadataRequest) Descriptor() ([]byte, []int)
- func (m *DeleteMetadataRequest) GetId() string
- func (*DeleteMetadataRequest) ProtoMessage()
- func (m *DeleteMetadataRequest) Reset()
- func (m *DeleteMetadataRequest) String() string
- func (m *DeleteMetadataRequest) XXX_DiscardUnknown()
- func (m *DeleteMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteMetadataRequest) XXX_Merge(src proto.Message)
- func (m *DeleteMetadataRequest) XXX_Size() int
- func (m *DeleteMetadataRequest) XXX_Unmarshal(b []byte) error
- 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 Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetData() *any.Any
- func (m *Event) GetType() Event_Type
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Event_Type
- 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() []byte
- 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 JoinRequest
- func (*JoinRequest) Descriptor() ([]byte, []int)
- func (m *JoinRequest) GetId() string
- func (m *JoinRequest) GetNode() *Node
- func (*JoinRequest) ProtoMessage()
- func (m *JoinRequest) Reset()
- func (m *JoinRequest) String() string
- func (m *JoinRequest) XXX_DiscardUnknown()
- func (m *JoinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JoinRequest) XXX_Merge(src proto.Message)
- func (m *JoinRequest) XXX_Size() int
- func (m *JoinRequest) XXX_Unmarshal(b []byte) error
- type KVSClient
- type KVSServer
- type KVS_WatchClient
- type KVS_WatchServer
- type KeyValuePair
- func (*KeyValuePair) Descriptor() ([]byte, []int)
- func (m *KeyValuePair) GetKey() string
- func (m *KeyValuePair) GetValue() []byte
- func (*KeyValuePair) ProtoMessage()
- func (m *KeyValuePair) Reset()
- func (m *KeyValuePair) String() string
- func (m *KeyValuePair) XXX_DiscardUnknown()
- func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValuePair) XXX_Merge(src proto.Message)
- func (m *KeyValuePair) XXX_Size() int
- func (m *KeyValuePair) XXX_Unmarshal(b []byte) error
- type LeaveRequest
- func (*LeaveRequest) Descriptor() ([]byte, []int)
- func (m *LeaveRequest) GetId() string
- func (*LeaveRequest) ProtoMessage()
- func (m *LeaveRequest) Reset()
- func (m *LeaveRequest) String() string
- func (m *LeaveRequest) XXX_DiscardUnknown()
- func (m *LeaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaveRequest) XXX_Merge(src proto.Message)
- func (m *LeaveRequest) XXX_Size() int
- func (m *LeaveRequest) XXX_Unmarshal(b []byte) error
- type LivenessCheckResponse
- func (*LivenessCheckResponse) Descriptor() ([]byte, []int)
- func (m *LivenessCheckResponse) GetAlive() bool
- func (*LivenessCheckResponse) ProtoMessage()
- func (m *LivenessCheckResponse) Reset()
- func (m *LivenessCheckResponse) String() string
- func (m *LivenessCheckResponse) XXX_DiscardUnknown()
- func (m *LivenessCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LivenessCheckResponse) XXX_Merge(src proto.Message)
- func (m *LivenessCheckResponse) XXX_Size() int
- func (m *LivenessCheckResponse) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetGrpcAddress() 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 MetricsResponse
- func (*MetricsResponse) Descriptor() ([]byte, []int)
- func (m *MetricsResponse) GetMetrics() []byte
- func (*MetricsResponse) ProtoMessage()
- func (m *MetricsResponse) Reset()
- func (m *MetricsResponse) String() string
- func (m *MetricsResponse) XXX_DiscardUnknown()
- func (m *MetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetricsResponse) XXX_Merge(src proto.Message)
- func (m *MetricsResponse) XXX_Size() int
- func (m *MetricsResponse) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetMetadata() *Metadata
- func (m *Node) GetRaftAddress() string
- func (m *Node) GetState() string
- 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 NodeResponse
- func (*NodeResponse) Descriptor() ([]byte, []int)
- func (m *NodeResponse) GetNode() *Node
- func (*NodeResponse) ProtoMessage()
- func (m *NodeResponse) Reset()
- func (m *NodeResponse) String() string
- func (m *NodeResponse) XXX_DiscardUnknown()
- func (m *NodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeResponse) XXX_Merge(src proto.Message)
- func (m *NodeResponse) XXX_Size() int
- func (m *NodeResponse) XXX_Unmarshal(b []byte) error
- type ReadinessCheckResponse
- func (*ReadinessCheckResponse) Descriptor() ([]byte, []int)
- func (m *ReadinessCheckResponse) GetReady() bool
- func (*ReadinessCheckResponse) ProtoMessage()
- func (m *ReadinessCheckResponse) Reset()
- func (m *ReadinessCheckResponse) String() string
- func (m *ReadinessCheckResponse) XXX_DiscardUnknown()
- func (m *ReadinessCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadinessCheckResponse) XXX_Merge(src proto.Message)
- func (m *ReadinessCheckResponse) XXX_Size() int
- func (m *ReadinessCheckResponse) XXX_Unmarshal(b []byte) error
- type ScanRequest
- func (*ScanRequest) Descriptor() ([]byte, []int)
- func (m *ScanRequest) GetPrefix() string
- func (*ScanRequest) ProtoMessage()
- func (m *ScanRequest) Reset()
- func (m *ScanRequest) String() string
- func (m *ScanRequest) XXX_DiscardUnknown()
- func (m *ScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScanRequest) XXX_Merge(src proto.Message)
- func (m *ScanRequest) XXX_Size() int
- func (m *ScanRequest) XXX_Unmarshal(b []byte) error
- type ScanResponse
- func (*ScanResponse) Descriptor() ([]byte, []int)
- func (m *ScanResponse) GetValues() [][]byte
- func (*ScanResponse) ProtoMessage()
- func (m *ScanResponse) Reset()
- func (m *ScanResponse) String() string
- func (m *ScanResponse) XXX_DiscardUnknown()
- func (m *ScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScanResponse) XXX_Merge(src proto.Message)
- func (m *ScanResponse) XXX_Size() int
- func (m *ScanResponse) XXX_Unmarshal(b []byte) error
- type SetMetadataRequest
- func (*SetMetadataRequest) Descriptor() ([]byte, []int)
- func (m *SetMetadataRequest) GetId() string
- func (m *SetMetadataRequest) GetMetadata() *Metadata
- func (*SetMetadataRequest) ProtoMessage()
- func (m *SetMetadataRequest) Reset()
- func (m *SetMetadataRequest) String() string
- func (m *SetMetadataRequest) XXX_DiscardUnknown()
- func (m *SetMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetMetadataRequest) XXX_Merge(src proto.Message)
- func (m *SetMetadataRequest) XXX_Size() int
- func (m *SetMetadataRequest) XXX_Unmarshal(b []byte) error
- type SetRequest
- func (*SetRequest) Descriptor() ([]byte, []int)
- func (m *SetRequest) GetKey() string
- func (m *SetRequest) GetValue() []byte
- 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 UnimplementedKVSServer
- func (*UnimplementedKVSServer) Cluster(ctx context.Context, req *empty.Empty) (*ClusterResponse, error)
- func (*UnimplementedKVSServer) Delete(ctx context.Context, req *DeleteRequest) (*empty.Empty, error)
- func (*UnimplementedKVSServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error)
- func (*UnimplementedKVSServer) Join(ctx context.Context, req *JoinRequest) (*empty.Empty, error)
- func (*UnimplementedKVSServer) Leave(ctx context.Context, req *LeaveRequest) (*empty.Empty, error)
- func (*UnimplementedKVSServer) LivenessCheck(ctx context.Context, req *empty.Empty) (*LivenessCheckResponse, error)
- func (*UnimplementedKVSServer) Metrics(ctx context.Context, req *empty.Empty) (*MetricsResponse, error)
- func (*UnimplementedKVSServer) Node(ctx context.Context, req *empty.Empty) (*NodeResponse, error)
- func (*UnimplementedKVSServer) ReadinessCheck(ctx context.Context, req *empty.Empty) (*ReadinessCheckResponse, error)
- func (*UnimplementedKVSServer) Scan(ctx context.Context, req *ScanRequest) (*ScanResponse, error)
- func (*UnimplementedKVSServer) Set(ctx context.Context, req *SetRequest) (*empty.Empty, error)
- func (*UnimplementedKVSServer) Snapshot(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedKVSServer) Watch(req *empty.Empty, srv KVS_WatchServer) error
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)
- func (m *WatchResponse) GetEvent() *Event
- 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
Constants ¶
This section is empty.
Variables ¶
var Event_Type_name = map[int32]string{
0: "Unknown",
1: "Join",
2: "Leave",
3: "Set",
4: "Delete",
}
var Event_Type_value = map[string]int32{
"Unknown": 0,
"Join": 1,
"Leave": 2,
"Set": 3,
"Delete": 4,
}
Functions ¶
func RegisterKVSHandler ¶
RegisterKVSHandler registers the http handlers for service KVS to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterKVSHandlerClient ¶
RegisterKVSHandlerClient registers the http handlers for service KVS to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KVSClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KVSClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KVSClient" to call the correct interceptors.
func RegisterKVSHandlerFromEndpoint ¶
func RegisterKVSHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterKVSHandlerFromEndpoint is same as RegisterKVSHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterKVSHandlerServer ¶
RegisterKVSHandlerServer registers the http handlers for service KVS to "mux". UnaryRPC :call KVSServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterKVSServer ¶
Types ¶
type Cluster ¶
type Cluster struct { Nodes map[string]*Node `` /* 151-byte string literal not displayed */ Leader string `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` 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 ClusterResponse ¶
type ClusterResponse 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 (*ClusterResponse) Descriptor ¶
func (*ClusterResponse) Descriptor() ([]byte, []int)
func (*ClusterResponse) GetCluster ¶
func (m *ClusterResponse) GetCluster() *Cluster
func (*ClusterResponse) ProtoMessage ¶
func (*ClusterResponse) ProtoMessage()
func (*ClusterResponse) Reset ¶
func (m *ClusterResponse) Reset()
func (*ClusterResponse) String ¶
func (m *ClusterResponse) String() string
func (*ClusterResponse) XXX_DiscardUnknown ¶
func (m *ClusterResponse) XXX_DiscardUnknown()
func (*ClusterResponse) XXX_Marshal ¶
func (m *ClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterResponse) XXX_Merge ¶
func (m *ClusterResponse) XXX_Merge(src proto.Message)
func (*ClusterResponse) XXX_Size ¶
func (m *ClusterResponse) XXX_Size() int
func (*ClusterResponse) XXX_Unmarshal ¶
func (m *ClusterResponse) XXX_Unmarshal(b []byte) error
type DeleteMetadataRequest ¶
type DeleteMetadataRequest 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 (*DeleteMetadataRequest) Descriptor ¶
func (*DeleteMetadataRequest) Descriptor() ([]byte, []int)
func (*DeleteMetadataRequest) GetId ¶
func (m *DeleteMetadataRequest) GetId() string
func (*DeleteMetadataRequest) ProtoMessage ¶
func (*DeleteMetadataRequest) ProtoMessage()
func (*DeleteMetadataRequest) Reset ¶
func (m *DeleteMetadataRequest) Reset()
func (*DeleteMetadataRequest) String ¶
func (m *DeleteMetadataRequest) String() string
func (*DeleteMetadataRequest) XXX_DiscardUnknown ¶
func (m *DeleteMetadataRequest) XXX_DiscardUnknown()
func (*DeleteMetadataRequest) XXX_Marshal ¶
func (m *DeleteMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteMetadataRequest) XXX_Merge ¶
func (m *DeleteMetadataRequest) XXX_Merge(src proto.Message)
func (*DeleteMetadataRequest) XXX_Size ¶
func (m *DeleteMetadataRequest) XXX_Size() int
func (*DeleteMetadataRequest) XXX_Unmarshal ¶
func (m *DeleteMetadataRequest) XXX_Unmarshal(b []byte) error
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 Event ¶
type Event struct { Type Event_Type `protobuf:"varint,1,opt,name=type,proto3,enum=kvs.Event_Type" json:"type,omitempty"` Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetType ¶
func (m *Event) GetType() Event_Type
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type Event_Type ¶
type Event_Type int32
const ( Event_Unknown Event_Type = 0 Event_Join Event_Type = 1 Event_Leave Event_Type = 2 Event_Set Event_Type = 3 Event_Delete Event_Type = 4 )
func (Event_Type) EnumDescriptor ¶
func (Event_Type) EnumDescriptor() ([]byte, []int)
func (Event_Type) String ¶
func (x Event_Type) String() string
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 { Value []byte `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() []byte
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 JoinRequest ¶
type JoinRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Node *Node `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JoinRequest) Descriptor ¶
func (*JoinRequest) Descriptor() ([]byte, []int)
func (*JoinRequest) GetId ¶
func (m *JoinRequest) GetId() string
func (*JoinRequest) GetNode ¶
func (m *JoinRequest) GetNode() *Node
func (*JoinRequest) ProtoMessage ¶
func (*JoinRequest) ProtoMessage()
func (*JoinRequest) Reset ¶
func (m *JoinRequest) Reset()
func (*JoinRequest) String ¶
func (m *JoinRequest) String() string
func (*JoinRequest) XXX_DiscardUnknown ¶
func (m *JoinRequest) XXX_DiscardUnknown()
func (*JoinRequest) XXX_Marshal ¶
func (m *JoinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JoinRequest) XXX_Merge ¶
func (m *JoinRequest) XXX_Merge(src proto.Message)
func (*JoinRequest) XXX_Size ¶
func (m *JoinRequest) XXX_Size() int
func (*JoinRequest) XXX_Unmarshal ¶
func (m *JoinRequest) XXX_Unmarshal(b []byte) error
type KVSClient ¶
type KVSClient interface { LivenessCheck(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LivenessCheckResponse, error) ReadinessCheck(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReadinessCheckResponse, error) Node(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NodeResponse, error) Join(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (*empty.Empty, error) Cluster(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ClusterResponse, error) Leave(ctx context.Context, in *LeaveRequest, opts ...grpc.CallOption) (*empty.Empty, error) Snapshot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Scan(ctx context.Context, in *ScanRequest, opts ...grpc.CallOption) (*ScanResponse, 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 *empty.Empty, opts ...grpc.CallOption) (KVS_WatchClient, error) Metrics(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MetricsResponse, error) }
KVSClient is the client API for KVS service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewKVSClient ¶
func NewKVSClient(cc grpc.ClientConnInterface) KVSClient
type KVSServer ¶
type KVSServer interface { LivenessCheck(context.Context, *empty.Empty) (*LivenessCheckResponse, error) ReadinessCheck(context.Context, *empty.Empty) (*ReadinessCheckResponse, error) Node(context.Context, *empty.Empty) (*NodeResponse, error) Join(context.Context, *JoinRequest) (*empty.Empty, error) Cluster(context.Context, *empty.Empty) (*ClusterResponse, error) Leave(context.Context, *LeaveRequest) (*empty.Empty, error) Snapshot(context.Context, *empty.Empty) (*empty.Empty, error) Get(context.Context, *GetRequest) (*GetResponse, error) Scan(context.Context, *ScanRequest) (*ScanResponse, error) Set(context.Context, *SetRequest) (*empty.Empty, error) Delete(context.Context, *DeleteRequest) (*empty.Empty, error) Watch(*empty.Empty, KVS_WatchServer) error Metrics(context.Context, *empty.Empty) (*MetricsResponse, error) }
KVSServer is the server API for KVS service.
type KVS_WatchClient ¶
type KVS_WatchClient interface { Recv() (*WatchResponse, error) grpc.ClientStream }
type KVS_WatchServer ¶
type KVS_WatchServer interface { Send(*WatchResponse) error grpc.ServerStream }
type KeyValuePair ¶
type KeyValuePair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyValuePair) Descriptor ¶
func (*KeyValuePair) Descriptor() ([]byte, []int)
func (*KeyValuePair) GetKey ¶
func (m *KeyValuePair) GetKey() string
func (*KeyValuePair) GetValue ¶
func (m *KeyValuePair) GetValue() []byte
func (*KeyValuePair) ProtoMessage ¶
func (*KeyValuePair) ProtoMessage()
func (*KeyValuePair) Reset ¶
func (m *KeyValuePair) Reset()
func (*KeyValuePair) String ¶
func (m *KeyValuePair) String() string
func (*KeyValuePair) XXX_DiscardUnknown ¶
func (m *KeyValuePair) XXX_DiscardUnknown()
func (*KeyValuePair) XXX_Marshal ¶
func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyValuePair) XXX_Merge ¶
func (m *KeyValuePair) XXX_Merge(src proto.Message)
func (*KeyValuePair) XXX_Size ¶
func (m *KeyValuePair) XXX_Size() int
func (*KeyValuePair) XXX_Unmarshal ¶
func (m *KeyValuePair) XXX_Unmarshal(b []byte) error
type LeaveRequest ¶
type LeaveRequest 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 (*LeaveRequest) Descriptor ¶
func (*LeaveRequest) Descriptor() ([]byte, []int)
func (*LeaveRequest) GetId ¶
func (m *LeaveRequest) GetId() string
func (*LeaveRequest) ProtoMessage ¶
func (*LeaveRequest) ProtoMessage()
func (*LeaveRequest) Reset ¶
func (m *LeaveRequest) Reset()
func (*LeaveRequest) String ¶
func (m *LeaveRequest) String() string
func (*LeaveRequest) XXX_DiscardUnknown ¶
func (m *LeaveRequest) XXX_DiscardUnknown()
func (*LeaveRequest) XXX_Marshal ¶
func (m *LeaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaveRequest) XXX_Merge ¶
func (m *LeaveRequest) XXX_Merge(src proto.Message)
func (*LeaveRequest) XXX_Size ¶
func (m *LeaveRequest) XXX_Size() int
func (*LeaveRequest) XXX_Unmarshal ¶
func (m *LeaveRequest) XXX_Unmarshal(b []byte) error
type LivenessCheckResponse ¶
type LivenessCheckResponse struct { Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LivenessCheckResponse) Descriptor ¶
func (*LivenessCheckResponse) Descriptor() ([]byte, []int)
func (*LivenessCheckResponse) GetAlive ¶
func (m *LivenessCheckResponse) GetAlive() bool
func (*LivenessCheckResponse) ProtoMessage ¶
func (*LivenessCheckResponse) ProtoMessage()
func (*LivenessCheckResponse) Reset ¶
func (m *LivenessCheckResponse) Reset()
func (*LivenessCheckResponse) String ¶
func (m *LivenessCheckResponse) String() string
func (*LivenessCheckResponse) XXX_DiscardUnknown ¶
func (m *LivenessCheckResponse) XXX_DiscardUnknown()
func (*LivenessCheckResponse) XXX_Marshal ¶
func (m *LivenessCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LivenessCheckResponse) XXX_Merge ¶
func (m *LivenessCheckResponse) XXX_Merge(src proto.Message)
func (*LivenessCheckResponse) XXX_Size ¶
func (m *LivenessCheckResponse) XXX_Size() int
func (*LivenessCheckResponse) XXX_Unmarshal ¶
func (m *LivenessCheckResponse) XXX_Unmarshal(b []byte) error
type Metadata ¶
type Metadata struct { GrpcAddress string `protobuf:"bytes,1,opt,name=grpc_address,json=grpcAddress,proto3" json:"grpc_address,omitempty"` HttpAddress string `protobuf:"bytes,2,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) 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 MetricsResponse ¶
type MetricsResponse struct { Metrics []byte `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MetricsResponse) Descriptor ¶
func (*MetricsResponse) Descriptor() ([]byte, []int)
func (*MetricsResponse) GetMetrics ¶
func (m *MetricsResponse) GetMetrics() []byte
func (*MetricsResponse) ProtoMessage ¶
func (*MetricsResponse) ProtoMessage()
func (*MetricsResponse) Reset ¶
func (m *MetricsResponse) Reset()
func (*MetricsResponse) String ¶
func (m *MetricsResponse) String() string
func (*MetricsResponse) XXX_DiscardUnknown ¶
func (m *MetricsResponse) XXX_DiscardUnknown()
func (*MetricsResponse) XXX_Marshal ¶
func (m *MetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetricsResponse) XXX_Merge ¶
func (m *MetricsResponse) XXX_Merge(src proto.Message)
func (*MetricsResponse) XXX_Size ¶
func (m *MetricsResponse) XXX_Size() int
func (*MetricsResponse) XXX_Unmarshal ¶
func (m *MetricsResponse) XXX_Unmarshal(b []byte) error
type Node ¶
type Node struct { RaftAddress string `protobuf:"bytes,1,opt,name=raft_address,json=raftAddress,proto3" json:"raft_address,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node) Descriptor ¶
func (*Node) GetMetadata ¶
func (*Node) GetRaftAddress ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type NodeResponse ¶
type NodeResponse 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 (*NodeResponse) Descriptor ¶
func (*NodeResponse) Descriptor() ([]byte, []int)
func (*NodeResponse) GetNode ¶
func (m *NodeResponse) GetNode() *Node
func (*NodeResponse) ProtoMessage ¶
func (*NodeResponse) ProtoMessage()
func (*NodeResponse) Reset ¶
func (m *NodeResponse) Reset()
func (*NodeResponse) String ¶
func (m *NodeResponse) String() string
func (*NodeResponse) XXX_DiscardUnknown ¶
func (m *NodeResponse) XXX_DiscardUnknown()
func (*NodeResponse) XXX_Marshal ¶
func (m *NodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeResponse) XXX_Merge ¶
func (m *NodeResponse) XXX_Merge(src proto.Message)
func (*NodeResponse) XXX_Size ¶
func (m *NodeResponse) XXX_Size() int
func (*NodeResponse) XXX_Unmarshal ¶
func (m *NodeResponse) XXX_Unmarshal(b []byte) error
type ReadinessCheckResponse ¶
type ReadinessCheckResponse struct { Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadinessCheckResponse) Descriptor ¶
func (*ReadinessCheckResponse) Descriptor() ([]byte, []int)
func (*ReadinessCheckResponse) GetReady ¶
func (m *ReadinessCheckResponse) GetReady() bool
func (*ReadinessCheckResponse) ProtoMessage ¶
func (*ReadinessCheckResponse) ProtoMessage()
func (*ReadinessCheckResponse) Reset ¶
func (m *ReadinessCheckResponse) Reset()
func (*ReadinessCheckResponse) String ¶
func (m *ReadinessCheckResponse) String() string
func (*ReadinessCheckResponse) XXX_DiscardUnknown ¶
func (m *ReadinessCheckResponse) XXX_DiscardUnknown()
func (*ReadinessCheckResponse) XXX_Marshal ¶
func (m *ReadinessCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadinessCheckResponse) XXX_Merge ¶
func (m *ReadinessCheckResponse) XXX_Merge(src proto.Message)
func (*ReadinessCheckResponse) XXX_Size ¶
func (m *ReadinessCheckResponse) XXX_Size() int
func (*ReadinessCheckResponse) XXX_Unmarshal ¶
func (m *ReadinessCheckResponse) XXX_Unmarshal(b []byte) error
type ScanRequest ¶
type ScanRequest struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ScanRequest) Descriptor ¶
func (*ScanRequest) Descriptor() ([]byte, []int)
func (*ScanRequest) GetPrefix ¶
func (m *ScanRequest) GetPrefix() string
func (*ScanRequest) ProtoMessage ¶
func (*ScanRequest) ProtoMessage()
func (*ScanRequest) Reset ¶
func (m *ScanRequest) Reset()
func (*ScanRequest) String ¶
func (m *ScanRequest) String() string
func (*ScanRequest) XXX_DiscardUnknown ¶
func (m *ScanRequest) XXX_DiscardUnknown()
func (*ScanRequest) XXX_Marshal ¶
func (m *ScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScanRequest) XXX_Merge ¶
func (m *ScanRequest) XXX_Merge(src proto.Message)
func (*ScanRequest) XXX_Size ¶
func (m *ScanRequest) XXX_Size() int
func (*ScanRequest) XXX_Unmarshal ¶
func (m *ScanRequest) XXX_Unmarshal(b []byte) error
type ScanResponse ¶
type ScanResponse struct { Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ScanResponse) Descriptor ¶
func (*ScanResponse) Descriptor() ([]byte, []int)
func (*ScanResponse) GetValues ¶
func (m *ScanResponse) GetValues() [][]byte
func (*ScanResponse) ProtoMessage ¶
func (*ScanResponse) ProtoMessage()
func (*ScanResponse) Reset ¶
func (m *ScanResponse) Reset()
func (*ScanResponse) String ¶
func (m *ScanResponse) String() string
func (*ScanResponse) XXX_DiscardUnknown ¶
func (m *ScanResponse) XXX_DiscardUnknown()
func (*ScanResponse) XXX_Marshal ¶
func (m *ScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScanResponse) XXX_Merge ¶
func (m *ScanResponse) XXX_Merge(src proto.Message)
func (*ScanResponse) XXX_Size ¶
func (m *ScanResponse) XXX_Size() int
func (*ScanResponse) XXX_Unmarshal ¶
func (m *ScanResponse) XXX_Unmarshal(b []byte) error
type SetMetadataRequest ¶
type SetMetadataRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetMetadataRequest) Descriptor ¶
func (*SetMetadataRequest) Descriptor() ([]byte, []int)
func (*SetMetadataRequest) GetId ¶
func (m *SetMetadataRequest) GetId() string
func (*SetMetadataRequest) GetMetadata ¶
func (m *SetMetadataRequest) GetMetadata() *Metadata
func (*SetMetadataRequest) ProtoMessage ¶
func (*SetMetadataRequest) ProtoMessage()
func (*SetMetadataRequest) Reset ¶
func (m *SetMetadataRequest) Reset()
func (*SetMetadataRequest) String ¶
func (m *SetMetadataRequest) String() string
func (*SetMetadataRequest) XXX_DiscardUnknown ¶
func (m *SetMetadataRequest) XXX_DiscardUnknown()
func (*SetMetadataRequest) XXX_Marshal ¶
func (m *SetMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetMetadataRequest) XXX_Merge ¶
func (m *SetMetadataRequest) XXX_Merge(src proto.Message)
func (*SetMetadataRequest) XXX_Size ¶
func (m *SetMetadataRequest) XXX_Size() int
func (*SetMetadataRequest) XXX_Unmarshal ¶
func (m *SetMetadataRequest) XXX_Unmarshal(b []byte) error
type SetRequest ¶
type SetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `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() []byte
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 UnimplementedKVSServer ¶
type UnimplementedKVSServer struct { }
UnimplementedKVSServer can be embedded to have forward compatible implementations.
func (*UnimplementedKVSServer) Cluster ¶
func (*UnimplementedKVSServer) Cluster(ctx context.Context, req *empty.Empty) (*ClusterResponse, error)
func (*UnimplementedKVSServer) Delete ¶
func (*UnimplementedKVSServer) Delete(ctx context.Context, req *DeleteRequest) (*empty.Empty, error)
func (*UnimplementedKVSServer) Get ¶
func (*UnimplementedKVSServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error)
func (*UnimplementedKVSServer) Join ¶
func (*UnimplementedKVSServer) Join(ctx context.Context, req *JoinRequest) (*empty.Empty, error)
func (*UnimplementedKVSServer) Leave ¶
func (*UnimplementedKVSServer) Leave(ctx context.Context, req *LeaveRequest) (*empty.Empty, error)
func (*UnimplementedKVSServer) LivenessCheck ¶
func (*UnimplementedKVSServer) LivenessCheck(ctx context.Context, req *empty.Empty) (*LivenessCheckResponse, error)
func (*UnimplementedKVSServer) Metrics ¶
func (*UnimplementedKVSServer) Metrics(ctx context.Context, req *empty.Empty) (*MetricsResponse, error)
func (*UnimplementedKVSServer) Node ¶
func (*UnimplementedKVSServer) Node(ctx context.Context, req *empty.Empty) (*NodeResponse, error)
func (*UnimplementedKVSServer) ReadinessCheck ¶
func (*UnimplementedKVSServer) ReadinessCheck(ctx context.Context, req *empty.Empty) (*ReadinessCheckResponse, error)
func (*UnimplementedKVSServer) Scan ¶
func (*UnimplementedKVSServer) Scan(ctx context.Context, req *ScanRequest) (*ScanResponse, error)
func (*UnimplementedKVSServer) Set ¶
func (*UnimplementedKVSServer) Set(ctx context.Context, req *SetRequest) (*empty.Empty, error)
func (*UnimplementedKVSServer) Watch ¶
func (*UnimplementedKVSServer) Watch(req *empty.Empty, srv KVS_WatchServer) error
type WatchResponse ¶
type WatchResponse struct { Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WatchResponse) Descriptor ¶
func (*WatchResponse) Descriptor() ([]byte, []int)
func (*WatchResponse) GetEvent ¶
func (m *WatchResponse) GetEvent() *Event
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