Documentation ¶
Index ¶
- Variables
- func RegisterMasterGrpcServiceServer(s grpc.ServiceRegistrar, srv MasterGrpcServiceServer)
- func RegisterSlaveGrpcServiceServer(s grpc.ServiceRegistrar, srv SlaveGrpcServiceServer)
- type MasterCurrentLeaderRequest
- type MasterCurrentLeaderResponse
- func (*MasterCurrentLeaderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterCurrentLeaderResponse) GetLeader() string
- func (*MasterCurrentLeaderResponse) ProtoMessage()
- func (x *MasterCurrentLeaderResponse) ProtoReflect() protoreflect.Message
- func (x *MasterCurrentLeaderResponse) Reset()
- func (x *MasterCurrentLeaderResponse) String() string
- type MasterDelRequest
- type MasterDelResponse
- type MasterExpireRequest
- func (*MasterExpireRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MasterExpireRequest) GetKey() string
- func (x *MasterExpireRequest) GetTtl() int64
- func (*MasterExpireRequest) ProtoMessage()
- func (x *MasterExpireRequest) ProtoReflect() protoreflect.Message
- func (x *MasterExpireRequest) Reset()
- func (x *MasterExpireRequest) String() string
- type MasterExpireResponse
- func (*MasterExpireResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterExpireResponse) GetOk() bool
- func (*MasterExpireResponse) ProtoMessage()
- func (x *MasterExpireResponse) ProtoReflect() protoreflect.Message
- func (x *MasterExpireResponse) Reset()
- func (x *MasterExpireResponse) String() string
- type MasterGetRequest
- type MasterGetResponse
- type MasterGrpcServiceClient
- type MasterGrpcServiceServer
- type MasterHeartbeatRequest
- func (*MasterHeartbeatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MasterHeartbeatRequest) GetAddr() string
- func (*MasterHeartbeatRequest) ProtoMessage()
- func (x *MasterHeartbeatRequest) ProtoReflect() protoreflect.Message
- func (x *MasterHeartbeatRequest) Reset()
- func (x *MasterHeartbeatRequest) String() string
- type MasterHeartbeatResponse
- func (*MasterHeartbeatResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterHeartbeatResponse) GetOk() bool
- func (*MasterHeartbeatResponse) ProtoMessage()
- func (x *MasterHeartbeatResponse) ProtoReflect() protoreflect.Message
- func (x *MasterHeartbeatResponse) Reset()
- func (x *MasterHeartbeatResponse) String() string
- type MasterKeysRequest
- type MasterKeysResponse
- func (*MasterKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterKeysResponse) GetKeys() []string
- func (*MasterKeysResponse) ProtoMessage()
- func (x *MasterKeysResponse) ProtoReflect() protoreflect.Message
- func (x *MasterKeysResponse) Reset()
- func (x *MasterKeysResponse) String() string
- type MasterPingRequest
- type MasterPingResponse
- func (*MasterPingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterPingResponse) GetMessage() string
- func (*MasterPingResponse) ProtoMessage()
- func (x *MasterPingResponse) ProtoReflect() protoreflect.Message
- func (x *MasterPingResponse) Reset()
- func (x *MasterPingResponse) String() string
- type MasterRegisterSlaveRequest
- func (*MasterRegisterSlaveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MasterRegisterSlaveRequest) GetAddr() string
- func (*MasterRegisterSlaveRequest) ProtoMessage()
- func (x *MasterRegisterSlaveRequest) ProtoReflect() protoreflect.Message
- func (x *MasterRegisterSlaveRequest) Reset()
- func (x *MasterRegisterSlaveRequest) String() string
- type MasterRegisterSlaveResponse
- func (*MasterRegisterSlaveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterRegisterSlaveResponse) GetOk() bool
- func (*MasterRegisterSlaveResponse) ProtoMessage()
- func (x *MasterRegisterSlaveResponse) ProtoReflect() protoreflect.Message
- func (x *MasterRegisterSlaveResponse) Reset()
- func (x *MasterRegisterSlaveResponse) String() string
- type MasterScanRequest
- type MasterScanResponse
- func (*MasterScanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterScanResponse) GetKeys() []string
- func (*MasterScanResponse) ProtoMessage()
- func (x *MasterScanResponse) ProtoReflect() protoreflect.Message
- func (x *MasterScanResponse) Reset()
- func (x *MasterScanResponse) String() string
- type MasterSetRequest
- func (*MasterSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MasterSetRequest) GetKey() string
- func (x *MasterSetRequest) GetValue() string
- func (*MasterSetRequest) ProtoMessage()
- func (x *MasterSetRequest) ProtoReflect() protoreflect.Message
- func (x *MasterSetRequest) Reset()
- func (x *MasterSetRequest) String() string
- type MasterSetResponse
- type MasterShutdownRequest
- func (*MasterShutdownRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MasterShutdownRequest) GetMessage() string
- func (*MasterShutdownRequest) ProtoMessage()
- func (x *MasterShutdownRequest) ProtoReflect() protoreflect.Message
- func (x *MasterShutdownRequest) Reset()
- func (x *MasterShutdownRequest) String() string
- type MasterShutdownResponse
- func (*MasterShutdownResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MasterShutdownResponse) GetMessage() string
- func (*MasterShutdownResponse) ProtoMessage()
- func (x *MasterShutdownResponse) ProtoReflect() protoreflect.Message
- func (x *MasterShutdownResponse) Reset()
- func (x *MasterShutdownResponse) String() string
- type MasterTTLRequest
- type MasterTTLResponse
- type SlaveDelRequest
- type SlaveDelResponse
- type SlaveExistsRequest
- type SlaveExistsResponse
- func (*SlaveExistsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SlaveExistsResponse) GetExists() bool
- func (*SlaveExistsResponse) ProtoMessage()
- func (x *SlaveExistsResponse) ProtoReflect() protoreflect.Message
- func (x *SlaveExistsResponse) Reset()
- func (x *SlaveExistsResponse) String() string
- type SlaveExpireRequest
- func (*SlaveExpireRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SlaveExpireRequest) GetKey() string
- func (x *SlaveExpireRequest) GetTtl() int64
- func (*SlaveExpireRequest) ProtoMessage()
- func (x *SlaveExpireRequest) ProtoReflect() protoreflect.Message
- func (x *SlaveExpireRequest) Reset()
- func (x *SlaveExpireRequest) String() string
- type SlaveExpireResponse
- func (*SlaveExpireResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SlaveExpireResponse) GetOk() bool
- func (*SlaveExpireResponse) ProtoMessage()
- func (x *SlaveExpireResponse) ProtoReflect() protoreflect.Message
- func (x *SlaveExpireResponse) Reset()
- func (x *SlaveExpireResponse) String() string
- type SlaveGetRequest
- type SlaveGetResponse
- type SlaveGrpcServiceClient
- type SlaveGrpcServiceServer
- type SlaveHeartbeatRequest
- func (*SlaveHeartbeatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SlaveHeartbeatRequest) GetId() string
- func (*SlaveHeartbeatRequest) ProtoMessage()
- func (x *SlaveHeartbeatRequest) ProtoReflect() protoreflect.Message
- func (x *SlaveHeartbeatRequest) Reset()
- func (x *SlaveHeartbeatRequest) String() string
- type SlaveHeartbeatResponse
- func (*SlaveHeartbeatResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SlaveHeartbeatResponse) GetOk() bool
- func (*SlaveHeartbeatResponse) ProtoMessage()
- func (x *SlaveHeartbeatResponse) ProtoReflect() protoreflect.Message
- func (x *SlaveHeartbeatResponse) Reset()
- func (x *SlaveHeartbeatResponse) String() string
- type SlaveKeysRequest
- type SlaveKeysResponse
- type SlaveSetRequest
- func (*SlaveSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SlaveSetRequest) GetKey() string
- func (x *SlaveSetRequest) GetValue() string
- func (*SlaveSetRequest) ProtoMessage()
- func (x *SlaveSetRequest) ProtoReflect() protoreflect.Message
- func (x *SlaveSetRequest) Reset()
- func (x *SlaveSetRequest) String() string
- type SlaveSetResponse
- type SlaveTTLRequest
- type SlaveTTLResponse
- type UnimplementedMasterGrpcServiceServer
- func (UnimplementedMasterGrpcServiceServer) CurrentLeader(context.Context, *MasterCurrentLeaderRequest) (*MasterCurrentLeaderResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Del(context.Context, *MasterDelRequest) (*MasterDelResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Expire(context.Context, *MasterExpireRequest) (*MasterExpireResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Get(context.Context, *MasterGetRequest) (*MasterGetResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Keys(context.Context, *MasterKeysRequest) (*MasterKeysResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Ping(context.Context, *MasterPingRequest) (*MasterPingResponse, error)
- func (UnimplementedMasterGrpcServiceServer) ReceiveHeartbeat(context.Context, *MasterHeartbeatRequest) (*MasterHeartbeatResponse, error)
- func (UnimplementedMasterGrpcServiceServer) RegisterSlave(context.Context, *MasterRegisterSlaveRequest) (*MasterRegisterSlaveResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Scan(context.Context, *MasterScanRequest) (*MasterScanResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Set(context.Context, *MasterSetRequest) (*MasterSetResponse, error)
- func (UnimplementedMasterGrpcServiceServer) Shutdown(context.Context, *MasterShutdownRequest) (*MasterShutdownResponse, error)
- func (UnimplementedMasterGrpcServiceServer) TTL(context.Context, *MasterTTLRequest) (*MasterTTLResponse, error)
- type UnimplementedSlaveGrpcServiceServer
- func (UnimplementedSlaveGrpcServiceServer) Del(context.Context, *SlaveDelRequest) (*SlaveDelResponse, error)
- func (UnimplementedSlaveGrpcServiceServer) Exists(context.Context, *SlaveExistsRequest) (*SlaveExistsResponse, error)
- func (UnimplementedSlaveGrpcServiceServer) Expire(context.Context, *SlaveExpireRequest) (*SlaveExpireResponse, error)
- func (UnimplementedSlaveGrpcServiceServer) Get(context.Context, *SlaveGetRequest) (*SlaveGetResponse, error)
- func (UnimplementedSlaveGrpcServiceServer) Heartbeat(context.Context, *SlaveHeartbeatRequest) (*SlaveHeartbeatResponse, error)
- func (UnimplementedSlaveGrpcServiceServer) Keys(context.Context, *SlaveKeysRequest) (*SlaveKeysResponse, error)
- func (UnimplementedSlaveGrpcServiceServer) Set(context.Context, *SlaveSetRequest) (*SlaveSetResponse, error)
- func (UnimplementedSlaveGrpcServiceServer) TTL(context.Context, *SlaveTTLRequest) (*SlaveTTLResponse, error)
- type UnsafeMasterGrpcServiceServer
- type UnsafeSlaveGrpcServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_lib_proto_master_proto protoreflect.FileDescriptor
var File_lib_proto_slave_proto protoreflect.FileDescriptor
var MasterGrpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cluster.MasterGrpcService", HandlerType: (*MasterGrpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _MasterGrpcService_Get_Handler, }, { MethodName: "Set", Handler: _MasterGrpcService_Set_Handler, }, { MethodName: "Del", Handler: _MasterGrpcService_Del_Handler, }, { MethodName: "Keys", Handler: _MasterGrpcService_Keys_Handler, }, { MethodName: "Scan", Handler: _MasterGrpcService_Scan_Handler, }, { MethodName: "Expire", Handler: _MasterGrpcService_Expire_Handler, }, { MethodName: "TTL", Handler: _MasterGrpcService_TTL_Handler, }, { MethodName: "Ping", Handler: _MasterGrpcService_Ping_Handler, }, { MethodName: "Shutdown", Handler: _MasterGrpcService_Shutdown_Handler, }, { MethodName: "RegisterSlave", Handler: _MasterGrpcService_RegisterSlave_Handler, }, { MethodName: "CurrentLeader", Handler: _MasterGrpcService_CurrentLeader_Handler, }, { MethodName: "ReceiveHeartbeat", Handler: _MasterGrpcService_ReceiveHeartbeat_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "lib/proto/master.proto", }
MasterGrpcService_ServiceDesc is the grpc.ServiceDesc for MasterGrpcService gstring. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SlaveGrpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cluster.SlaveGrpcService", HandlerType: (*SlaveGrpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _SlaveGrpcService_Get_Handler, }, { MethodName: "Set", Handler: _SlaveGrpcService_Set_Handler, }, { MethodName: "Del", Handler: _SlaveGrpcService_Del_Handler, }, { MethodName: "Keys", Handler: _SlaveGrpcService_Keys_Handler, }, { MethodName: "Exists", Handler: _SlaveGrpcService_Exists_Handler, }, { MethodName: "Expire", Handler: _SlaveGrpcService_Expire_Handler, }, { MethodName: "TTL", Handler: _SlaveGrpcService_TTL_Handler, }, { MethodName: "Heartbeat", Handler: _SlaveGrpcService_Heartbeat_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "lib/proto/slave.proto", }
SlaveGrpcService_ServiceDesc is the grpc.ServiceDesc for SlaveGrpcService dbs. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMasterGrpcServiceServer ¶
func RegisterMasterGrpcServiceServer(s grpc.ServiceRegistrar, srv MasterGrpcServiceServer)
func RegisterSlaveGrpcServiceServer ¶
func RegisterSlaveGrpcServiceServer(s grpc.ServiceRegistrar, srv SlaveGrpcServiceServer)
Types ¶
type MasterCurrentLeaderRequest ¶
type MasterCurrentLeaderRequest struct {
// contains filtered or unexported fields
}
func (*MasterCurrentLeaderRequest) Descriptor
deprecated
func (*MasterCurrentLeaderRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterCurrentLeaderRequest.ProtoReflect.Descriptor instead.
func (*MasterCurrentLeaderRequest) ProtoMessage ¶
func (*MasterCurrentLeaderRequest) ProtoMessage()
func (*MasterCurrentLeaderRequest) ProtoReflect ¶
func (x *MasterCurrentLeaderRequest) ProtoReflect() protoreflect.Message
func (*MasterCurrentLeaderRequest) Reset ¶
func (x *MasterCurrentLeaderRequest) Reset()
func (*MasterCurrentLeaderRequest) String ¶
func (x *MasterCurrentLeaderRequest) String() string
type MasterCurrentLeaderResponse ¶
type MasterCurrentLeaderResponse struct { Leader string `protobuf:"bytes,1,opt,name=leader,proto3" json:"leader,omitempty"` // contains filtered or unexported fields }
func (*MasterCurrentLeaderResponse) Descriptor
deprecated
func (*MasterCurrentLeaderResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterCurrentLeaderResponse.ProtoReflect.Descriptor instead.
func (*MasterCurrentLeaderResponse) GetLeader ¶
func (x *MasterCurrentLeaderResponse) GetLeader() string
func (*MasterCurrentLeaderResponse) ProtoMessage ¶
func (*MasterCurrentLeaderResponse) ProtoMessage()
func (*MasterCurrentLeaderResponse) ProtoReflect ¶
func (x *MasterCurrentLeaderResponse) ProtoReflect() protoreflect.Message
func (*MasterCurrentLeaderResponse) Reset ¶
func (x *MasterCurrentLeaderResponse) Reset()
func (*MasterCurrentLeaderResponse) String ¶
func (x *MasterCurrentLeaderResponse) String() string
type MasterDelRequest ¶
type MasterDelRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*MasterDelRequest) Descriptor
deprecated
func (*MasterDelRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterDelRequest.ProtoReflect.Descriptor instead.
func (*MasterDelRequest) GetKey ¶
func (x *MasterDelRequest) GetKey() string
func (*MasterDelRequest) ProtoMessage ¶
func (*MasterDelRequest) ProtoMessage()
func (*MasterDelRequest) ProtoReflect ¶
func (x *MasterDelRequest) ProtoReflect() protoreflect.Message
func (*MasterDelRequest) Reset ¶
func (x *MasterDelRequest) Reset()
func (*MasterDelRequest) String ¶
func (x *MasterDelRequest) String() string
type MasterDelResponse ¶
type MasterDelResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*MasterDelResponse) Descriptor
deprecated
func (*MasterDelResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterDelResponse.ProtoReflect.Descriptor instead.
func (*MasterDelResponse) GetOk ¶
func (x *MasterDelResponse) GetOk() bool
func (*MasterDelResponse) ProtoMessage ¶
func (*MasterDelResponse) ProtoMessage()
func (*MasterDelResponse) ProtoReflect ¶
func (x *MasterDelResponse) ProtoReflect() protoreflect.Message
func (*MasterDelResponse) Reset ¶
func (x *MasterDelResponse) Reset()
func (*MasterDelResponse) String ¶
func (x *MasterDelResponse) String() string
type MasterExpireRequest ¶
type MasterExpireRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Ttl int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*MasterExpireRequest) Descriptor
deprecated
func (*MasterExpireRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterExpireRequest.ProtoReflect.Descriptor instead.
func (*MasterExpireRequest) GetKey ¶
func (x *MasterExpireRequest) GetKey() string
func (*MasterExpireRequest) GetTtl ¶
func (x *MasterExpireRequest) GetTtl() int64
func (*MasterExpireRequest) ProtoMessage ¶
func (*MasterExpireRequest) ProtoMessage()
func (*MasterExpireRequest) ProtoReflect ¶
func (x *MasterExpireRequest) ProtoReflect() protoreflect.Message
func (*MasterExpireRequest) Reset ¶
func (x *MasterExpireRequest) Reset()
func (*MasterExpireRequest) String ¶
func (x *MasterExpireRequest) String() string
type MasterExpireResponse ¶
type MasterExpireResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*MasterExpireResponse) Descriptor
deprecated
func (*MasterExpireResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterExpireResponse.ProtoReflect.Descriptor instead.
func (*MasterExpireResponse) GetOk ¶
func (x *MasterExpireResponse) GetOk() bool
func (*MasterExpireResponse) ProtoMessage ¶
func (*MasterExpireResponse) ProtoMessage()
func (*MasterExpireResponse) ProtoReflect ¶
func (x *MasterExpireResponse) ProtoReflect() protoreflect.Message
func (*MasterExpireResponse) Reset ¶
func (x *MasterExpireResponse) Reset()
func (*MasterExpireResponse) String ¶
func (x *MasterExpireResponse) String() string
type MasterGetRequest ¶
type MasterGetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*MasterGetRequest) Descriptor
deprecated
func (*MasterGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterGetRequest.ProtoReflect.Descriptor instead.
func (*MasterGetRequest) GetKey ¶
func (x *MasterGetRequest) GetKey() string
func (*MasterGetRequest) ProtoMessage ¶
func (*MasterGetRequest) ProtoMessage()
func (*MasterGetRequest) ProtoReflect ¶
func (x *MasterGetRequest) ProtoReflect() protoreflect.Message
func (*MasterGetRequest) Reset ¶
func (x *MasterGetRequest) Reset()
func (*MasterGetRequest) String ¶
func (x *MasterGetRequest) String() string
type MasterGetResponse ¶
type MasterGetResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*MasterGetResponse) Descriptor
deprecated
func (*MasterGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterGetResponse.ProtoReflect.Descriptor instead.
func (*MasterGetResponse) GetValue ¶
func (x *MasterGetResponse) GetValue() string
func (*MasterGetResponse) ProtoMessage ¶
func (*MasterGetResponse) ProtoMessage()
func (*MasterGetResponse) ProtoReflect ¶
func (x *MasterGetResponse) ProtoReflect() protoreflect.Message
func (*MasterGetResponse) Reset ¶
func (x *MasterGetResponse) Reset()
func (*MasterGetResponse) String ¶
func (x *MasterGetResponse) String() string
type MasterGrpcServiceClient ¶
type MasterGrpcServiceClient interface { Get(ctx context.Context, in *MasterGetRequest, opts ...grpc.CallOption) (*MasterGetResponse, error) Set(ctx context.Context, in *MasterSetRequest, opts ...grpc.CallOption) (*MasterSetResponse, error) Del(ctx context.Context, in *MasterDelRequest, opts ...grpc.CallOption) (*MasterDelResponse, error) Keys(ctx context.Context, in *MasterKeysRequest, opts ...grpc.CallOption) (*MasterKeysResponse, error) Scan(ctx context.Context, in *MasterScanRequest, opts ...grpc.CallOption) (*MasterScanResponse, error) Expire(ctx context.Context, in *MasterExpireRequest, opts ...grpc.CallOption) (*MasterExpireResponse, error) TTL(ctx context.Context, in *MasterTTLRequest, opts ...grpc.CallOption) (*MasterTTLResponse, error) Ping(ctx context.Context, in *MasterPingRequest, opts ...grpc.CallOption) (*MasterPingResponse, error) Shutdown(ctx context.Context, in *MasterShutdownRequest, opts ...grpc.CallOption) (*MasterShutdownResponse, error) RegisterSlave(ctx context.Context, in *MasterRegisterSlaveRequest, opts ...grpc.CallOption) (*MasterRegisterSlaveResponse, error) CurrentLeader(ctx context.Context, in *MasterCurrentLeaderRequest, opts ...grpc.CallOption) (*MasterCurrentLeaderResponse, error) ReceiveHeartbeat(ctx context.Context, in *MasterHeartbeatRequest, opts ...grpc.CallOption) (*MasterHeartbeatResponse, error) }
MasterGrpcServiceClient is the client API for MasterGrpcService gstring.
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 NewMasterGrpcServiceClient ¶
func NewMasterGrpcServiceClient(cc grpc.ClientConnInterface) MasterGrpcServiceClient
type MasterGrpcServiceServer ¶
type MasterGrpcServiceServer interface { Get(context.Context, *MasterGetRequest) (*MasterGetResponse, error) Set(context.Context, *MasterSetRequest) (*MasterSetResponse, error) Del(context.Context, *MasterDelRequest) (*MasterDelResponse, error) Keys(context.Context, *MasterKeysRequest) (*MasterKeysResponse, error) Scan(context.Context, *MasterScanRequest) (*MasterScanResponse, error) Expire(context.Context, *MasterExpireRequest) (*MasterExpireResponse, error) TTL(context.Context, *MasterTTLRequest) (*MasterTTLResponse, error) Ping(context.Context, *MasterPingRequest) (*MasterPingResponse, error) Shutdown(context.Context, *MasterShutdownRequest) (*MasterShutdownResponse, error) RegisterSlave(context.Context, *MasterRegisterSlaveRequest) (*MasterRegisterSlaveResponse, error) CurrentLeader(context.Context, *MasterCurrentLeaderRequest) (*MasterCurrentLeaderResponse, error) ReceiveHeartbeat(context.Context, *MasterHeartbeatRequest) (*MasterHeartbeatResponse, error) // contains filtered or unexported methods }
MasterGrpcServiceServer is the server API for MasterGrpcService gstring. All implementations must embed UnimplementedMasterGrpcServiceServer for forward compatibility
type MasterHeartbeatRequest ¶ added in v1.0.4
type MasterHeartbeatRequest struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
func (*MasterHeartbeatRequest) Descriptor
deprecated
added in
v1.0.4
func (*MasterHeartbeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterHeartbeatRequest.ProtoReflect.Descriptor instead.
func (*MasterHeartbeatRequest) GetAddr ¶ added in v1.0.4
func (x *MasterHeartbeatRequest) GetAddr() string
func (*MasterHeartbeatRequest) ProtoMessage ¶ added in v1.0.4
func (*MasterHeartbeatRequest) ProtoMessage()
func (*MasterHeartbeatRequest) ProtoReflect ¶ added in v1.0.4
func (x *MasterHeartbeatRequest) ProtoReflect() protoreflect.Message
func (*MasterHeartbeatRequest) Reset ¶ added in v1.0.4
func (x *MasterHeartbeatRequest) Reset()
func (*MasterHeartbeatRequest) String ¶ added in v1.0.4
func (x *MasterHeartbeatRequest) String() string
type MasterHeartbeatResponse ¶ added in v1.0.4
type MasterHeartbeatResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*MasterHeartbeatResponse) Descriptor
deprecated
added in
v1.0.4
func (*MasterHeartbeatResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterHeartbeatResponse.ProtoReflect.Descriptor instead.
func (*MasterHeartbeatResponse) GetOk ¶ added in v1.0.4
func (x *MasterHeartbeatResponse) GetOk() bool
func (*MasterHeartbeatResponse) ProtoMessage ¶ added in v1.0.4
func (*MasterHeartbeatResponse) ProtoMessage()
func (*MasterHeartbeatResponse) ProtoReflect ¶ added in v1.0.4
func (x *MasterHeartbeatResponse) ProtoReflect() protoreflect.Message
func (*MasterHeartbeatResponse) Reset ¶ added in v1.0.4
func (x *MasterHeartbeatResponse) Reset()
func (*MasterHeartbeatResponse) String ¶ added in v1.0.4
func (x *MasterHeartbeatResponse) String() string
type MasterKeysRequest ¶
type MasterKeysRequest struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // contains filtered or unexported fields }
func (*MasterKeysRequest) Descriptor
deprecated
func (*MasterKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterKeysRequest.ProtoReflect.Descriptor instead.
func (*MasterKeysRequest) GetPattern ¶
func (x *MasterKeysRequest) GetPattern() string
func (*MasterKeysRequest) ProtoMessage ¶
func (*MasterKeysRequest) ProtoMessage()
func (*MasterKeysRequest) ProtoReflect ¶
func (x *MasterKeysRequest) ProtoReflect() protoreflect.Message
func (*MasterKeysRequest) Reset ¶
func (x *MasterKeysRequest) Reset()
func (*MasterKeysRequest) String ¶
func (x *MasterKeysRequest) String() string
type MasterKeysResponse ¶
type MasterKeysResponse struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*MasterKeysResponse) Descriptor
deprecated
func (*MasterKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterKeysResponse.ProtoReflect.Descriptor instead.
func (*MasterKeysResponse) GetKeys ¶
func (x *MasterKeysResponse) GetKeys() []string
func (*MasterKeysResponse) ProtoMessage ¶
func (*MasterKeysResponse) ProtoMessage()
func (*MasterKeysResponse) ProtoReflect ¶
func (x *MasterKeysResponse) ProtoReflect() protoreflect.Message
func (*MasterKeysResponse) Reset ¶
func (x *MasterKeysResponse) Reset()
func (*MasterKeysResponse) String ¶
func (x *MasterKeysResponse) String() string
type MasterPingRequest ¶
type MasterPingRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MasterPingRequest) Descriptor
deprecated
func (*MasterPingRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterPingRequest.ProtoReflect.Descriptor instead.
func (*MasterPingRequest) GetMessage ¶
func (x *MasterPingRequest) GetMessage() string
func (*MasterPingRequest) ProtoMessage ¶
func (*MasterPingRequest) ProtoMessage()
func (*MasterPingRequest) ProtoReflect ¶
func (x *MasterPingRequest) ProtoReflect() protoreflect.Message
func (*MasterPingRequest) Reset ¶
func (x *MasterPingRequest) Reset()
func (*MasterPingRequest) String ¶
func (x *MasterPingRequest) String() string
type MasterPingResponse ¶
type MasterPingResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MasterPingResponse) Descriptor
deprecated
func (*MasterPingResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterPingResponse.ProtoReflect.Descriptor instead.
func (*MasterPingResponse) GetMessage ¶
func (x *MasterPingResponse) GetMessage() string
func (*MasterPingResponse) ProtoMessage ¶
func (*MasterPingResponse) ProtoMessage()
func (*MasterPingResponse) ProtoReflect ¶
func (x *MasterPingResponse) ProtoReflect() protoreflect.Message
func (*MasterPingResponse) Reset ¶
func (x *MasterPingResponse) Reset()
func (*MasterPingResponse) String ¶
func (x *MasterPingResponse) String() string
type MasterRegisterSlaveRequest ¶
type MasterRegisterSlaveRequest struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
func (*MasterRegisterSlaveRequest) Descriptor
deprecated
func (*MasterRegisterSlaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterRegisterSlaveRequest.ProtoReflect.Descriptor instead.
func (*MasterRegisterSlaveRequest) GetAddr ¶
func (x *MasterRegisterSlaveRequest) GetAddr() string
func (*MasterRegisterSlaveRequest) ProtoMessage ¶
func (*MasterRegisterSlaveRequest) ProtoMessage()
func (*MasterRegisterSlaveRequest) ProtoReflect ¶
func (x *MasterRegisterSlaveRequest) ProtoReflect() protoreflect.Message
func (*MasterRegisterSlaveRequest) Reset ¶
func (x *MasterRegisterSlaveRequest) Reset()
func (*MasterRegisterSlaveRequest) String ¶
func (x *MasterRegisterSlaveRequest) String() string
type MasterRegisterSlaveResponse ¶
type MasterRegisterSlaveResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*MasterRegisterSlaveResponse) Descriptor
deprecated
func (*MasterRegisterSlaveResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterRegisterSlaveResponse.ProtoReflect.Descriptor instead.
func (*MasterRegisterSlaveResponse) GetOk ¶
func (x *MasterRegisterSlaveResponse) GetOk() bool
func (*MasterRegisterSlaveResponse) ProtoMessage ¶
func (*MasterRegisterSlaveResponse) ProtoMessage()
func (*MasterRegisterSlaveResponse) ProtoReflect ¶
func (x *MasterRegisterSlaveResponse) ProtoReflect() protoreflect.Message
func (*MasterRegisterSlaveResponse) Reset ¶
func (x *MasterRegisterSlaveResponse) Reset()
func (*MasterRegisterSlaveResponse) String ¶
func (x *MasterRegisterSlaveResponse) String() string
type MasterScanRequest ¶
type MasterScanRequest struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // contains filtered or unexported fields }
func (*MasterScanRequest) Descriptor
deprecated
func (*MasterScanRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterScanRequest.ProtoReflect.Descriptor instead.
func (*MasterScanRequest) GetPattern ¶
func (x *MasterScanRequest) GetPattern() string
func (*MasterScanRequest) ProtoMessage ¶
func (*MasterScanRequest) ProtoMessage()
func (*MasterScanRequest) ProtoReflect ¶
func (x *MasterScanRequest) ProtoReflect() protoreflect.Message
func (*MasterScanRequest) Reset ¶
func (x *MasterScanRequest) Reset()
func (*MasterScanRequest) String ¶
func (x *MasterScanRequest) String() string
type MasterScanResponse ¶
type MasterScanResponse struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*MasterScanResponse) Descriptor
deprecated
func (*MasterScanResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterScanResponse.ProtoReflect.Descriptor instead.
func (*MasterScanResponse) GetKeys ¶
func (x *MasterScanResponse) GetKeys() []string
func (*MasterScanResponse) ProtoMessage ¶
func (*MasterScanResponse) ProtoMessage()
func (*MasterScanResponse) ProtoReflect ¶
func (x *MasterScanResponse) ProtoReflect() protoreflect.Message
func (*MasterScanResponse) Reset ¶
func (x *MasterScanResponse) Reset()
func (*MasterScanResponse) String ¶
func (x *MasterScanResponse) String() string
type MasterSetRequest ¶
type MasterSetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*MasterSetRequest) Descriptor
deprecated
func (*MasterSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterSetRequest.ProtoReflect.Descriptor instead.
func (*MasterSetRequest) GetKey ¶
func (x *MasterSetRequest) GetKey() string
func (*MasterSetRequest) GetValue ¶
func (x *MasterSetRequest) GetValue() string
func (*MasterSetRequest) ProtoMessage ¶
func (*MasterSetRequest) ProtoMessage()
func (*MasterSetRequest) ProtoReflect ¶
func (x *MasterSetRequest) ProtoReflect() protoreflect.Message
func (*MasterSetRequest) Reset ¶
func (x *MasterSetRequest) Reset()
func (*MasterSetRequest) String ¶
func (x *MasterSetRequest) String() string
type MasterSetResponse ¶
type MasterSetResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*MasterSetResponse) Descriptor
deprecated
func (*MasterSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterSetResponse.ProtoReflect.Descriptor instead.
func (*MasterSetResponse) GetOk ¶
func (x *MasterSetResponse) GetOk() bool
func (*MasterSetResponse) ProtoMessage ¶
func (*MasterSetResponse) ProtoMessage()
func (*MasterSetResponse) ProtoReflect ¶
func (x *MasterSetResponse) ProtoReflect() protoreflect.Message
func (*MasterSetResponse) Reset ¶
func (x *MasterSetResponse) Reset()
func (*MasterSetResponse) String ¶
func (x *MasterSetResponse) String() string
type MasterShutdownRequest ¶
type MasterShutdownRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MasterShutdownRequest) Descriptor
deprecated
func (*MasterShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterShutdownRequest.ProtoReflect.Descriptor instead.
func (*MasterShutdownRequest) GetMessage ¶
func (x *MasterShutdownRequest) GetMessage() string
func (*MasterShutdownRequest) ProtoMessage ¶
func (*MasterShutdownRequest) ProtoMessage()
func (*MasterShutdownRequest) ProtoReflect ¶
func (x *MasterShutdownRequest) ProtoReflect() protoreflect.Message
func (*MasterShutdownRequest) Reset ¶
func (x *MasterShutdownRequest) Reset()
func (*MasterShutdownRequest) String ¶
func (x *MasterShutdownRequest) String() string
type MasterShutdownResponse ¶
type MasterShutdownResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MasterShutdownResponse) Descriptor
deprecated
func (*MasterShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterShutdownResponse.ProtoReflect.Descriptor instead.
func (*MasterShutdownResponse) GetMessage ¶
func (x *MasterShutdownResponse) GetMessage() string
func (*MasterShutdownResponse) ProtoMessage ¶
func (*MasterShutdownResponse) ProtoMessage()
func (*MasterShutdownResponse) ProtoReflect ¶
func (x *MasterShutdownResponse) ProtoReflect() protoreflect.Message
func (*MasterShutdownResponse) Reset ¶
func (x *MasterShutdownResponse) Reset()
func (*MasterShutdownResponse) String ¶
func (x *MasterShutdownResponse) String() string
type MasterTTLRequest ¶
type MasterTTLRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*MasterTTLRequest) Descriptor
deprecated
func (*MasterTTLRequest) Descriptor() ([]byte, []int)
Deprecated: Use MasterTTLRequest.ProtoReflect.Descriptor instead.
func (*MasterTTLRequest) GetKey ¶
func (x *MasterTTLRequest) GetKey() string
func (*MasterTTLRequest) ProtoMessage ¶
func (*MasterTTLRequest) ProtoMessage()
func (*MasterTTLRequest) ProtoReflect ¶
func (x *MasterTTLRequest) ProtoReflect() protoreflect.Message
func (*MasterTTLRequest) Reset ¶
func (x *MasterTTLRequest) Reset()
func (*MasterTTLRequest) String ¶
func (x *MasterTTLRequest) String() string
type MasterTTLResponse ¶
type MasterTTLResponse struct { Ttl int64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*MasterTTLResponse) Descriptor
deprecated
func (*MasterTTLResponse) Descriptor() ([]byte, []int)
Deprecated: Use MasterTTLResponse.ProtoReflect.Descriptor instead.
func (*MasterTTLResponse) GetTtl ¶
func (x *MasterTTLResponse) GetTtl() int64
func (*MasterTTLResponse) ProtoMessage ¶
func (*MasterTTLResponse) ProtoMessage()
func (*MasterTTLResponse) ProtoReflect ¶
func (x *MasterTTLResponse) ProtoReflect() protoreflect.Message
func (*MasterTTLResponse) Reset ¶
func (x *MasterTTLResponse) Reset()
func (*MasterTTLResponse) String ¶
func (x *MasterTTLResponse) String() string
type SlaveDelRequest ¶
type SlaveDelRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*SlaveDelRequest) Descriptor
deprecated
func (*SlaveDelRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveDelRequest.ProtoReflect.Descriptor instead.
func (*SlaveDelRequest) GetKey ¶
func (x *SlaveDelRequest) GetKey() string
func (*SlaveDelRequest) ProtoMessage ¶
func (*SlaveDelRequest) ProtoMessage()
func (*SlaveDelRequest) ProtoReflect ¶
func (x *SlaveDelRequest) ProtoReflect() protoreflect.Message
func (*SlaveDelRequest) Reset ¶
func (x *SlaveDelRequest) Reset()
func (*SlaveDelRequest) String ¶
func (x *SlaveDelRequest) String() string
type SlaveDelResponse ¶
type SlaveDelResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*SlaveDelResponse) Descriptor
deprecated
func (*SlaveDelResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveDelResponse.ProtoReflect.Descriptor instead.
func (*SlaveDelResponse) GetOk ¶
func (x *SlaveDelResponse) GetOk() bool
func (*SlaveDelResponse) ProtoMessage ¶
func (*SlaveDelResponse) ProtoMessage()
func (*SlaveDelResponse) ProtoReflect ¶
func (x *SlaveDelResponse) ProtoReflect() protoreflect.Message
func (*SlaveDelResponse) Reset ¶
func (x *SlaveDelResponse) Reset()
func (*SlaveDelResponse) String ¶
func (x *SlaveDelResponse) String() string
type SlaveExistsRequest ¶
type SlaveExistsRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*SlaveExistsRequest) Descriptor
deprecated
func (*SlaveExistsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveExistsRequest.ProtoReflect.Descriptor instead.
func (*SlaveExistsRequest) GetKey ¶
func (x *SlaveExistsRequest) GetKey() string
func (*SlaveExistsRequest) ProtoMessage ¶
func (*SlaveExistsRequest) ProtoMessage()
func (*SlaveExistsRequest) ProtoReflect ¶
func (x *SlaveExistsRequest) ProtoReflect() protoreflect.Message
func (*SlaveExistsRequest) Reset ¶
func (x *SlaveExistsRequest) Reset()
func (*SlaveExistsRequest) String ¶
func (x *SlaveExistsRequest) String() string
type SlaveExistsResponse ¶
type SlaveExistsResponse struct { Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` // contains filtered or unexported fields }
func (*SlaveExistsResponse) Descriptor
deprecated
func (*SlaveExistsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveExistsResponse.ProtoReflect.Descriptor instead.
func (*SlaveExistsResponse) GetExists ¶
func (x *SlaveExistsResponse) GetExists() bool
func (*SlaveExistsResponse) ProtoMessage ¶
func (*SlaveExistsResponse) ProtoMessage()
func (*SlaveExistsResponse) ProtoReflect ¶
func (x *SlaveExistsResponse) ProtoReflect() protoreflect.Message
func (*SlaveExistsResponse) Reset ¶
func (x *SlaveExistsResponse) Reset()
func (*SlaveExistsResponse) String ¶
func (x *SlaveExistsResponse) String() string
type SlaveExpireRequest ¶
type SlaveExpireRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Ttl int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*SlaveExpireRequest) Descriptor
deprecated
func (*SlaveExpireRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveExpireRequest.ProtoReflect.Descriptor instead.
func (*SlaveExpireRequest) GetKey ¶
func (x *SlaveExpireRequest) GetKey() string
func (*SlaveExpireRequest) GetTtl ¶
func (x *SlaveExpireRequest) GetTtl() int64
func (*SlaveExpireRequest) ProtoMessage ¶
func (*SlaveExpireRequest) ProtoMessage()
func (*SlaveExpireRequest) ProtoReflect ¶
func (x *SlaveExpireRequest) ProtoReflect() protoreflect.Message
func (*SlaveExpireRequest) Reset ¶
func (x *SlaveExpireRequest) Reset()
func (*SlaveExpireRequest) String ¶
func (x *SlaveExpireRequest) String() string
type SlaveExpireResponse ¶
type SlaveExpireResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*SlaveExpireResponse) Descriptor
deprecated
func (*SlaveExpireResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveExpireResponse.ProtoReflect.Descriptor instead.
func (*SlaveExpireResponse) GetOk ¶
func (x *SlaveExpireResponse) GetOk() bool
func (*SlaveExpireResponse) ProtoMessage ¶
func (*SlaveExpireResponse) ProtoMessage()
func (*SlaveExpireResponse) ProtoReflect ¶
func (x *SlaveExpireResponse) ProtoReflect() protoreflect.Message
func (*SlaveExpireResponse) Reset ¶
func (x *SlaveExpireResponse) Reset()
func (*SlaveExpireResponse) String ¶
func (x *SlaveExpireResponse) String() string
type SlaveGetRequest ¶
type SlaveGetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*SlaveGetRequest) Descriptor
deprecated
func (*SlaveGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveGetRequest.ProtoReflect.Descriptor instead.
func (*SlaveGetRequest) GetKey ¶
func (x *SlaveGetRequest) GetKey() string
func (*SlaveGetRequest) ProtoMessage ¶
func (*SlaveGetRequest) ProtoMessage()
func (*SlaveGetRequest) ProtoReflect ¶
func (x *SlaveGetRequest) ProtoReflect() protoreflect.Message
func (*SlaveGetRequest) Reset ¶
func (x *SlaveGetRequest) Reset()
func (*SlaveGetRequest) String ¶
func (x *SlaveGetRequest) String() string
type SlaveGetResponse ¶
type SlaveGetResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SlaveGetResponse) Descriptor
deprecated
func (*SlaveGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveGetResponse.ProtoReflect.Descriptor instead.
func (*SlaveGetResponse) GetValue ¶
func (x *SlaveGetResponse) GetValue() string
func (*SlaveGetResponse) ProtoMessage ¶
func (*SlaveGetResponse) ProtoMessage()
func (*SlaveGetResponse) ProtoReflect ¶
func (x *SlaveGetResponse) ProtoReflect() protoreflect.Message
func (*SlaveGetResponse) Reset ¶
func (x *SlaveGetResponse) Reset()
func (*SlaveGetResponse) String ¶
func (x *SlaveGetResponse) String() string
type SlaveGrpcServiceClient ¶
type SlaveGrpcServiceClient interface { Get(ctx context.Context, in *SlaveGetRequest, opts ...grpc.CallOption) (*SlaveGetResponse, error) Set(ctx context.Context, in *SlaveSetRequest, opts ...grpc.CallOption) (*SlaveSetResponse, error) Del(ctx context.Context, in *SlaveDelRequest, opts ...grpc.CallOption) (*SlaveDelResponse, error) Keys(ctx context.Context, in *SlaveKeysRequest, opts ...grpc.CallOption) (*SlaveKeysResponse, error) Exists(ctx context.Context, in *SlaveExistsRequest, opts ...grpc.CallOption) (*SlaveExistsResponse, error) Expire(ctx context.Context, in *SlaveExpireRequest, opts ...grpc.CallOption) (*SlaveExpireResponse, error) TTL(ctx context.Context, in *SlaveTTLRequest, opts ...grpc.CallOption) (*SlaveTTLResponse, error) Heartbeat(ctx context.Context, in *SlaveHeartbeatRequest, opts ...grpc.CallOption) (*SlaveHeartbeatResponse, error) }
SlaveGrpcServiceClient is the client API for SlaveGrpcService dbs.
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 NewSlaveGrpcServiceClient ¶
func NewSlaveGrpcServiceClient(cc grpc.ClientConnInterface) SlaveGrpcServiceClient
type SlaveGrpcServiceServer ¶
type SlaveGrpcServiceServer interface { Get(context.Context, *SlaveGetRequest) (*SlaveGetResponse, error) Set(context.Context, *SlaveSetRequest) (*SlaveSetResponse, error) Del(context.Context, *SlaveDelRequest) (*SlaveDelResponse, error) Keys(context.Context, *SlaveKeysRequest) (*SlaveKeysResponse, error) Exists(context.Context, *SlaveExistsRequest) (*SlaveExistsResponse, error) Expire(context.Context, *SlaveExpireRequest) (*SlaveExpireResponse, error) TTL(context.Context, *SlaveTTLRequest) (*SlaveTTLResponse, error) Heartbeat(context.Context, *SlaveHeartbeatRequest) (*SlaveHeartbeatResponse, error) // contains filtered or unexported methods }
SlaveGrpcServiceServer is the server API for SlaveGrpcService dbs. All implementations must embed UnimplementedSlaveGrpcServiceServer for forward compatibility
type SlaveHeartbeatRequest ¶
type SlaveHeartbeatRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SlaveHeartbeatRequest) Descriptor
deprecated
func (*SlaveHeartbeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveHeartbeatRequest.ProtoReflect.Descriptor instead.
func (*SlaveHeartbeatRequest) GetId ¶
func (x *SlaveHeartbeatRequest) GetId() string
func (*SlaveHeartbeatRequest) ProtoMessage ¶
func (*SlaveHeartbeatRequest) ProtoMessage()
func (*SlaveHeartbeatRequest) ProtoReflect ¶
func (x *SlaveHeartbeatRequest) ProtoReflect() protoreflect.Message
func (*SlaveHeartbeatRequest) Reset ¶
func (x *SlaveHeartbeatRequest) Reset()
func (*SlaveHeartbeatRequest) String ¶
func (x *SlaveHeartbeatRequest) String() string
type SlaveHeartbeatResponse ¶
type SlaveHeartbeatResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*SlaveHeartbeatResponse) Descriptor
deprecated
func (*SlaveHeartbeatResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveHeartbeatResponse.ProtoReflect.Descriptor instead.
func (*SlaveHeartbeatResponse) GetOk ¶
func (x *SlaveHeartbeatResponse) GetOk() bool
func (*SlaveHeartbeatResponse) ProtoMessage ¶
func (*SlaveHeartbeatResponse) ProtoMessage()
func (*SlaveHeartbeatResponse) ProtoReflect ¶
func (x *SlaveHeartbeatResponse) ProtoReflect() protoreflect.Message
func (*SlaveHeartbeatResponse) Reset ¶
func (x *SlaveHeartbeatResponse) Reset()
func (*SlaveHeartbeatResponse) String ¶
func (x *SlaveHeartbeatResponse) String() string
type SlaveKeysRequest ¶
type SlaveKeysRequest struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // contains filtered or unexported fields }
func (*SlaveKeysRequest) Descriptor
deprecated
func (*SlaveKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveKeysRequest.ProtoReflect.Descriptor instead.
func (*SlaveKeysRequest) GetPattern ¶
func (x *SlaveKeysRequest) GetPattern() string
func (*SlaveKeysRequest) ProtoMessage ¶
func (*SlaveKeysRequest) ProtoMessage()
func (*SlaveKeysRequest) ProtoReflect ¶
func (x *SlaveKeysRequest) ProtoReflect() protoreflect.Message
func (*SlaveKeysRequest) Reset ¶
func (x *SlaveKeysRequest) Reset()
func (*SlaveKeysRequest) String ¶
func (x *SlaveKeysRequest) String() string
type SlaveKeysResponse ¶
type SlaveKeysResponse struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*SlaveKeysResponse) Descriptor
deprecated
func (*SlaveKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveKeysResponse.ProtoReflect.Descriptor instead.
func (*SlaveKeysResponse) GetKeys ¶
func (x *SlaveKeysResponse) GetKeys() []string
func (*SlaveKeysResponse) ProtoMessage ¶
func (*SlaveKeysResponse) ProtoMessage()
func (*SlaveKeysResponse) ProtoReflect ¶
func (x *SlaveKeysResponse) ProtoReflect() protoreflect.Message
func (*SlaveKeysResponse) Reset ¶
func (x *SlaveKeysResponse) Reset()
func (*SlaveKeysResponse) String ¶
func (x *SlaveKeysResponse) String() string
type SlaveSetRequest ¶
type SlaveSetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SlaveSetRequest) Descriptor
deprecated
func (*SlaveSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveSetRequest.ProtoReflect.Descriptor instead.
func (*SlaveSetRequest) GetKey ¶
func (x *SlaveSetRequest) GetKey() string
func (*SlaveSetRequest) GetValue ¶
func (x *SlaveSetRequest) GetValue() string
func (*SlaveSetRequest) ProtoMessage ¶
func (*SlaveSetRequest) ProtoMessage()
func (*SlaveSetRequest) ProtoReflect ¶
func (x *SlaveSetRequest) ProtoReflect() protoreflect.Message
func (*SlaveSetRequest) Reset ¶
func (x *SlaveSetRequest) Reset()
func (*SlaveSetRequest) String ¶
func (x *SlaveSetRequest) String() string
type SlaveSetResponse ¶
type SlaveSetResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*SlaveSetResponse) Descriptor
deprecated
func (*SlaveSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveSetResponse.ProtoReflect.Descriptor instead.
func (*SlaveSetResponse) GetOk ¶
func (x *SlaveSetResponse) GetOk() bool
func (*SlaveSetResponse) ProtoMessage ¶
func (*SlaveSetResponse) ProtoMessage()
func (*SlaveSetResponse) ProtoReflect ¶
func (x *SlaveSetResponse) ProtoReflect() protoreflect.Message
func (*SlaveSetResponse) Reset ¶
func (x *SlaveSetResponse) Reset()
func (*SlaveSetResponse) String ¶
func (x *SlaveSetResponse) String() string
type SlaveTTLRequest ¶
type SlaveTTLRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*SlaveTTLRequest) Descriptor
deprecated
func (*SlaveTTLRequest) Descriptor() ([]byte, []int)
Deprecated: Use SlaveTTLRequest.ProtoReflect.Descriptor instead.
func (*SlaveTTLRequest) GetKey ¶
func (x *SlaveTTLRequest) GetKey() string
func (*SlaveTTLRequest) ProtoMessage ¶
func (*SlaveTTLRequest) ProtoMessage()
func (*SlaveTTLRequest) ProtoReflect ¶
func (x *SlaveTTLRequest) ProtoReflect() protoreflect.Message
func (*SlaveTTLRequest) Reset ¶
func (x *SlaveTTLRequest) Reset()
func (*SlaveTTLRequest) String ¶
func (x *SlaveTTLRequest) String() string
type SlaveTTLResponse ¶
type SlaveTTLResponse struct { Ttl int64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*SlaveTTLResponse) Descriptor
deprecated
func (*SlaveTTLResponse) Descriptor() ([]byte, []int)
Deprecated: Use SlaveTTLResponse.ProtoReflect.Descriptor instead.
func (*SlaveTTLResponse) GetTtl ¶
func (x *SlaveTTLResponse) GetTtl() int64
func (*SlaveTTLResponse) ProtoMessage ¶
func (*SlaveTTLResponse) ProtoMessage()
func (*SlaveTTLResponse) ProtoReflect ¶
func (x *SlaveTTLResponse) ProtoReflect() protoreflect.Message
func (*SlaveTTLResponse) Reset ¶
func (x *SlaveTTLResponse) Reset()
func (*SlaveTTLResponse) String ¶
func (x *SlaveTTLResponse) String() string
type UnimplementedMasterGrpcServiceServer ¶
type UnimplementedMasterGrpcServiceServer struct { }
UnimplementedMasterGrpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMasterGrpcServiceServer) CurrentLeader ¶
func (UnimplementedMasterGrpcServiceServer) CurrentLeader(context.Context, *MasterCurrentLeaderRequest) (*MasterCurrentLeaderResponse, error)
func (UnimplementedMasterGrpcServiceServer) Del ¶
func (UnimplementedMasterGrpcServiceServer) Del(context.Context, *MasterDelRequest) (*MasterDelResponse, error)
func (UnimplementedMasterGrpcServiceServer) Expire ¶
func (UnimplementedMasterGrpcServiceServer) Expire(context.Context, *MasterExpireRequest) (*MasterExpireResponse, error)
func (UnimplementedMasterGrpcServiceServer) Get ¶
func (UnimplementedMasterGrpcServiceServer) Get(context.Context, *MasterGetRequest) (*MasterGetResponse, error)
func (UnimplementedMasterGrpcServiceServer) Keys ¶
func (UnimplementedMasterGrpcServiceServer) Keys(context.Context, *MasterKeysRequest) (*MasterKeysResponse, error)
func (UnimplementedMasterGrpcServiceServer) Ping ¶
func (UnimplementedMasterGrpcServiceServer) Ping(context.Context, *MasterPingRequest) (*MasterPingResponse, error)
func (UnimplementedMasterGrpcServiceServer) ReceiveHeartbeat ¶ added in v1.0.4
func (UnimplementedMasterGrpcServiceServer) ReceiveHeartbeat(context.Context, *MasterHeartbeatRequest) (*MasterHeartbeatResponse, error)
func (UnimplementedMasterGrpcServiceServer) RegisterSlave ¶
func (UnimplementedMasterGrpcServiceServer) RegisterSlave(context.Context, *MasterRegisterSlaveRequest) (*MasterRegisterSlaveResponse, error)
func (UnimplementedMasterGrpcServiceServer) Scan ¶
func (UnimplementedMasterGrpcServiceServer) Scan(context.Context, *MasterScanRequest) (*MasterScanResponse, error)
func (UnimplementedMasterGrpcServiceServer) Set ¶
func (UnimplementedMasterGrpcServiceServer) Set(context.Context, *MasterSetRequest) (*MasterSetResponse, error)
func (UnimplementedMasterGrpcServiceServer) Shutdown ¶
func (UnimplementedMasterGrpcServiceServer) Shutdown(context.Context, *MasterShutdownRequest) (*MasterShutdownResponse, error)
func (UnimplementedMasterGrpcServiceServer) TTL ¶
func (UnimplementedMasterGrpcServiceServer) TTL(context.Context, *MasterTTLRequest) (*MasterTTLResponse, error)
type UnimplementedSlaveGrpcServiceServer ¶
type UnimplementedSlaveGrpcServiceServer struct { }
UnimplementedSlaveGrpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSlaveGrpcServiceServer) Del ¶
func (UnimplementedSlaveGrpcServiceServer) Del(context.Context, *SlaveDelRequest) (*SlaveDelResponse, error)
func (UnimplementedSlaveGrpcServiceServer) Exists ¶
func (UnimplementedSlaveGrpcServiceServer) Exists(context.Context, *SlaveExistsRequest) (*SlaveExistsResponse, error)
func (UnimplementedSlaveGrpcServiceServer) Expire ¶
func (UnimplementedSlaveGrpcServiceServer) Expire(context.Context, *SlaveExpireRequest) (*SlaveExpireResponse, error)
func (UnimplementedSlaveGrpcServiceServer) Get ¶
func (UnimplementedSlaveGrpcServiceServer) Get(context.Context, *SlaveGetRequest) (*SlaveGetResponse, error)
func (UnimplementedSlaveGrpcServiceServer) Heartbeat ¶
func (UnimplementedSlaveGrpcServiceServer) Heartbeat(context.Context, *SlaveHeartbeatRequest) (*SlaveHeartbeatResponse, error)
func (UnimplementedSlaveGrpcServiceServer) Keys ¶
func (UnimplementedSlaveGrpcServiceServer) Keys(context.Context, *SlaveKeysRequest) (*SlaveKeysResponse, error)
func (UnimplementedSlaveGrpcServiceServer) Set ¶
func (UnimplementedSlaveGrpcServiceServer) Set(context.Context, *SlaveSetRequest) (*SlaveSetResponse, error)
func (UnimplementedSlaveGrpcServiceServer) TTL ¶
func (UnimplementedSlaveGrpcServiceServer) TTL(context.Context, *SlaveTTLRequest) (*SlaveTTLResponse, error)
type UnsafeMasterGrpcServiceServer ¶
type UnsafeMasterGrpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMasterGrpcServiceServer may be embedded to opt out of forward compatibility for this gstring. Use of this interface is not recommended, as added methods to MasterGrpcServiceServer will result in compilation errors.
type UnsafeSlaveGrpcServiceServer ¶
type UnsafeSlaveGrpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSlaveGrpcServiceServer may be embedded to opt out of forward compatibility for this dbs. Use of this interface is not recommended, as added methods to SlaveGrpcServiceServer will result in compilation errors.