Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRedisOperationServer(s grpc.ServiceRegistrar, srv RedisOperationServer)
- func RegistryGrpcApp()
- type BackupRequest
- func (*BackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BackupRequest) GetBackupFile() string
- func (x *BackupRequest) GetObjectStorage() *common.ObjectStorage
- func (x *BackupRequest) GetUsername() string
- func (*BackupRequest) ProtoMessage()
- func (x *BackupRequest) ProtoReflect() protoreflect.Message
- func (x *BackupRequest) Reset()
- func (x *BackupRequest) String() string
- type RedisOperationClient
- type RedisOperationServer
- type RestoreRequest
- func (*RestoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreRequest) GetBackupFile() string
- func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage
- func (*RestoreRequest) ProtoMessage()
- func (x *RestoreRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreRequest) Reset()
- func (x *RestoreRequest) String() string
- type SetVariableRequest
- func (*SetVariableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetVariableRequest) GetKey() string
- func (x *SetVariableRequest) GetUsername() string
- func (x *SetVariableRequest) GetValue() string
- func (*SetVariableRequest) ProtoMessage()
- func (x *SetVariableRequest) ProtoReflect() protoreflect.Message
- func (x *SetVariableRequest) Reset()
- func (x *SetVariableRequest) String() string
- type UnimplementedRedisOperationServer
- func (UnimplementedRedisOperationServer) Backup(context.Context, *BackupRequest) (*common.Empty, error)
- func (UnimplementedRedisOperationServer) Restore(context.Context, *RestoreRequest) (*common.Empty, error)
- func (UnimplementedRedisOperationServer) SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
- type UnsafeRedisOperationServer
Constants ¶
const ( RedisOperation_SetVariable_FullMethodName = "/redis.RedisOperation/SetVariable" RedisOperation_Backup_FullMethodName = "/redis.RedisOperation/Backup" RedisOperation_Restore_FullMethodName = "/redis.RedisOperation/Restore" )
Variables ¶
var File_pkg_agent_app_redis_pb_redis_proto protoreflect.FileDescriptor
var RedisOperation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "redis.RedisOperation", HandlerType: (*RedisOperationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetVariable", Handler: _RedisOperation_SetVariable_Handler, }, { MethodName: "Backup", Handler: _RedisOperation_Backup_Handler, }, { MethodName: "Restore", Handler: _RedisOperation_Restore_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/agent/app/redis/pb/redis.proto", }
RedisOperation_ServiceDesc is the grpc.ServiceDesc for RedisOperation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRedisOperationServer ¶
func RegisterRedisOperationServer(s grpc.ServiceRegistrar, srv RedisOperationServer)
func RegistryGrpcApp ¶
func RegistryGrpcApp()
Types ¶
type BackupRequest ¶
type BackupRequest struct {
BackupFile string `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
ObjectStorage *common.ObjectStorage `protobuf:"bytes,3,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
// contains filtered or unexported fields
}
func (*BackupRequest) Descriptor
deprecated
func (*BackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead.
func (*BackupRequest) GetBackupFile ¶
func (x *BackupRequest) GetBackupFile() string
func (*BackupRequest) GetObjectStorage ¶
func (x *BackupRequest) GetObjectStorage() *common.ObjectStorage
func (*BackupRequest) GetUsername ¶
func (x *BackupRequest) GetUsername() string
func (*BackupRequest) ProtoMessage ¶
func (*BackupRequest) ProtoMessage()
func (*BackupRequest) ProtoReflect ¶
func (x *BackupRequest) ProtoReflect() protoreflect.Message
func (*BackupRequest) Reset ¶
func (x *BackupRequest) Reset()
func (*BackupRequest) String ¶
func (x *BackupRequest) String() string
type RedisOperationClient ¶
type RedisOperationClient interface {
SetVariable(ctx context.Context, in *SetVariableRequest, opts ...grpc.CallOption) (*common.Empty, error)
Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*common.Empty, error)
Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*common.Empty, error)
}
RedisOperationClient is the client API for RedisOperation 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 NewRedisOperationClient ¶
func NewRedisOperationClient(cc grpc.ClientConnInterface) RedisOperationClient
type RedisOperationServer ¶
type RedisOperationServer interface {
SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
Backup(context.Context, *BackupRequest) (*common.Empty, error)
Restore(context.Context, *RestoreRequest) (*common.Empty, error)
// contains filtered or unexported methods
}
RedisOperationServer is the server API for RedisOperation service. All implementations must embed UnimplementedRedisOperationServer for forward compatibility.
type RestoreRequest ¶
type RestoreRequest struct {
BackupFile string `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
ObjectStorage *common.ObjectStorage `protobuf:"bytes,2,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
// contains filtered or unexported fields
}
func (*RestoreRequest) Descriptor
deprecated
func (*RestoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestoreRequest.ProtoReflect.Descriptor instead.
func (*RestoreRequest) GetBackupFile ¶
func (x *RestoreRequest) GetBackupFile() string
func (*RestoreRequest) GetObjectStorage ¶
func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage
func (*RestoreRequest) ProtoMessage ¶
func (*RestoreRequest) ProtoMessage()
func (*RestoreRequest) ProtoReflect ¶
func (x *RestoreRequest) ProtoReflect() protoreflect.Message
func (*RestoreRequest) Reset ¶
func (x *RestoreRequest) Reset()
func (*RestoreRequest) String ¶
func (x *RestoreRequest) String() string
type SetVariableRequest ¶
type SetVariableRequest 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"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}
func (*SetVariableRequest) Descriptor
deprecated
func (*SetVariableRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetVariableRequest.ProtoReflect.Descriptor instead.
func (*SetVariableRequest) GetKey ¶
func (x *SetVariableRequest) GetKey() string
func (*SetVariableRequest) GetUsername ¶
func (x *SetVariableRequest) GetUsername() string
func (*SetVariableRequest) GetValue ¶
func (x *SetVariableRequest) GetValue() string
func (*SetVariableRequest) ProtoMessage ¶
func (*SetVariableRequest) ProtoMessage()
func (*SetVariableRequest) ProtoReflect ¶
func (x *SetVariableRequest) ProtoReflect() protoreflect.Message
func (*SetVariableRequest) Reset ¶
func (x *SetVariableRequest) Reset()
func (*SetVariableRequest) String ¶
func (x *SetVariableRequest) String() string
type UnimplementedRedisOperationServer ¶
type UnimplementedRedisOperationServer struct{}
UnimplementedRedisOperationServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRedisOperationServer) Backup ¶
func (UnimplementedRedisOperationServer) Backup(context.Context, *BackupRequest) (*common.Empty, error)
func (UnimplementedRedisOperationServer) Restore ¶
func (UnimplementedRedisOperationServer) Restore(context.Context, *RestoreRequest) (*common.Empty, error)
func (UnimplementedRedisOperationServer) SetVariable ¶
func (UnimplementedRedisOperationServer) SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
type UnsafeRedisOperationServer ¶
type UnsafeRedisOperationServer interface {
// contains filtered or unexported methods
}
UnsafeRedisOperationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RedisOperationServer will result in compilation errors.