Documentation
¶
Index ¶
- Variables
- func RegisterKVServer(s grpc.ServiceRegistrar, srv KVServer)
- func RegisterLockerServer(s grpc.ServiceRegistrar, srv LockerServer)
- func RegisterRedQueenServer(s grpc.ServiceRegistrar, srv RedQueenServer)
- func RegisterServiceBridgeServer(s grpc.ServiceRegistrar, srv ServiceBridgeServer)
- type AppendClusterRequest
- func (*AppendClusterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AppendClusterRequest) GetPeerAddr() string
- func (x *AppendClusterRequest) GetServerId() string
- func (x *AppendClusterRequest) GetVoter() bool
- func (*AppendClusterRequest) ProtoMessage()
- func (x *AppendClusterRequest) ProtoReflect() protoreflect.Message
- func (x *AppendClusterRequest) Reset()
- func (x *AppendClusterRequest) String() string
- type AppendClusterResponse
- type ConnectServiceRequest
- type ConnectServiceResponse
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetKey() []byte
- func (x *DeleteRequest) GetNamespace() string
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- type DeleteResponse
- type DestroyServiceRequest
- type DestroyServiceResponse
- type GetRequest
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetHeader() *ResponseHeader
- func (x *GetResponse) GetTtl() uint32
- func (x *GetResponse) GetValue() []byte
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type HealthCheckRServiceRequest
- type HealthCheckRServiceResponse
- type HealthCheckSServiceRequest
- type HealthCheckSServiceResponse
- type KVClient
- type KVServer
- type KV_WatchClient
- type KV_WatchServer
- type KeepAliveServiceRequest
- type KeepAliveServiceResponse
- type LeaderMonitorRequest
- type LeaderMonitorResponse
- func (*LeaderMonitorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaderMonitorResponse) GetLeader() bool
- func (*LeaderMonitorResponse) ProtoMessage()
- func (x *LeaderMonitorResponse) ProtoReflect() protoreflect.Message
- func (x *LeaderMonitorResponse) Reset()
- func (x *LeaderMonitorResponse) String() string
- type LockRequest
- type LockResponse
- type LockerClient
- type LockerServer
- type PipelineServiceRequest
- type PipelineServiceResponse
- type QueryServiceRequest
- type QueryServiceResponse
- type RaftLogCommand
- func (RaftLogCommand) Descriptor() protoreflect.EnumDescriptor
- func (x RaftLogCommand) Enum() *RaftLogCommand
- func (RaftLogCommand) EnumDescriptor() ([]byte, []int)deprecated
- func (x RaftLogCommand) Number() protoreflect.EnumNumber
- func (x RaftLogCommand) String() string
- func (RaftLogCommand) Type() protoreflect.EnumType
- type RaftLogPayload
- func (*RaftLogPayload) Descriptor() ([]byte, []int)deprecated
- func (x *RaftLogPayload) GetCommand() RaftLogCommand
- func (x *RaftLogPayload) GetKey() []byte
- func (x *RaftLogPayload) GetNamespace() string
- func (x *RaftLogPayload) GetTtl() uint32
- func (x *RaftLogPayload) GetValue() []byte
- func (*RaftLogPayload) ProtoMessage()
- func (x *RaftLogPayload) ProtoReflect() protoreflect.Message
- func (x *RaftLogPayload) Reset()
- func (x *RaftLogPayload) String() string
- type RedQueenClient
- type RedQueenServer
- type RedQueen_LeaderMonitorClient
- type RedQueen_LeaderMonitorServer
- type RegistryServiceRequest
- type RegistryServiceResponse
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseHeader) GetClusterId() string
- func (x *ResponseHeader) GetRaftTerm() uint64
- func (x *ResponseHeader) GetRevision() uint64
- func (*ResponseHeader) ProtoMessage()
- func (x *ResponseHeader) ProtoReflect() protoreflect.Message
- func (x *ResponseHeader) Reset()
- func (x *ResponseHeader) String() string
- type ServiceBridgeClient
- type ServiceBridgeServer
- type ServiceBridge_HealthCheckReceiverClient
- type ServiceBridge_HealthCheckReceiverServer
- type ServiceBridge_HealthCheckSenderClient
- type ServiceBridge_HealthCheckSenderServer
- type ServiceBridge_PipelineClient
- type ServiceBridge_PipelineServer
- type ServiceHealthStatus
- func (ServiceHealthStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceHealthStatus) Enum() *ServiceHealthStatus
- func (ServiceHealthStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceHealthStatus) Number() protoreflect.EnumNumber
- func (x ServiceHealthStatus) String() string
- func (ServiceHealthStatus) Type() protoreflect.EnumType
- type SetRequest
- func (*SetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRequest) GetIgnoreTtl() bool
- func (x *SetRequest) GetIgnoreValue() bool
- func (x *SetRequest) GetKey() []byte
- func (x *SetRequest) GetNamespace() string
- func (x *SetRequest) GetTtl() uint32
- func (x *SetRequest) GetValue() []byte
- func (*SetRequest) ProtoMessage()
- func (x *SetRequest) ProtoReflect() protoreflect.Message
- func (x *SetRequest) Reset()
- func (x *SetRequest) String() string
- type SetResponse
- type TryLockRequest
- func (*TryLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TryLockRequest) GetDeadline() int64
- func (x *TryLockRequest) GetLockId() string
- func (x *TryLockRequest) GetTtl() int64
- func (*TryLockRequest) ProtoMessage()
- func (x *TryLockRequest) ProtoReflect() protoreflect.Message
- func (x *TryLockRequest) Reset()
- func (x *TryLockRequest) String() string
- type TryLockResponse
- type UnimplementedKVServer
- func (UnimplementedKVServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedKVServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedKVServer) Set(context.Context, *SetRequest) (*SetResponse, error)
- func (UnimplementedKVServer) TrySet(context.Context, *SetRequest) (*SetResponse, error)
- func (UnimplementedKVServer) Watch(*WatchRequest, KV_WatchServer) error
- type UnimplementedLockerServer
- type UnimplementedRedQueenServer
- type UnimplementedServiceBridgeServer
- func (UnimplementedServiceBridgeServer) Connect(context.Context, *ConnectServiceRequest) (*ConnectServiceResponse, error)
- func (UnimplementedServiceBridgeServer) Destroy(context.Context, *DestroyServiceRequest) (*DestroyServiceResponse, error)
- func (UnimplementedServiceBridgeServer) HealthCheckReceiver(*HealthCheckRServiceRequest, ServiceBridge_HealthCheckReceiverServer) error
- func (UnimplementedServiceBridgeServer) HealthCheckSender(ServiceBridge_HealthCheckSenderServer) error
- func (UnimplementedServiceBridgeServer) Pipeline(ServiceBridge_PipelineServer) error
- func (UnimplementedServiceBridgeServer) Query(context.Context, *QueryServiceRequest) (*QueryServiceResponse, error)
- func (UnimplementedServiceBridgeServer) Register(context.Context, *RegistryServiceRequest) (*RegistryServiceResponse, error)
- type UnlockRequest
- type UnlockResponse
- type UnsafeKVServer
- type UnsafeLockerServer
- type UnsafeRedQueenServer
- type UnsafeServiceBridgeServer
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetBufSize() uint32
- func (x *WatchRequest) GetIgnoreErrors() bool
- func (x *WatchRequest) GetKey() []byte
- func (x *WatchRequest) GetNamespace() string
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchResponse) GetData() []byte
- func (x *WatchResponse) GetHeader() *ResponseHeader
- func (x *WatchResponse) GetTimestamp() int64
- func (x *WatchResponse) GetUpdateSeq() uint64
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (x *WatchResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( RaftLogCommand_name = map[int32]string{ 0: "SetWithTTL", 1: "TrySetWithTTL", 2: "Set", 3: "TrySet", 4: "Del", } RaftLogCommand_value = map[string]int32{ "SetWithTTL": 0, "TrySetWithTTL": 1, "Set": 2, "TrySet": 3, "Del": 4, } )
Enum value maps for RaftLogCommand.
var ( ServiceHealthStatus_name = map[int32]string{ 0: "Green", 1: "Yellow", 2: "Red", } ServiceHealthStatus_value = map[string]int32{ "Green": 0, "Yellow": 1, "Red": 2, } )
Enum value maps for ServiceHealthStatus.
var File_node_proto protoreflect.FileDescriptor
var File_rpc_proto protoreflect.FileDescriptor
var KV_ServiceDesc = grpc.ServiceDesc{ ServiceName: "serverpb.KV", HandlerType: (*KVServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Set", Handler: _KV_Set_Handler, }, { MethodName: "Get", Handler: _KV_Get_Handler, }, { MethodName: "TrySet", Handler: _KV_TrySet_Handler, }, { MethodName: "Delete", Handler: _KV_Delete_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _KV_Watch_Handler, ServerStreams: true, }, }, Metadata: "rpc.proto", }
KV_ServiceDesc is the grpc.ServiceDesc for KV service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Locker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "serverpb.Locker", HandlerType: (*LockerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Lock", Handler: _Locker_Lock_Handler, }, { MethodName: "Unlock", Handler: _Locker_Unlock_Handler, }, { MethodName: "TryLock", Handler: _Locker_TryLock_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpc.proto", }
Locker_ServiceDesc is the grpc.ServiceDesc for Locker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RedQueen_ServiceDesc = grpc.ServiceDesc{ ServiceName: "serverpb.RedQueen", HandlerType: (*RedQueenServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AppendCluster", Handler: _RedQueen_AppendCluster_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "LeaderMonitor", Handler: _RedQueen_LeaderMonitor_Handler, ServerStreams: true, }, }, Metadata: "node.proto", }
RedQueen_ServiceDesc is the grpc.ServiceDesc for RedQueen service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ServiceBridge_ServiceDesc = grpc.ServiceDesc{ ServiceName: "serverpb.ServiceBridge", HandlerType: (*ServiceBridgeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _ServiceBridge_Register_Handler, }, { MethodName: "Destroy", Handler: _ServiceBridge_Destroy_Handler, }, { MethodName: "Query", Handler: _ServiceBridge_Query_Handler, }, { MethodName: "Connect", Handler: _ServiceBridge_Connect_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Pipeline", Handler: _ServiceBridge_Pipeline_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "HealthCheckSender", Handler: _ServiceBridge_HealthCheckSender_Handler, ClientStreams: true, }, { StreamName: "HealthCheckReceiver", Handler: _ServiceBridge_HealthCheckReceiver_Handler, ServerStreams: true, }, }, Metadata: "rpc.proto", }
ServiceBridge_ServiceDesc is the grpc.ServiceDesc for ServiceBridge service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKVServer ¶
func RegisterKVServer(s grpc.ServiceRegistrar, srv KVServer)
func RegisterLockerServer ¶
func RegisterLockerServer(s grpc.ServiceRegistrar, srv LockerServer)
func RegisterRedQueenServer ¶
func RegisterRedQueenServer(s grpc.ServiceRegistrar, srv RedQueenServer)
func RegisterServiceBridgeServer ¶
func RegisterServiceBridgeServer(s grpc.ServiceRegistrar, srv ServiceBridgeServer)
Types ¶
type AppendClusterRequest ¶
type AppendClusterRequest struct {
ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
PeerAddr string `protobuf:"bytes,2,opt,name=peer_addr,json=peerAddr,proto3" json:"peer_addr,omitempty"`
Voter bool `protobuf:"varint,3,opt,name=voter,proto3" json:"voter,omitempty"`
// contains filtered or unexported fields
}
func (*AppendClusterRequest) Descriptor
deprecated
func (*AppendClusterRequest) Descriptor() ([]byte, []int)
Deprecated: Use AppendClusterRequest.ProtoReflect.Descriptor instead.
func (*AppendClusterRequest) GetPeerAddr ¶
func (x *AppendClusterRequest) GetPeerAddr() string
func (*AppendClusterRequest) GetServerId ¶
func (x *AppendClusterRequest) GetServerId() string
func (*AppendClusterRequest) GetVoter ¶
func (x *AppendClusterRequest) GetVoter() bool
func (*AppendClusterRequest) ProtoMessage ¶
func (*AppendClusterRequest) ProtoMessage()
func (*AppendClusterRequest) ProtoReflect ¶
func (x *AppendClusterRequest) ProtoReflect() protoreflect.Message
func (*AppendClusterRequest) Reset ¶
func (x *AppendClusterRequest) Reset()
func (*AppendClusterRequest) String ¶
func (x *AppendClusterRequest) String() string
type AppendClusterResponse ¶
type AppendClusterResponse struct {
// contains filtered or unexported fields
}
func (*AppendClusterResponse) Descriptor
deprecated
func (*AppendClusterResponse) Descriptor() ([]byte, []int)
Deprecated: Use AppendClusterResponse.ProtoReflect.Descriptor instead.
func (*AppendClusterResponse) ProtoMessage ¶
func (*AppendClusterResponse) ProtoMessage()
func (*AppendClusterResponse) ProtoReflect ¶
func (x *AppendClusterResponse) ProtoReflect() protoreflect.Message
func (*AppendClusterResponse) Reset ¶
func (x *AppendClusterResponse) Reset()
func (*AppendClusterResponse) String ¶
func (x *AppendClusterResponse) String() string
type ConnectServiceRequest ¶
type ConnectServiceRequest struct {
// contains filtered or unexported fields
}
func (*ConnectServiceRequest) Descriptor
deprecated
func (*ConnectServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectServiceRequest.ProtoReflect.Descriptor instead.
func (*ConnectServiceRequest) ProtoMessage ¶
func (*ConnectServiceRequest) ProtoMessage()
func (*ConnectServiceRequest) ProtoReflect ¶
func (x *ConnectServiceRequest) ProtoReflect() protoreflect.Message
func (*ConnectServiceRequest) Reset ¶
func (x *ConnectServiceRequest) Reset()
func (*ConnectServiceRequest) String ¶
func (x *ConnectServiceRequest) String() string
type ConnectServiceResponse ¶
type ConnectServiceResponse struct {
// contains filtered or unexported fields
}
func (*ConnectServiceResponse) Descriptor
deprecated
func (*ConnectServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectServiceResponse.ProtoReflect.Descriptor instead.
func (*ConnectServiceResponse) ProtoMessage ¶
func (*ConnectServiceResponse) ProtoMessage()
func (*ConnectServiceResponse) ProtoReflect ¶
func (x *ConnectServiceResponse) ProtoReflect() protoreflect.Message
func (*ConnectServiceResponse) Reset ¶
func (x *ConnectServiceResponse) Reset()
func (*ConnectServiceResponse) String ¶
func (x *ConnectServiceResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct {
// key is the key, in bytes, to delete into the key-value store.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// namespace means the same key-value store can exist in different namespaces
Namespace *string `protobuf:"bytes,2,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetKey ¶
func (x *DeleteRequest) GetKey() []byte
func (*DeleteRequest) GetNamespace ¶
func (x *DeleteRequest) GetNamespace() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetHeader ¶
func (x *DeleteResponse) GetHeader() *ResponseHeader
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type DestroyServiceRequest ¶
type DestroyServiceRequest struct {
// contains filtered or unexported fields
}
func (*DestroyServiceRequest) Descriptor
deprecated
func (*DestroyServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DestroyServiceRequest.ProtoReflect.Descriptor instead.
func (*DestroyServiceRequest) ProtoMessage ¶
func (*DestroyServiceRequest) ProtoMessage()
func (*DestroyServiceRequest) ProtoReflect ¶
func (x *DestroyServiceRequest) ProtoReflect() protoreflect.Message
func (*DestroyServiceRequest) Reset ¶
func (x *DestroyServiceRequest) Reset()
func (*DestroyServiceRequest) String ¶
func (x *DestroyServiceRequest) String() string
type DestroyServiceResponse ¶
type DestroyServiceResponse struct {
// contains filtered or unexported fields
}
func (*DestroyServiceResponse) Descriptor
deprecated
func (*DestroyServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DestroyServiceResponse.ProtoReflect.Descriptor instead.
func (*DestroyServiceResponse) ProtoMessage ¶
func (*DestroyServiceResponse) ProtoMessage()
func (*DestroyServiceResponse) ProtoReflect ¶
func (x *DestroyServiceResponse) ProtoReflect() protoreflect.Message
func (*DestroyServiceResponse) Reset ¶
func (x *DestroyServiceResponse) Reset()
func (*DestroyServiceResponse) String ¶
func (x *DestroyServiceResponse) String() string
type GetRequest ¶
type GetRequest struct {
// key is the key, in bytes, to set into the key-value store.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// namespace means the same key-value store can exist in different namespaces
Namespace *string `protobuf:"bytes,2,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() []byte
func (*GetRequest) GetNamespace ¶
func (x *GetRequest) GetNamespace() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Ttl *uint32 `protobuf:"varint,3,opt,name=ttl,proto3,oneof" json:"ttl,omitempty"`
// contains filtered or unexported fields
}
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetHeader ¶
func (x *GetResponse) GetHeader() *ResponseHeader
func (*GetResponse) GetTtl ¶
func (x *GetResponse) GetTtl() uint32
func (*GetResponse) GetValue ¶
func (x *GetResponse) GetValue() []byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type HealthCheckRServiceRequest ¶
type HealthCheckRServiceRequest struct {
// contains filtered or unexported fields
}
func (*HealthCheckRServiceRequest) Descriptor
deprecated
func (*HealthCheckRServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRServiceRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRServiceRequest) ProtoMessage ¶
func (*HealthCheckRServiceRequest) ProtoMessage()
func (*HealthCheckRServiceRequest) ProtoReflect ¶
func (x *HealthCheckRServiceRequest) ProtoReflect() protoreflect.Message
func (*HealthCheckRServiceRequest) Reset ¶
func (x *HealthCheckRServiceRequest) Reset()
func (*HealthCheckRServiceRequest) String ¶
func (x *HealthCheckRServiceRequest) String() string
type HealthCheckRServiceResponse ¶
type HealthCheckRServiceResponse struct {
// contains filtered or unexported fields
}
func (*HealthCheckRServiceResponse) Descriptor
deprecated
func (*HealthCheckRServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRServiceResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckRServiceResponse) ProtoMessage ¶
func (*HealthCheckRServiceResponse) ProtoMessage()
func (*HealthCheckRServiceResponse) ProtoReflect ¶
func (x *HealthCheckRServiceResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckRServiceResponse) Reset ¶
func (x *HealthCheckRServiceResponse) Reset()
func (*HealthCheckRServiceResponse) String ¶
func (x *HealthCheckRServiceResponse) String() string
type HealthCheckSServiceRequest ¶
type HealthCheckSServiceRequest struct {
// contains filtered or unexported fields
}
func (*HealthCheckSServiceRequest) Descriptor
deprecated
func (*HealthCheckSServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckSServiceRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckSServiceRequest) ProtoMessage ¶
func (*HealthCheckSServiceRequest) ProtoMessage()
func (*HealthCheckSServiceRequest) ProtoReflect ¶
func (x *HealthCheckSServiceRequest) ProtoReflect() protoreflect.Message
func (*HealthCheckSServiceRequest) Reset ¶
func (x *HealthCheckSServiceRequest) Reset()
func (*HealthCheckSServiceRequest) String ¶
func (x *HealthCheckSServiceRequest) String() string
type HealthCheckSServiceResponse ¶
type HealthCheckSServiceResponse struct {
// contains filtered or unexported fields
}
func (*HealthCheckSServiceResponse) Descriptor
deprecated
func (*HealthCheckSServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckSServiceResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckSServiceResponse) ProtoMessage ¶
func (*HealthCheckSServiceResponse) ProtoMessage()
func (*HealthCheckSServiceResponse) ProtoReflect ¶
func (x *HealthCheckSServiceResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckSServiceResponse) Reset ¶
func (x *HealthCheckSServiceResponse) Reset()
func (*HealthCheckSServiceResponse) String ¶
func (x *HealthCheckSServiceResponse) String() string
type KVClient ¶
type KVClient interface {
Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
TrySet(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (KV_WatchClient, error)
}
KVClient is the client API for KV service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKVClient ¶
func NewKVClient(cc grpc.ClientConnInterface) KVClient
type KVServer ¶
type KVServer interface {
Set(context.Context, *SetRequest) (*SetResponse, error)
Get(context.Context, *GetRequest) (*GetResponse, error)
TrySet(context.Context, *SetRequest) (*SetResponse, error)
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
Watch(*WatchRequest, KV_WatchServer) error
// contains filtered or unexported methods
}
KVServer is the server API for KV service. All implementations must embed UnimplementedKVServer for forward compatibility
type KV_WatchClient ¶
type KV_WatchClient interface {
Recv() (*WatchResponse, error)
grpc.ClientStream
}
type KV_WatchServer ¶
type KV_WatchServer interface {
Send(*WatchResponse) error
grpc.ServerStream
}
type KeepAliveServiceRequest ¶
type KeepAliveServiceRequest struct {
// contains filtered or unexported fields
}
func (*KeepAliveServiceRequest) Descriptor
deprecated
func (*KeepAliveServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeepAliveServiceRequest.ProtoReflect.Descriptor instead.
func (*KeepAliveServiceRequest) ProtoMessage ¶
func (*KeepAliveServiceRequest) ProtoMessage()
func (*KeepAliveServiceRequest) ProtoReflect ¶
func (x *KeepAliveServiceRequest) ProtoReflect() protoreflect.Message
func (*KeepAliveServiceRequest) Reset ¶
func (x *KeepAliveServiceRequest) Reset()
func (*KeepAliveServiceRequest) String ¶
func (x *KeepAliveServiceRequest) String() string
type KeepAliveServiceResponse ¶
type KeepAliveServiceResponse struct {
// contains filtered or unexported fields
}
func (*KeepAliveServiceResponse) Descriptor
deprecated
func (*KeepAliveServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeepAliveServiceResponse.ProtoReflect.Descriptor instead.
func (*KeepAliveServiceResponse) ProtoMessage ¶
func (*KeepAliveServiceResponse) ProtoMessage()
func (*KeepAliveServiceResponse) ProtoReflect ¶
func (x *KeepAliveServiceResponse) ProtoReflect() protoreflect.Message
func (*KeepAliveServiceResponse) Reset ¶
func (x *KeepAliveServiceResponse) Reset()
func (*KeepAliveServiceResponse) String ¶
func (x *KeepAliveServiceResponse) String() string
type LeaderMonitorRequest ¶
type LeaderMonitorRequest struct {
// contains filtered or unexported fields
}
func (*LeaderMonitorRequest) Descriptor
deprecated
func (*LeaderMonitorRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaderMonitorRequest.ProtoReflect.Descriptor instead.
func (*LeaderMonitorRequest) ProtoMessage ¶
func (*LeaderMonitorRequest) ProtoMessage()
func (*LeaderMonitorRequest) ProtoReflect ¶
func (x *LeaderMonitorRequest) ProtoReflect() protoreflect.Message
func (*LeaderMonitorRequest) Reset ¶
func (x *LeaderMonitorRequest) Reset()
func (*LeaderMonitorRequest) String ¶
func (x *LeaderMonitorRequest) String() string
type LeaderMonitorResponse ¶
type LeaderMonitorResponse struct {
Leader bool `protobuf:"varint,1,opt,name=leader,proto3" json:"leader,omitempty"`
// contains filtered or unexported fields
}
func (*LeaderMonitorResponse) Descriptor
deprecated
func (*LeaderMonitorResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaderMonitorResponse.ProtoReflect.Descriptor instead.
func (*LeaderMonitorResponse) GetLeader ¶
func (x *LeaderMonitorResponse) GetLeader() bool
func (*LeaderMonitorResponse) ProtoMessage ¶
func (*LeaderMonitorResponse) ProtoMessage()
func (*LeaderMonitorResponse) ProtoReflect ¶
func (x *LeaderMonitorResponse) ProtoReflect() protoreflect.Message
func (*LeaderMonitorResponse) Reset ¶
func (x *LeaderMonitorResponse) Reset()
func (*LeaderMonitorResponse) String ¶
func (x *LeaderMonitorResponse) String() string
type LockRequest ¶
type LockRequest struct {
LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
Ttl int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
// contains filtered or unexported fields
}
--------------- Locker --------------- //
func (*LockRequest) Descriptor
deprecated
func (*LockRequest) Descriptor() ([]byte, []int)
Deprecated: Use LockRequest.ProtoReflect.Descriptor instead.
func (*LockRequest) GetLockId ¶
func (x *LockRequest) GetLockId() string
func (*LockRequest) GetTtl ¶
func (x *LockRequest) GetTtl() int64
func (*LockRequest) ProtoMessage ¶
func (*LockRequest) ProtoMessage()
func (*LockRequest) ProtoReflect ¶
func (x *LockRequest) ProtoReflect() protoreflect.Message
func (*LockRequest) Reset ¶
func (x *LockRequest) Reset()
func (*LockRequest) String ¶
func (x *LockRequest) String() string
type LockResponse ¶
type LockResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*LockResponse) Descriptor
deprecated
func (*LockResponse) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse.ProtoReflect.Descriptor instead.
func (*LockResponse) GetHeader ¶
func (x *LockResponse) GetHeader() *ResponseHeader
func (*LockResponse) ProtoMessage ¶
func (*LockResponse) ProtoMessage()
func (*LockResponse) ProtoReflect ¶
func (x *LockResponse) ProtoReflect() protoreflect.Message
func (*LockResponse) Reset ¶
func (x *LockResponse) Reset()
func (*LockResponse) String ¶
func (x *LockResponse) String() string
type LockerClient ¶
type LockerClient interface {
Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error)
Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error)
TryLock(ctx context.Context, in *TryLockRequest, opts ...grpc.CallOption) (*TryLockResponse, error)
}
LockerClient is the client API for Locker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLockerClient ¶
func NewLockerClient(cc grpc.ClientConnInterface) LockerClient
type LockerServer ¶
type LockerServer interface {
Lock(context.Context, *LockRequest) (*LockResponse, error)
Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
TryLock(context.Context, *TryLockRequest) (*TryLockResponse, error)
// contains filtered or unexported methods
}
LockerServer is the server API for Locker service. All implementations must embed UnimplementedLockerServer for forward compatibility
type PipelineServiceRequest ¶
type PipelineServiceRequest struct {
// contains filtered or unexported fields
}
func (*PipelineServiceRequest) Descriptor
deprecated
func (*PipelineServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use PipelineServiceRequest.ProtoReflect.Descriptor instead.
func (*PipelineServiceRequest) ProtoMessage ¶
func (*PipelineServiceRequest) ProtoMessage()
func (*PipelineServiceRequest) ProtoReflect ¶
func (x *PipelineServiceRequest) ProtoReflect() protoreflect.Message
func (*PipelineServiceRequest) Reset ¶
func (x *PipelineServiceRequest) Reset()
func (*PipelineServiceRequest) String ¶
func (x *PipelineServiceRequest) String() string
type PipelineServiceResponse ¶
type PipelineServiceResponse struct {
// contains filtered or unexported fields
}
func (*PipelineServiceResponse) Descriptor
deprecated
func (*PipelineServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use PipelineServiceResponse.ProtoReflect.Descriptor instead.
func (*PipelineServiceResponse) ProtoMessage ¶
func (*PipelineServiceResponse) ProtoMessage()
func (*PipelineServiceResponse) ProtoReflect ¶
func (x *PipelineServiceResponse) ProtoReflect() protoreflect.Message
func (*PipelineServiceResponse) Reset ¶
func (x *PipelineServiceResponse) Reset()
func (*PipelineServiceResponse) String ¶
func (x *PipelineServiceResponse) String() string
type QueryServiceRequest ¶
type QueryServiceRequest struct {
// contains filtered or unexported fields
}
func (*QueryServiceRequest) Descriptor
deprecated
func (*QueryServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryServiceRequest.ProtoReflect.Descriptor instead.
func (*QueryServiceRequest) ProtoMessage ¶
func (*QueryServiceRequest) ProtoMessage()
func (*QueryServiceRequest) ProtoReflect ¶
func (x *QueryServiceRequest) ProtoReflect() protoreflect.Message
func (*QueryServiceRequest) Reset ¶
func (x *QueryServiceRequest) Reset()
func (*QueryServiceRequest) String ¶
func (x *QueryServiceRequest) String() string
type QueryServiceResponse ¶
type QueryServiceResponse struct {
// contains filtered or unexported fields
}
func (*QueryServiceResponse) Descriptor
deprecated
func (*QueryServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryServiceResponse.ProtoReflect.Descriptor instead.
func (*QueryServiceResponse) ProtoMessage ¶
func (*QueryServiceResponse) ProtoMessage()
func (*QueryServiceResponse) ProtoReflect ¶
func (x *QueryServiceResponse) ProtoReflect() protoreflect.Message
func (*QueryServiceResponse) Reset ¶
func (x *QueryServiceResponse) Reset()
func (*QueryServiceResponse) String ¶
func (x *QueryServiceResponse) String() string
type RaftLogCommand ¶
type RaftLogCommand int32
const ( RaftLogCommand_SetWithTTL RaftLogCommand = 0 RaftLogCommand_TrySetWithTTL RaftLogCommand = 1 RaftLogCommand_Set RaftLogCommand = 2 RaftLogCommand_TrySet RaftLogCommand = 3 RaftLogCommand_Del RaftLogCommand = 4 )
func (RaftLogCommand) Descriptor ¶
func (RaftLogCommand) Descriptor() protoreflect.EnumDescriptor
func (RaftLogCommand) Enum ¶
func (x RaftLogCommand) Enum() *RaftLogCommand
func (RaftLogCommand) EnumDescriptor
deprecated
func (RaftLogCommand) EnumDescriptor() ([]byte, []int)
Deprecated: Use RaftLogCommand.Descriptor instead.
func (RaftLogCommand) Number ¶
func (x RaftLogCommand) Number() protoreflect.EnumNumber
func (RaftLogCommand) String ¶
func (x RaftLogCommand) String() string
func (RaftLogCommand) Type ¶
func (RaftLogCommand) Type() protoreflect.EnumType
type RaftLogPayload ¶
type RaftLogPayload struct {
Command RaftLogCommand `protobuf:"varint,1,opt,name=command,proto3,enum=serverpb.RaftLogCommand" json:"command,omitempty"`
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,3,opt,name=value,proto3,oneof" json:"value,omitempty"`
Ttl *uint32 `protobuf:"varint,4,opt,name=ttl,proto3,oneof" json:"ttl,omitempty"`
Namespace *string `protobuf:"bytes,5,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
func (*RaftLogPayload) Descriptor
deprecated
func (*RaftLogPayload) Descriptor() ([]byte, []int)
Deprecated: Use RaftLogPayload.ProtoReflect.Descriptor instead.
func (*RaftLogPayload) GetCommand ¶
func (x *RaftLogPayload) GetCommand() RaftLogCommand
func (*RaftLogPayload) GetKey ¶
func (x *RaftLogPayload) GetKey() []byte
func (*RaftLogPayload) GetNamespace ¶
func (x *RaftLogPayload) GetNamespace() string
func (*RaftLogPayload) GetTtl ¶
func (x *RaftLogPayload) GetTtl() uint32
func (*RaftLogPayload) GetValue ¶
func (x *RaftLogPayload) GetValue() []byte
func (*RaftLogPayload) ProtoMessage ¶
func (*RaftLogPayload) ProtoMessage()
func (*RaftLogPayload) ProtoReflect ¶
func (x *RaftLogPayload) ProtoReflect() protoreflect.Message
func (*RaftLogPayload) Reset ¶
func (x *RaftLogPayload) Reset()
func (*RaftLogPayload) String ¶
func (x *RaftLogPayload) String() string
type RedQueenClient ¶
type RedQueenClient interface {
AppendCluster(ctx context.Context, in *AppendClusterRequest, opts ...grpc.CallOption) (*AppendClusterResponse, error)
LeaderMonitor(ctx context.Context, in *LeaderMonitorRequest, opts ...grpc.CallOption) (RedQueen_LeaderMonitorClient, error)
}
RedQueenClient is the client API for RedQueen service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRedQueenClient ¶
func NewRedQueenClient(cc grpc.ClientConnInterface) RedQueenClient
type RedQueenServer ¶
type RedQueenServer interface {
AppendCluster(context.Context, *AppendClusterRequest) (*AppendClusterResponse, error)
LeaderMonitor(*LeaderMonitorRequest, RedQueen_LeaderMonitorServer) error
// contains filtered or unexported methods
}
RedQueenServer is the server API for RedQueen service. All implementations must embed UnimplementedRedQueenServer for forward compatibility
type RedQueen_LeaderMonitorClient ¶
type RedQueen_LeaderMonitorClient interface {
Recv() (*LeaderMonitorResponse, error)
grpc.ClientStream
}
type RedQueen_LeaderMonitorServer ¶
type RedQueen_LeaderMonitorServer interface {
Send(*LeaderMonitorResponse) error
grpc.ServerStream
}
type RegistryServiceRequest ¶
type RegistryServiceRequest struct {
// contains filtered or unexported fields
}
func (*RegistryServiceRequest) Descriptor
deprecated
func (*RegistryServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegistryServiceRequest.ProtoReflect.Descriptor instead.
func (*RegistryServiceRequest) ProtoMessage ¶
func (*RegistryServiceRequest) ProtoMessage()
func (*RegistryServiceRequest) ProtoReflect ¶
func (x *RegistryServiceRequest) ProtoReflect() protoreflect.Message
func (*RegistryServiceRequest) Reset ¶
func (x *RegistryServiceRequest) Reset()
func (*RegistryServiceRequest) String ¶
func (x *RegistryServiceRequest) String() string
type RegistryServiceResponse ¶
type RegistryServiceResponse struct {
// contains filtered or unexported fields
}
func (*RegistryServiceResponse) Descriptor
deprecated
func (*RegistryServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegistryServiceResponse.ProtoReflect.Descriptor instead.
func (*RegistryServiceResponse) ProtoMessage ¶
func (*RegistryServiceResponse) ProtoMessage()
func (*RegistryServiceResponse) ProtoReflect ¶
func (x *RegistryServiceResponse) ProtoReflect() protoreflect.Message
func (*RegistryServiceResponse) Reset ¶
func (x *RegistryServiceResponse) Reset()
func (*RegistryServiceResponse) String ¶
func (x *RegistryServiceResponse) String() string
type ResponseHeader ¶
type ResponseHeader struct {
// cluster_id is the ID of the cluster which sent the response.
ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
// reserve field
Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
// raft_term is the raft term when the request was applied.
RaftTerm uint64 `protobuf:"varint,3,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"`
// contains filtered or unexported fields
}
--------------- Public --------------- //
func (*ResponseHeader) Descriptor
deprecated
func (*ResponseHeader) Descriptor() ([]byte, []int)
Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead.
func (*ResponseHeader) GetClusterId ¶
func (x *ResponseHeader) GetClusterId() string
func (*ResponseHeader) GetRaftTerm ¶
func (x *ResponseHeader) GetRaftTerm() uint64
func (*ResponseHeader) GetRevision ¶
func (x *ResponseHeader) GetRevision() uint64
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
func (*ResponseHeader) ProtoReflect ¶
func (x *ResponseHeader) ProtoReflect() protoreflect.Message
func (*ResponseHeader) Reset ¶
func (x *ResponseHeader) Reset()
func (*ResponseHeader) String ¶
func (x *ResponseHeader) String() string
type ServiceBridgeClient ¶
type ServiceBridgeClient interface {
Register(ctx context.Context, in *RegistryServiceRequest, opts ...grpc.CallOption) (*RegistryServiceResponse, error)
Destroy(ctx context.Context, in *DestroyServiceRequest, opts ...grpc.CallOption) (*DestroyServiceResponse, error)
Query(ctx context.Context, in *QueryServiceRequest, opts ...grpc.CallOption) (*QueryServiceResponse, error)
Connect(ctx context.Context, in *ConnectServiceRequest, opts ...grpc.CallOption) (*ConnectServiceResponse, error)
Pipeline(ctx context.Context, opts ...grpc.CallOption) (ServiceBridge_PipelineClient, error)
HealthCheckSender(ctx context.Context, opts ...grpc.CallOption) (ServiceBridge_HealthCheckSenderClient, error)
HealthCheckReceiver(ctx context.Context, in *HealthCheckRServiceRequest, opts ...grpc.CallOption) (ServiceBridge_HealthCheckReceiverClient, error)
}
ServiceBridgeClient is the client API for ServiceBridge service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceBridgeClient ¶
func NewServiceBridgeClient(cc grpc.ClientConnInterface) ServiceBridgeClient
type ServiceBridgeServer ¶
type ServiceBridgeServer interface {
Register(context.Context, *RegistryServiceRequest) (*RegistryServiceResponse, error)
Destroy(context.Context, *DestroyServiceRequest) (*DestroyServiceResponse, error)
Query(context.Context, *QueryServiceRequest) (*QueryServiceResponse, error)
Connect(context.Context, *ConnectServiceRequest) (*ConnectServiceResponse, error)
Pipeline(ServiceBridge_PipelineServer) error
HealthCheckSender(ServiceBridge_HealthCheckSenderServer) error
HealthCheckReceiver(*HealthCheckRServiceRequest, ServiceBridge_HealthCheckReceiverServer) error
// contains filtered or unexported methods
}
ServiceBridgeServer is the server API for ServiceBridge service. All implementations must embed UnimplementedServiceBridgeServer for forward compatibility
type ServiceBridge_HealthCheckReceiverClient ¶
type ServiceBridge_HealthCheckReceiverClient interface {
Recv() (*HealthCheckRServiceResponse, error)
grpc.ClientStream
}
type ServiceBridge_HealthCheckReceiverServer ¶
type ServiceBridge_HealthCheckReceiverServer interface {
Send(*HealthCheckRServiceResponse) error
grpc.ServerStream
}
type ServiceBridge_HealthCheckSenderClient ¶
type ServiceBridge_HealthCheckSenderClient interface {
Send(*HealthCheckSServiceRequest) error
CloseAndRecv() (*HealthCheckSServiceResponse, error)
grpc.ClientStream
}
type ServiceBridge_HealthCheckSenderServer ¶
type ServiceBridge_HealthCheckSenderServer interface {
SendAndClose(*HealthCheckSServiceResponse) error
Recv() (*HealthCheckSServiceRequest, error)
grpc.ServerStream
}
type ServiceBridge_PipelineClient ¶
type ServiceBridge_PipelineClient interface {
Send(*PipelineServiceRequest) error
Recv() (*PipelineServiceResponse, error)
grpc.ClientStream
}
type ServiceBridge_PipelineServer ¶
type ServiceBridge_PipelineServer interface {
Send(*PipelineServiceResponse) error
Recv() (*PipelineServiceRequest, error)
grpc.ServerStream
}
type ServiceHealthStatus ¶
type ServiceHealthStatus int32
const ( ServiceHealthStatus_Green ServiceHealthStatus = 0 // Green: everything is working fine ServiceHealthStatus_Yellow ServiceHealthStatus = 1 // Yellow: There are some problems with the service that may affect usage ServiceHealthStatus_Red ServiceHealthStatus = 2 // Red: There are some problems with the service and cannot be used normally )
func (ServiceHealthStatus) Descriptor ¶
func (ServiceHealthStatus) Descriptor() protoreflect.EnumDescriptor
func (ServiceHealthStatus) Enum ¶
func (x ServiceHealthStatus) Enum() *ServiceHealthStatus
func (ServiceHealthStatus) EnumDescriptor
deprecated
func (ServiceHealthStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceHealthStatus.Descriptor instead.
func (ServiceHealthStatus) Number ¶
func (x ServiceHealthStatus) Number() protoreflect.EnumNumber
func (ServiceHealthStatus) String ¶
func (x ServiceHealthStatus) String() string
func (ServiceHealthStatus) Type ¶
func (ServiceHealthStatus) Type() protoreflect.EnumType
type SetRequest ¶
type SetRequest struct {
// key is the key, in bytes, to set into the key-value store.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// value is the value, in bytes, to associate with the key in the key-value store.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// ttl indicates the ttl time of this key-value store.
// 0 means never ttl, the unit is second.
Ttl uint32 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
IgnoreValue bool `protobuf:"varint,4,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"`
IgnoreTtl bool `protobuf:"varint,5,opt,name=ignore_ttl,json=ignoreTtl,proto3" json:"ignore_ttl,omitempty"`
// namespace means the same key-value store can exist in different namespaces
Namespace *string `protobuf:"bytes,6,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
--------------- KV store --------------- //
func (*SetRequest) Descriptor
deprecated
func (*SetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.
func (*SetRequest) GetIgnoreTtl ¶
func (x *SetRequest) GetIgnoreTtl() bool
func (*SetRequest) GetIgnoreValue ¶
func (x *SetRequest) GetIgnoreValue() bool
func (*SetRequest) GetKey ¶
func (x *SetRequest) GetKey() []byte
func (*SetRequest) GetNamespace ¶
func (x *SetRequest) GetNamespace() string
func (*SetRequest) GetTtl ¶
func (x *SetRequest) GetTtl() uint32
func (*SetRequest) GetValue ¶
func (x *SetRequest) GetValue() []byte
func (*SetRequest) ProtoMessage ¶
func (*SetRequest) ProtoMessage()
func (*SetRequest) ProtoReflect ¶
func (x *SetRequest) ProtoReflect() protoreflect.Message
func (*SetRequest) Reset ¶
func (x *SetRequest) Reset()
func (*SetRequest) String ¶
func (x *SetRequest) String() string
type SetResponse ¶
type SetResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*SetResponse) Descriptor
deprecated
func (*SetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.
func (*SetResponse) GetHeader ¶
func (x *SetResponse) GetHeader() *ResponseHeader
func (*SetResponse) ProtoMessage ¶
func (*SetResponse) ProtoMessage()
func (*SetResponse) ProtoReflect ¶
func (x *SetResponse) ProtoReflect() protoreflect.Message
func (*SetResponse) Reset ¶
func (x *SetResponse) Reset()
func (*SetResponse) String ¶
func (x *SetResponse) String() string
type TryLockRequest ¶
type TryLockRequest struct {
LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
Ttl int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
Deadline int64 `protobuf:"varint,3,opt,name=deadline,proto3" json:"deadline,omitempty"`
// contains filtered or unexported fields
}
func (*TryLockRequest) Descriptor
deprecated
func (*TryLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use TryLockRequest.ProtoReflect.Descriptor instead.
func (*TryLockRequest) GetDeadline ¶
func (x *TryLockRequest) GetDeadline() int64
func (*TryLockRequest) GetLockId ¶
func (x *TryLockRequest) GetLockId() string
func (*TryLockRequest) GetTtl ¶
func (x *TryLockRequest) GetTtl() int64
func (*TryLockRequest) ProtoMessage ¶
func (*TryLockRequest) ProtoMessage()
func (*TryLockRequest) ProtoReflect ¶
func (x *TryLockRequest) ProtoReflect() protoreflect.Message
func (*TryLockRequest) Reset ¶
func (x *TryLockRequest) Reset()
func (*TryLockRequest) String ¶
func (x *TryLockRequest) String() string
type TryLockResponse ¶
type TryLockResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*TryLockResponse) Descriptor
deprecated
func (*TryLockResponse) Descriptor() ([]byte, []int)
Deprecated: Use TryLockResponse.ProtoReflect.Descriptor instead.
func (*TryLockResponse) GetHeader ¶
func (x *TryLockResponse) GetHeader() *ResponseHeader
func (*TryLockResponse) ProtoMessage ¶
func (*TryLockResponse) ProtoMessage()
func (*TryLockResponse) ProtoReflect ¶
func (x *TryLockResponse) ProtoReflect() protoreflect.Message
func (*TryLockResponse) Reset ¶
func (x *TryLockResponse) Reset()
func (*TryLockResponse) String ¶
func (x *TryLockResponse) String() string
type UnimplementedKVServer ¶
type UnimplementedKVServer struct {
}
UnimplementedKVServer must be embedded to have forward compatible implementations.
func (UnimplementedKVServer) Delete ¶
func (UnimplementedKVServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedKVServer) Get ¶
func (UnimplementedKVServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedKVServer) Set ¶
func (UnimplementedKVServer) Set(context.Context, *SetRequest) (*SetResponse, error)
func (UnimplementedKVServer) TrySet ¶
func (UnimplementedKVServer) TrySet(context.Context, *SetRequest) (*SetResponse, error)
func (UnimplementedKVServer) Watch ¶
func (UnimplementedKVServer) Watch(*WatchRequest, KV_WatchServer) error
type UnimplementedLockerServer ¶
type UnimplementedLockerServer struct {
}
UnimplementedLockerServer must be embedded to have forward compatible implementations.
func (UnimplementedLockerServer) Lock ¶
func (UnimplementedLockerServer) Lock(context.Context, *LockRequest) (*LockResponse, error)
func (UnimplementedLockerServer) TryLock ¶
func (UnimplementedLockerServer) TryLock(context.Context, *TryLockRequest) (*TryLockResponse, error)
func (UnimplementedLockerServer) Unlock ¶
func (UnimplementedLockerServer) Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
type UnimplementedRedQueenServer ¶
type UnimplementedRedQueenServer struct {
}
UnimplementedRedQueenServer must be embedded to have forward compatible implementations.
func (UnimplementedRedQueenServer) AppendCluster ¶
func (UnimplementedRedQueenServer) AppendCluster(context.Context, *AppendClusterRequest) (*AppendClusterResponse, error)
func (UnimplementedRedQueenServer) LeaderMonitor ¶
func (UnimplementedRedQueenServer) LeaderMonitor(*LeaderMonitorRequest, RedQueen_LeaderMonitorServer) error
type UnimplementedServiceBridgeServer ¶
type UnimplementedServiceBridgeServer struct {
}
UnimplementedServiceBridgeServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceBridgeServer) Connect ¶
func (UnimplementedServiceBridgeServer) Connect(context.Context, *ConnectServiceRequest) (*ConnectServiceResponse, error)
func (UnimplementedServiceBridgeServer) Destroy ¶
func (UnimplementedServiceBridgeServer) Destroy(context.Context, *DestroyServiceRequest) (*DestroyServiceResponse, error)
func (UnimplementedServiceBridgeServer) HealthCheckReceiver ¶
func (UnimplementedServiceBridgeServer) HealthCheckReceiver(*HealthCheckRServiceRequest, ServiceBridge_HealthCheckReceiverServer) error
func (UnimplementedServiceBridgeServer) HealthCheckSender ¶
func (UnimplementedServiceBridgeServer) HealthCheckSender(ServiceBridge_HealthCheckSenderServer) error
func (UnimplementedServiceBridgeServer) Pipeline ¶
func (UnimplementedServiceBridgeServer) Pipeline(ServiceBridge_PipelineServer) error
func (UnimplementedServiceBridgeServer) Query ¶
func (UnimplementedServiceBridgeServer) Query(context.Context, *QueryServiceRequest) (*QueryServiceResponse, error)
func (UnimplementedServiceBridgeServer) Register ¶
func (UnimplementedServiceBridgeServer) Register(context.Context, *RegistryServiceRequest) (*RegistryServiceResponse, error)
type UnlockRequest ¶
type UnlockRequest struct {
LockId string `protobuf:"bytes,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
// contains filtered or unexported fields
}
func (*UnlockRequest) Descriptor
deprecated
func (*UnlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockRequest.ProtoReflect.Descriptor instead.
func (*UnlockRequest) GetLockId ¶
func (x *UnlockRequest) GetLockId() string
func (*UnlockRequest) ProtoMessage ¶
func (*UnlockRequest) ProtoMessage()
func (*UnlockRequest) ProtoReflect ¶
func (x *UnlockRequest) ProtoReflect() protoreflect.Message
func (*UnlockRequest) Reset ¶
func (x *UnlockRequest) Reset()
func (*UnlockRequest) String ¶
func (x *UnlockRequest) String() string
type UnlockResponse ¶
type UnlockResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*UnlockResponse) Descriptor
deprecated
func (*UnlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnlockResponse.ProtoReflect.Descriptor instead.
func (*UnlockResponse) GetHeader ¶
func (x *UnlockResponse) GetHeader() *ResponseHeader
func (*UnlockResponse) ProtoMessage ¶
func (*UnlockResponse) ProtoMessage()
func (*UnlockResponse) ProtoReflect ¶
func (x *UnlockResponse) ProtoReflect() protoreflect.Message
func (*UnlockResponse) Reset ¶
func (x *UnlockResponse) Reset()
func (*UnlockResponse) String ¶
func (x *UnlockResponse) String() string
type UnsafeKVServer ¶
type UnsafeKVServer interface {
// contains filtered or unexported methods
}
UnsafeKVServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KVServer will result in compilation errors.
type UnsafeLockerServer ¶
type UnsafeLockerServer interface {
// contains filtered or unexported methods
}
UnsafeLockerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LockerServer will result in compilation errors.
type UnsafeRedQueenServer ¶
type UnsafeRedQueenServer interface {
// contains filtered or unexported methods
}
UnsafeRedQueenServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RedQueenServer will result in compilation errors.
type UnsafeServiceBridgeServer ¶
type UnsafeServiceBridgeServer interface {
// contains filtered or unexported methods
}
UnsafeServiceBridgeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceBridgeServer will result in compilation errors.
type WatchRequest ¶
type WatchRequest struct {
// key is the key, in bytes, to delete into the key-value store.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// ignore_errors caused by problems such as key-value being deleted or not existing
IgnoreErrors bool `protobuf:"varint,2,opt,name=ignore_errors,json=ignoreErrors,proto3" json:"ignore_errors,omitempty"`
// namespace means the same key-value store can exist in different namespaces
Namespace *string `protobuf:"bytes,3,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
// buf_size, declare the buffer size of watch
BufSize *uint32 `protobuf:"varint,4,opt,name=buf_size,json=bufSize,proto3,oneof" json:"buf_size,omitempty"`
// contains filtered or unexported fields
}
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetBufSize ¶
func (x *WatchRequest) GetBufSize() uint32
func (*WatchRequest) GetIgnoreErrors ¶
func (x *WatchRequest) GetIgnoreErrors() bool
func (*WatchRequest) GetKey ¶
func (x *WatchRequest) GetKey() []byte
func (*WatchRequest) GetNamespace ¶
func (x *WatchRequest) GetNamespace() string
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
type WatchResponse ¶
type WatchResponse struct {
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// update_seq is the updated serial number (current session)
UpdateSeq uint64 `protobuf:"varint,2,opt,name=update_seq,json=updateSeq,proto3" json:"update_seq,omitempty"`
// timestamp is the when this value was updated
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetData ¶
func (x *WatchResponse) GetData() []byte
func (*WatchResponse) GetHeader ¶
func (x *WatchResponse) GetHeader() *ResponseHeader
func (*WatchResponse) GetTimestamp ¶
func (x *WatchResponse) GetTimestamp() int64
func (*WatchResponse) GetUpdateSeq ¶
func (x *WatchResponse) GetUpdateSeq() uint64
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string