Documentation
¶
Index ¶
- Variables
- func NewTaskEndpoints() []*api.Endpoint
- func RegisterTaskHandler(s server.Server, hdlr TaskHandler, opts ...server.HandlerOption) error
- type DateNumInfoInput
- type DateNumInfoOut
- func (*DateNumInfoOut) Descriptor() ([]byte, []int)deprecated
- func (x *DateNumInfoOut) GetDate() string
- func (x *DateNumInfoOut) GetFinishNum() int64
- func (x *DateNumInfoOut) GetTaskNum() int64
- func (*DateNumInfoOut) ProtoMessage()
- func (x *DateNumInfoOut) ProtoReflect() protoreflect.Message
- func (x *DateNumInfoOut) Reset()
- func (x *DateNumInfoOut) String() string
- type TaskAddInput
- func (*TaskAddInput) Descriptor() ([]byte, []int)deprecated
- func (x *TaskAddInput) GetBackupCycle() string
- func (x *TaskAddInput) GetBucketName() string
- func (x *TaskAddInput) GetDBName() string
- func (x *TaskAddInput) GetDingAccessToken() string
- func (x *TaskAddInput) GetDingSecret() string
- func (x *TaskAddInput) GetDirectory() string
- func (x *TaskAddInput) GetEndpoint() string
- func (x *TaskAddInput) GetHostID() int64
- func (x *TaskAddInput) GetIsAllDBBak() int64
- func (x *TaskAddInput) GetIsDingSend() int64
- func (x *TaskAddInput) GetIsOssSave() int64
- func (x *TaskAddInput) GetKeepNumber() int64
- func (x *TaskAddInput) GetOssAccess() string
- func (x *TaskAddInput) GetOssSecret() string
- func (x *TaskAddInput) GetOssType() int64
- func (x *TaskAddInput) GetServiceName() string
- func (*TaskAddInput) ProtoMessage()
- func (x *TaskAddInput) ProtoReflect() protoreflect.Message
- func (x *TaskAddInput) Reset()
- func (x *TaskAddInput) String() string
- type TaskAutoCreateInPut
- func (*TaskAutoCreateInPut) Descriptor() ([]byte, []int)deprecated
- func (x *TaskAutoCreateInPut) GetBackupCycle() string
- func (x *TaskAutoCreateInPut) GetBucketName() string
- func (x *TaskAutoCreateInPut) GetDingAccessToken() string
- func (x *TaskAutoCreateInPut) GetDingSecret() string
- func (x *TaskAutoCreateInPut) GetDirectory() string
- func (x *TaskAutoCreateInPut) GetEndpoint() string
- func (x *TaskAutoCreateInPut) GetHostID() int64
- func (x *TaskAutoCreateInPut) GetIsAllDBBak() int64
- func (x *TaskAutoCreateInPut) GetIsDingSend() int64
- func (x *TaskAutoCreateInPut) GetIsOssSave() int64
- func (x *TaskAutoCreateInPut) GetKeepNumber() int64
- func (x *TaskAutoCreateInPut) GetOssAccess() string
- func (x *TaskAutoCreateInPut) GetOssSecret() string
- func (x *TaskAutoCreateInPut) GetOssType() int64
- func (*TaskAutoCreateInPut) ProtoMessage()
- func (x *TaskAutoCreateInPut) ProtoReflect() protoreflect.Message
- func (x *TaskAutoCreateInPut) Reset()
- func (x *TaskAutoCreateInPut) String() string
- type TaskDetailOutPut
- func (*TaskDetailOutPut) Descriptor() ([]byte, []int)deprecated
- func (x *TaskDetailOutPut) GetBackupCycle() string
- func (x *TaskDetailOutPut) GetBucketName() string
- func (x *TaskDetailOutPut) GetContent() string
- func (x *TaskDetailOutPut) GetCreateAt() string
- func (x *TaskDetailOutPut) GetDBName() string
- func (x *TaskDetailOutPut) GetDingAccessToken() string
- func (x *TaskDetailOutPut) GetDingSecret() string
- func (x *TaskDetailOutPut) GetDirectory() string
- func (x *TaskDetailOutPut) GetEndpoint() string
- func (x *TaskDetailOutPut) GetHost() string
- func (x *TaskDetailOutPut) GetHostID() int64
- func (x *TaskDetailOutPut) GetHostStatus() int64
- func (x *TaskDetailOutPut) GetIsDingSend() int64
- func (x *TaskDetailOutPut) GetIsOssSave() int64
- func (x *TaskDetailOutPut) GetKeepNumber() int64
- func (x *TaskDetailOutPut) GetOssAccess() string
- func (x *TaskDetailOutPut) GetOssSecret() string
- func (x *TaskDetailOutPut) GetOssType() int64
- func (x *TaskDetailOutPut) GetServiceName() string
- func (x *TaskDetailOutPut) GetStatus() int64
- func (x *TaskDetailOutPut) GetTaskID() int64
- func (*TaskDetailOutPut) ProtoMessage()
- func (x *TaskDetailOutPut) ProtoReflect() protoreflect.Message
- func (x *TaskDetailOutPut) Reset()
- func (x *TaskDetailOutPut) String() string
- type TaskHandler
- type TaskIDInput
- type TaskListInput
- func (*TaskListInput) Descriptor() ([]byte, []int)deprecated
- func (x *TaskListInput) GetHostID() int64
- func (x *TaskListInput) GetInfo() string
- func (x *TaskListInput) GetPageNo() int64
- func (x *TaskListInput) GetPageSize() int64
- func (*TaskListInput) ProtoMessage()
- func (x *TaskListInput) ProtoReflect() protoreflect.Message
- func (x *TaskListInput) Reset()
- func (x *TaskListInput) String() string
- type TaskListItem
- func (*TaskListItem) Descriptor() ([]byte, []int)deprecated
- func (x *TaskListItem) GetBackupCycle() string
- func (x *TaskListItem) GetCreateAt() string
- func (x *TaskListItem) GetDBName() string
- func (x *TaskListItem) GetDeletedAt() string
- func (x *TaskListItem) GetFinishNum() int64
- func (x *TaskListItem) GetHost() string
- func (x *TaskListItem) GetHostID() int64
- func (x *TaskListItem) GetID() int64
- func (x *TaskListItem) GetIsDeleted() int64
- func (x *TaskListItem) GetKeepNumber() int64
- func (x *TaskListItem) GetServiceName() string
- func (x *TaskListItem) GetStatus() int64
- func (x *TaskListItem) GetUpdateAt() string
- func (*TaskListItem) ProtoMessage()
- func (x *TaskListItem) ProtoReflect() protoreflect.Message
- func (x *TaskListItem) Reset()
- func (x *TaskListItem) String() string
- type TaskListOutPut
- func (*TaskListOutPut) Descriptor() ([]byte, []int)deprecated
- func (x *TaskListOutPut) GetPageNo() int64
- func (x *TaskListOutPut) GetPageSize() int64
- func (x *TaskListOutPut) GetTaskListItem() []*TaskListItem
- func (x *TaskListOutPut) GetTotal() int64
- func (*TaskListOutPut) ProtoMessage()
- func (x *TaskListOutPut) ProtoReflect() protoreflect.Message
- func (x *TaskListOutPut) Reset()
- func (x *TaskListOutPut) String() string
- type TaskOneMessage
- func (*TaskOneMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TaskOneMessage) GetMessage() string
- func (x *TaskOneMessage) GetOK() bool
- func (*TaskOneMessage) ProtoMessage()
- func (x *TaskOneMessage) ProtoReflect() protoreflect.Message
- func (x *TaskOneMessage) Reset()
- func (x *TaskOneMessage) String() string
- type TaskService
- type TaskUpdateInput
- func (*TaskUpdateInput) Descriptor() ([]byte, []int)deprecated
- func (x *TaskUpdateInput) GetBackupCycle() string
- func (x *TaskUpdateInput) GetBucketName() string
- func (x *TaskUpdateInput) GetDBName() string
- func (x *TaskUpdateInput) GetDingAccessToken() string
- func (x *TaskUpdateInput) GetDingSecret() string
- func (x *TaskUpdateInput) GetDirectory() string
- func (x *TaskUpdateInput) GetEndpoint() string
- func (x *TaskUpdateInput) GetHostID() int64
- func (x *TaskUpdateInput) GetID() int64
- func (x *TaskUpdateInput) GetIsAllDBBak() int64
- func (x *TaskUpdateInput) GetIsDingSend() int64
- func (x *TaskUpdateInput) GetIsOssSave() int64
- func (x *TaskUpdateInput) GetKeepNumber() int64
- func (x *TaskUpdateInput) GetOssAccess() string
- func (x *TaskUpdateInput) GetOssSecret() string
- func (x *TaskUpdateInput) GetOssType() int64
- func (x *TaskUpdateInput) GetServiceName() string
- func (*TaskUpdateInput) ProtoMessage()
- func (x *TaskUpdateInput) ProtoReflect() protoreflect.Message
- func (x *TaskUpdateInput) Reset()
- func (x *TaskUpdateInput) String() string
Constants ¶
This section is empty.
Variables ¶
var File_task_proto protoreflect.FileDescriptor
Functions ¶
func NewTaskEndpoints ¶
func RegisterTaskHandler ¶
func RegisterTaskHandler(s server.Server, hdlr TaskHandler, opts ...server.HandlerOption) error
Types ¶
type DateNumInfoInput ¶
type DateNumInfoInput struct { // @inject_tag: json:"days" Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"days"` // contains filtered or unexported fields }
func (*DateNumInfoInput) Descriptor
deprecated
func (*DateNumInfoInput) Descriptor() ([]byte, []int)
Deprecated: Use DateNumInfoInput.ProtoReflect.Descriptor instead.
func (*DateNumInfoInput) GetDate ¶
func (x *DateNumInfoInput) GetDate() string
func (*DateNumInfoInput) ProtoMessage ¶
func (*DateNumInfoInput) ProtoMessage()
func (*DateNumInfoInput) ProtoReflect ¶
func (x *DateNumInfoInput) ProtoReflect() protoreflect.Message
func (*DateNumInfoInput) Reset ¶
func (x *DateNumInfoInput) Reset()
func (*DateNumInfoInput) String ¶
func (x *DateNumInfoInput) String() string
type DateNumInfoOut ¶
type DateNumInfoOut struct { // @inject_tag: json:"date" Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"date"` // @inject_tag: json:"task_num" TaskNum int64 `protobuf:"varint,2,opt,name=TaskNum,proto3" json:"task_num"` // @inject_tag: json:"finish_num" FinishNum int64 `protobuf:"varint,3,opt,name=FinishNum,proto3" json:"finish_num"` // contains filtered or unexported fields }
func (*DateNumInfoOut) Descriptor
deprecated
func (*DateNumInfoOut) Descriptor() ([]byte, []int)
Deprecated: Use DateNumInfoOut.ProtoReflect.Descriptor instead.
func (*DateNumInfoOut) GetDate ¶
func (x *DateNumInfoOut) GetDate() string
func (*DateNumInfoOut) GetFinishNum ¶
func (x *DateNumInfoOut) GetFinishNum() int64
func (*DateNumInfoOut) GetTaskNum ¶
func (x *DateNumInfoOut) GetTaskNum() int64
func (*DateNumInfoOut) ProtoMessage ¶
func (*DateNumInfoOut) ProtoMessage()
func (*DateNumInfoOut) ProtoReflect ¶
func (x *DateNumInfoOut) ProtoReflect() protoreflect.Message
func (*DateNumInfoOut) Reset ¶
func (x *DateNumInfoOut) Reset()
func (*DateNumInfoOut) String ¶
func (x *DateNumInfoOut) String() string
type TaskAddInput ¶
type TaskAddInput struct { HostID int64 `protobuf:"varint,1,opt,name=HostID,proto3" json:"HostID,omitempty"` DBName string `protobuf:"bytes,2,opt,name=DBName,proto3" json:"DBName,omitempty"` BackupCycle string `protobuf:"bytes,3,opt,name=BackupCycle,proto3" json:"BackupCycle,omitempty"` KeepNumber int64 `protobuf:"varint,4,opt,name=KeepNumber,proto3" json:"KeepNumber,omitempty"` IsAllDBBak int64 `protobuf:"varint,5,opt,name=IsAllDBBak,proto3" json:"IsAllDBBak,omitempty"` IsDingSend int64 `protobuf:"varint,6,opt,name=IsDingSend,proto3" json:"IsDingSend,omitempty"` DingAccessToken string `protobuf:"bytes,7,opt,name=DingAccessToken,proto3" json:"DingAccessToken,omitempty"` DingSecret string `protobuf:"bytes,8,opt,name=DingSecret,proto3" json:"DingSecret,omitempty"` OssType int64 `protobuf:"varint,9,opt,name=OssType,proto3" json:"OssType,omitempty"` IsOssSave int64 `protobuf:"varint,10,opt,name=IsOssSave,proto3" json:"IsOssSave,omitempty"` Endpoint string `protobuf:"bytes,11,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"` OssAccess string `protobuf:"bytes,12,opt,name=OssAccess,proto3" json:"OssAccess,omitempty"` OssSecret string `protobuf:"bytes,13,opt,name=OssSecret,proto3" json:"OssSecret,omitempty"` BucketName string `protobuf:"bytes,14,opt,name=BucketName,proto3" json:"BucketName,omitempty"` Directory string `protobuf:"bytes,15,opt,name=Directory,proto3" json:"Directory,omitempty"` ServiceName string `protobuf:"bytes,16,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"` // contains filtered or unexported fields }
func (*TaskAddInput) Descriptor
deprecated
func (*TaskAddInput) Descriptor() ([]byte, []int)
Deprecated: Use TaskAddInput.ProtoReflect.Descriptor instead.
func (*TaskAddInput) GetBackupCycle ¶
func (x *TaskAddInput) GetBackupCycle() string
func (*TaskAddInput) GetBucketName ¶
func (x *TaskAddInput) GetBucketName() string
func (*TaskAddInput) GetDBName ¶
func (x *TaskAddInput) GetDBName() string
func (*TaskAddInput) GetDingAccessToken ¶
func (x *TaskAddInput) GetDingAccessToken() string
func (*TaskAddInput) GetDingSecret ¶
func (x *TaskAddInput) GetDingSecret() string
func (*TaskAddInput) GetDirectory ¶
func (x *TaskAddInput) GetDirectory() string
func (*TaskAddInput) GetEndpoint ¶
func (x *TaskAddInput) GetEndpoint() string
func (*TaskAddInput) GetHostID ¶
func (x *TaskAddInput) GetHostID() int64
func (*TaskAddInput) GetIsAllDBBak ¶
func (x *TaskAddInput) GetIsAllDBBak() int64
func (*TaskAddInput) GetIsDingSend ¶
func (x *TaskAddInput) GetIsDingSend() int64
func (*TaskAddInput) GetIsOssSave ¶
func (x *TaskAddInput) GetIsOssSave() int64
func (*TaskAddInput) GetKeepNumber ¶
func (x *TaskAddInput) GetKeepNumber() int64
func (*TaskAddInput) GetOssAccess ¶
func (x *TaskAddInput) GetOssAccess() string
func (*TaskAddInput) GetOssSecret ¶
func (x *TaskAddInput) GetOssSecret() string
func (*TaskAddInput) GetOssType ¶
func (x *TaskAddInput) GetOssType() int64
func (*TaskAddInput) GetServiceName ¶
func (x *TaskAddInput) GetServiceName() string
func (*TaskAddInput) ProtoMessage ¶
func (*TaskAddInput) ProtoMessage()
func (*TaskAddInput) ProtoReflect ¶
func (x *TaskAddInput) ProtoReflect() protoreflect.Message
func (*TaskAddInput) Reset ¶
func (x *TaskAddInput) Reset()
func (*TaskAddInput) String ¶
func (x *TaskAddInput) String() string
type TaskAutoCreateInPut ¶
type TaskAutoCreateInPut struct { HostID int64 `protobuf:"varint,1,opt,name=HostID,proto3" json:"HostID,omitempty"` BackupCycle string `protobuf:"bytes,3,opt,name=BackupCycle,proto3" json:"BackupCycle,omitempty"` KeepNumber int64 `protobuf:"varint,4,opt,name=KeepNumber,proto3" json:"KeepNumber,omitempty"` IsAllDBBak int64 `protobuf:"varint,5,opt,name=IsAllDBBak,proto3" json:"IsAllDBBak,omitempty"` IsDingSend int64 `protobuf:"varint,6,opt,name=IsDingSend,proto3" json:"IsDingSend,omitempty"` DingAccessToken string `protobuf:"bytes,7,opt,name=DingAccessToken,proto3" json:"DingAccessToken,omitempty"` DingSecret string `protobuf:"bytes,8,opt,name=DingSecret,proto3" json:"DingSecret,omitempty"` OssType int64 `protobuf:"varint,9,opt,name=OssType,proto3" json:"OssType,omitempty"` IsOssSave int64 `protobuf:"varint,10,opt,name=IsOssSave,proto3" json:"IsOssSave,omitempty"` Endpoint string `protobuf:"bytes,11,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"` OssAccess string `protobuf:"bytes,12,opt,name=OssAccess,proto3" json:"OssAccess,omitempty"` OssSecret string `protobuf:"bytes,13,opt,name=OssSecret,proto3" json:"OssSecret,omitempty"` BucketName string `protobuf:"bytes,14,opt,name=BucketName,proto3" json:"BucketName,omitempty"` Directory string `protobuf:"bytes,15,opt,name=Directory,proto3" json:"Directory,omitempty"` // contains filtered or unexported fields }
func (*TaskAutoCreateInPut) Descriptor
deprecated
func (*TaskAutoCreateInPut) Descriptor() ([]byte, []int)
Deprecated: Use TaskAutoCreateInPut.ProtoReflect.Descriptor instead.
func (*TaskAutoCreateInPut) GetBackupCycle ¶
func (x *TaskAutoCreateInPut) GetBackupCycle() string
func (*TaskAutoCreateInPut) GetBucketName ¶
func (x *TaskAutoCreateInPut) GetBucketName() string
func (*TaskAutoCreateInPut) GetDingAccessToken ¶
func (x *TaskAutoCreateInPut) GetDingAccessToken() string
func (*TaskAutoCreateInPut) GetDingSecret ¶
func (x *TaskAutoCreateInPut) GetDingSecret() string
func (*TaskAutoCreateInPut) GetDirectory ¶
func (x *TaskAutoCreateInPut) GetDirectory() string
func (*TaskAutoCreateInPut) GetEndpoint ¶
func (x *TaskAutoCreateInPut) GetEndpoint() string
func (*TaskAutoCreateInPut) GetHostID ¶
func (x *TaskAutoCreateInPut) GetHostID() int64
func (*TaskAutoCreateInPut) GetIsAllDBBak ¶
func (x *TaskAutoCreateInPut) GetIsAllDBBak() int64
func (*TaskAutoCreateInPut) GetIsDingSend ¶
func (x *TaskAutoCreateInPut) GetIsDingSend() int64
func (*TaskAutoCreateInPut) GetIsOssSave ¶
func (x *TaskAutoCreateInPut) GetIsOssSave() int64
func (*TaskAutoCreateInPut) GetKeepNumber ¶
func (x *TaskAutoCreateInPut) GetKeepNumber() int64
func (*TaskAutoCreateInPut) GetOssAccess ¶
func (x *TaskAutoCreateInPut) GetOssAccess() string
func (*TaskAutoCreateInPut) GetOssSecret ¶
func (x *TaskAutoCreateInPut) GetOssSecret() string
func (*TaskAutoCreateInPut) GetOssType ¶
func (x *TaskAutoCreateInPut) GetOssType() int64
func (*TaskAutoCreateInPut) ProtoMessage ¶
func (*TaskAutoCreateInPut) ProtoMessage()
func (*TaskAutoCreateInPut) ProtoReflect ¶
func (x *TaskAutoCreateInPut) ProtoReflect() protoreflect.Message
func (*TaskAutoCreateInPut) Reset ¶
func (x *TaskAutoCreateInPut) Reset()
func (*TaskAutoCreateInPut) String ¶
func (x *TaskAutoCreateInPut) String() string
type TaskDetailOutPut ¶
type TaskDetailOutPut struct { // @inject_tag: json:"host" Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"host"` // @inject_tag: json:"content" Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"content"` // @inject_tag: json:"host_status" HostStatus int64 `protobuf:"varint,3,opt,name=HostStatus,proto3" json:"host_status"` // @inject_tag: json:"id" TaskID int64 `protobuf:"varint,5,opt,name=TaskID,proto3" json:"id"` // @inject_tag: json:"host_id" HostID int64 `protobuf:"varint,6,opt,name=HostID,proto3" json:"host_id"` // @inject_tag: json:"db_name" DBName string `protobuf:"bytes,7,opt,name=DBName,proto3" json:"db_name"` // @inject_tag: json:"service_name" ServiceName string `protobuf:"bytes,8,opt,name=ServiceName,proto3" json:"service_name"` // @inject_tag: json:"backup_cycle" BackupCycle string `protobuf:"bytes,9,opt,name=BackupCycle,proto3" json:"backup_cycle"` // @inject_tag: json:"keep_number" KeepNumber int64 `protobuf:"varint,10,opt,name=KeepNumber,proto3" json:"keep_number"` // @inject_tag: json:"status" Status int64 `protobuf:"varint,11,opt,name=Status,proto3" json:"status"` // @inject_tag: json:"create_at" CreateAt string `protobuf:"bytes,12,opt,name=CreateAt,proto3" json:"create_at"` // @inject_tag: json:"is_ding_send" IsDingSend int64 `protobuf:"varint,13,opt,name=IsDingSend,proto3" json:"is_ding_send"` // @inject_tag: json:"ding_access_token" DingAccessToken string `protobuf:"bytes,14,opt,name=DingAccessToken,proto3" json:"ding_access_token"` // @inject_tag: json:"ding_secret" DingSecret string `protobuf:"bytes,15,opt,name=DingSecret,proto3" json:"ding_secret"` // @inject_tag: json:"is_oss_save" IsOssSave int64 `protobuf:"varint,16,opt,name=IsOssSave,proto3" json:"is_oss_save"` // @inject_tag: json:"oss_type" OssType int64 `protobuf:"varint,17,opt,name=OssType,proto3" json:"oss_type"` // @inject_tag: json:"endpoint" Endpoint string `protobuf:"bytes,18,opt,name=Endpoint,proto3" json:"endpoint"` // @inject_tag: json:"oss_access" OssAccess string `protobuf:"bytes,19,opt,name=OssAccess,proto3" json:"oss_access"` // @inject_tag: json:"oss_secret" OssSecret string `protobuf:"bytes,20,opt,name=OssSecret,proto3" json:"oss_secret"` // @inject_tag: json:"bucket_name" BucketName string `protobuf:"bytes,21,opt,name=BucketName,proto3" json:"bucket_name"` // @inject_tag: json:"directory" Directory string `protobuf:"bytes,22,opt,name=Directory,proto3" json:"directory"` // contains filtered or unexported fields }
func (*TaskDetailOutPut) Descriptor
deprecated
func (*TaskDetailOutPut) Descriptor() ([]byte, []int)
Deprecated: Use TaskDetailOutPut.ProtoReflect.Descriptor instead.
func (*TaskDetailOutPut) GetBackupCycle ¶
func (x *TaskDetailOutPut) GetBackupCycle() string
func (*TaskDetailOutPut) GetBucketName ¶
func (x *TaskDetailOutPut) GetBucketName() string
func (*TaskDetailOutPut) GetContent ¶
func (x *TaskDetailOutPut) GetContent() string
func (*TaskDetailOutPut) GetCreateAt ¶
func (x *TaskDetailOutPut) GetCreateAt() string
func (*TaskDetailOutPut) GetDBName ¶
func (x *TaskDetailOutPut) GetDBName() string
func (*TaskDetailOutPut) GetDingAccessToken ¶
func (x *TaskDetailOutPut) GetDingAccessToken() string
func (*TaskDetailOutPut) GetDingSecret ¶
func (x *TaskDetailOutPut) GetDingSecret() string
func (*TaskDetailOutPut) GetDirectory ¶
func (x *TaskDetailOutPut) GetDirectory() string
func (*TaskDetailOutPut) GetEndpoint ¶
func (x *TaskDetailOutPut) GetEndpoint() string
func (*TaskDetailOutPut) GetHost ¶
func (x *TaskDetailOutPut) GetHost() string
func (*TaskDetailOutPut) GetHostID ¶
func (x *TaskDetailOutPut) GetHostID() int64
func (*TaskDetailOutPut) GetHostStatus ¶
func (x *TaskDetailOutPut) GetHostStatus() int64
func (*TaskDetailOutPut) GetIsDingSend ¶
func (x *TaskDetailOutPut) GetIsDingSend() int64
func (*TaskDetailOutPut) GetIsOssSave ¶
func (x *TaskDetailOutPut) GetIsOssSave() int64
func (*TaskDetailOutPut) GetKeepNumber ¶
func (x *TaskDetailOutPut) GetKeepNumber() int64
func (*TaskDetailOutPut) GetOssAccess ¶
func (x *TaskDetailOutPut) GetOssAccess() string
func (*TaskDetailOutPut) GetOssSecret ¶
func (x *TaskDetailOutPut) GetOssSecret() string
func (*TaskDetailOutPut) GetOssType ¶
func (x *TaskDetailOutPut) GetOssType() int64
func (*TaskDetailOutPut) GetServiceName ¶
func (x *TaskDetailOutPut) GetServiceName() string
func (*TaskDetailOutPut) GetStatus ¶
func (x *TaskDetailOutPut) GetStatus() int64
func (*TaskDetailOutPut) GetTaskID ¶
func (x *TaskDetailOutPut) GetTaskID() int64
func (*TaskDetailOutPut) ProtoMessage ¶
func (*TaskDetailOutPut) ProtoMessage()
func (*TaskDetailOutPut) ProtoReflect ¶
func (x *TaskDetailOutPut) ProtoReflect() protoreflect.Message
func (*TaskDetailOutPut) Reset ¶
func (x *TaskDetailOutPut) Reset()
func (*TaskDetailOutPut) String ¶
func (x *TaskDetailOutPut) String() string
type TaskHandler ¶
type TaskHandler interface { TaskAdd(context.Context, *TaskAddInput, *TaskOneMessage) error TaskAutoCreate(context.Context, *TaskAutoCreateInPut, *TaskOneMessage) error TaskDelete(context.Context, *TaskIDInput, *TaskOneMessage) error TaskUpdate(context.Context, *TaskUpdateInput, *TaskOneMessage) error TaskList(context.Context, *TaskListInput, *TaskListOutPut) error GetTaskUnscopedList(context.Context, *TaskListInput, *TaskListOutPut) error TaskDetail(context.Context, *TaskIDInput, *TaskDetailOutPut) error RestoreTask(context.Context, *TaskIDInput, *TaskOneMessage) error TaskDestroy(context.Context, *TaskIDInput, *TaskOneMessage) error GetDateNumInfo(context.Context, *DateNumInfoInput, *DateNumInfoOut) error }
type TaskIDInput ¶
type TaskIDInput struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*TaskIDInput) Descriptor
deprecated
func (*TaskIDInput) Descriptor() ([]byte, []int)
Deprecated: Use TaskIDInput.ProtoReflect.Descriptor instead.
func (*TaskIDInput) GetID ¶
func (x *TaskIDInput) GetID() int64
func (*TaskIDInput) ProtoMessage ¶
func (*TaskIDInput) ProtoMessage()
func (*TaskIDInput) ProtoReflect ¶
func (x *TaskIDInput) ProtoReflect() protoreflect.Message
func (*TaskIDInput) Reset ¶
func (x *TaskIDInput) Reset()
func (*TaskIDInput) String ¶
func (x *TaskIDInput) String() string
type TaskListInput ¶
type TaskListInput struct { HostID int64 `protobuf:"varint,4,opt,name=HostID,proto3" json:"HostID,omitempty"` Info string `protobuf:"bytes,1,opt,name=Info,proto3" json:"Info,omitempty"` PageNo int64 `protobuf:"varint,2,opt,name=PageNo,proto3" json:"PageNo,omitempty"` PageSize int64 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize,omitempty"` // contains filtered or unexported fields }
func (*TaskListInput) Descriptor
deprecated
func (*TaskListInput) Descriptor() ([]byte, []int)
Deprecated: Use TaskListInput.ProtoReflect.Descriptor instead.
func (*TaskListInput) GetHostID ¶
func (x *TaskListInput) GetHostID() int64
func (*TaskListInput) GetInfo ¶
func (x *TaskListInput) GetInfo() string
func (*TaskListInput) GetPageNo ¶
func (x *TaskListInput) GetPageNo() int64
func (*TaskListInput) GetPageSize ¶
func (x *TaskListInput) GetPageSize() int64
func (*TaskListInput) ProtoMessage ¶
func (*TaskListInput) ProtoMessage()
func (*TaskListInput) ProtoReflect ¶
func (x *TaskListInput) ProtoReflect() protoreflect.Message
func (*TaskListInput) Reset ¶
func (x *TaskListInput) Reset()
func (*TaskListInput) String ¶
func (x *TaskListInput) String() string
type TaskListItem ¶
type TaskListItem struct { // @inject_tag: json:"id" ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"` // @inject_tag: json:"host_id" HostID int64 `protobuf:"varint,2,opt,name=HostID,proto3" json:"host_id"` // @inject_tag: json:"host" Host string `protobuf:"bytes,3,opt,name=Host,proto3" json:"host"` // @inject_tag: json:"db_name" DBName string `protobuf:"bytes,4,opt,name=DBName,proto3" json:"db_name"` // @inject_tag: json:"service_name" ServiceName string `protobuf:"bytes,5,opt,name=ServiceName,proto3" json:"service_name"` // @inject_tag: json:"backup_cycle" BackupCycle string `protobuf:"bytes,6,opt,name=BackupCycle,proto3" json:"backup_cycle"` // @inject_tag: json:"keep_number" KeepNumber int64 `protobuf:"varint,7,opt,name=KeepNumber,proto3" json:"keep_number"` // @inject_tag: json:"status" Status int64 `protobuf:"varint,8,opt,name=Status,proto3" json:"status"` // @inject_tag: json:"create_at" CreateAt string `protobuf:"bytes,9,opt,name=CreateAt,proto3" json:"create_at"` // @inject_tag: json:"update_at" UpdateAt string `protobuf:"bytes,10,opt,name=UpdateAt,proto3" json:"update_at"` // @inject_tag: json:"deleted_at" DeletedAt string `protobuf:"bytes,11,opt,name=DeletedAt,proto3" json:"deleted_at"` // @inject_tag: json:"is_deleted" IsDeleted int64 `protobuf:"varint,12,opt,name=IsDeleted,proto3" json:"is_deleted"` // @inject_tag: json:"finish_num" FinishNum int64 `protobuf:"varint,13,opt,name=FinishNum,proto3" json:"finish_num"` // contains filtered or unexported fields }
func (*TaskListItem) Descriptor
deprecated
func (*TaskListItem) Descriptor() ([]byte, []int)
Deprecated: Use TaskListItem.ProtoReflect.Descriptor instead.
func (*TaskListItem) GetBackupCycle ¶
func (x *TaskListItem) GetBackupCycle() string
func (*TaskListItem) GetCreateAt ¶
func (x *TaskListItem) GetCreateAt() string
func (*TaskListItem) GetDBName ¶
func (x *TaskListItem) GetDBName() string
func (*TaskListItem) GetDeletedAt ¶
func (x *TaskListItem) GetDeletedAt() string
func (*TaskListItem) GetFinishNum ¶
func (x *TaskListItem) GetFinishNum() int64
func (*TaskListItem) GetHost ¶
func (x *TaskListItem) GetHost() string
func (*TaskListItem) GetHostID ¶
func (x *TaskListItem) GetHostID() int64
func (*TaskListItem) GetID ¶
func (x *TaskListItem) GetID() int64
func (*TaskListItem) GetIsDeleted ¶
func (x *TaskListItem) GetIsDeleted() int64
func (*TaskListItem) GetKeepNumber ¶
func (x *TaskListItem) GetKeepNumber() int64
func (*TaskListItem) GetServiceName ¶
func (x *TaskListItem) GetServiceName() string
func (*TaskListItem) GetStatus ¶
func (x *TaskListItem) GetStatus() int64
func (*TaskListItem) GetUpdateAt ¶
func (x *TaskListItem) GetUpdateAt() string
func (*TaskListItem) ProtoMessage ¶
func (*TaskListItem) ProtoMessage()
func (*TaskListItem) ProtoReflect ¶
func (x *TaskListItem) ProtoReflect() protoreflect.Message
func (*TaskListItem) Reset ¶
func (x *TaskListItem) Reset()
func (*TaskListItem) String ¶
func (x *TaskListItem) String() string
type TaskListOutPut ¶
type TaskListOutPut struct { // @inject_tag: json:"total" Total int64 `protobuf:"varint,1,opt,name=Total,proto3" json:"total"` // @inject_tag: json:"list" TaskListItem []*TaskListItem `protobuf:"bytes,2,rep,name=taskListItem,proto3" json:"list"` // @inject_tag: json:"page_no" PageNo int64 `protobuf:"varint,3,opt,name=PageNo,proto3" json:"page_no"` // @inject_tag: json:"page_size" PageSize int64 `protobuf:"varint,4,opt,name=PageSize,proto3" json:"page_size"` // contains filtered or unexported fields }
func (*TaskListOutPut) Descriptor
deprecated
func (*TaskListOutPut) Descriptor() ([]byte, []int)
Deprecated: Use TaskListOutPut.ProtoReflect.Descriptor instead.
func (*TaskListOutPut) GetPageNo ¶
func (x *TaskListOutPut) GetPageNo() int64
func (*TaskListOutPut) GetPageSize ¶
func (x *TaskListOutPut) GetPageSize() int64
func (*TaskListOutPut) GetTaskListItem ¶
func (x *TaskListOutPut) GetTaskListItem() []*TaskListItem
func (*TaskListOutPut) GetTotal ¶
func (x *TaskListOutPut) GetTotal() int64
func (*TaskListOutPut) ProtoMessage ¶
func (*TaskListOutPut) ProtoMessage()
func (*TaskListOutPut) ProtoReflect ¶
func (x *TaskListOutPut) ProtoReflect() protoreflect.Message
func (*TaskListOutPut) Reset ¶
func (x *TaskListOutPut) Reset()
func (*TaskListOutPut) String ¶
func (x *TaskListOutPut) String() string
type TaskOneMessage ¶
type TaskOneMessage struct { // @inject_tag: json:"message" Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"message"` // @inject_tag: json:"content" OK bool `protobuf:"varint,2,opt,name=OK,proto3" json:"content"` // contains filtered or unexported fields }
func (*TaskOneMessage) Descriptor
deprecated
func (*TaskOneMessage) Descriptor() ([]byte, []int)
Deprecated: Use TaskOneMessage.ProtoReflect.Descriptor instead.
func (*TaskOneMessage) GetMessage ¶
func (x *TaskOneMessage) GetMessage() string
func (*TaskOneMessage) GetOK ¶
func (x *TaskOneMessage) GetOK() bool
func (*TaskOneMessage) ProtoMessage ¶
func (*TaskOneMessage) ProtoMessage()
func (*TaskOneMessage) ProtoReflect ¶
func (x *TaskOneMessage) ProtoReflect() protoreflect.Message
func (*TaskOneMessage) Reset ¶
func (x *TaskOneMessage) Reset()
func (*TaskOneMessage) String ¶
func (x *TaskOneMessage) String() string
type TaskService ¶
type TaskService interface { TaskAdd(ctx context.Context, in *TaskAddInput, opts ...client.CallOption) (*TaskOneMessage, error) TaskAutoCreate(ctx context.Context, in *TaskAutoCreateInPut, opts ...client.CallOption) (*TaskOneMessage, error) TaskDelete(ctx context.Context, in *TaskIDInput, opts ...client.CallOption) (*TaskOneMessage, error) TaskUpdate(ctx context.Context, in *TaskUpdateInput, opts ...client.CallOption) (*TaskOneMessage, error) TaskList(ctx context.Context, in *TaskListInput, opts ...client.CallOption) (*TaskListOutPut, error) GetTaskUnscopedList(ctx context.Context, in *TaskListInput, opts ...client.CallOption) (*TaskListOutPut, error) TaskDetail(ctx context.Context, in *TaskIDInput, opts ...client.CallOption) (*TaskDetailOutPut, error) RestoreTask(ctx context.Context, in *TaskIDInput, opts ...client.CallOption) (*TaskOneMessage, error) TaskDestroy(ctx context.Context, in *TaskIDInput, opts ...client.CallOption) (*TaskOneMessage, error) GetDateNumInfo(ctx context.Context, in *DateNumInfoInput, opts ...client.CallOption) (*DateNumInfoOut, error) }
func NewTaskService ¶
func NewTaskService(name string, c client.Client) TaskService
type TaskUpdateInput ¶
type TaskUpdateInput struct { ID int64 `protobuf:"varint,17,opt,name=ID,proto3" json:"ID,omitempty"` HostID int64 `protobuf:"varint,1,opt,name=HostID,proto3" json:"HostID,omitempty"` DBName string `protobuf:"bytes,2,opt,name=DBName,proto3" json:"DBName,omitempty"` ServiceName string `protobuf:"bytes,16,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"` BackupCycle string `protobuf:"bytes,3,opt,name=BackupCycle,proto3" json:"BackupCycle,omitempty"` KeepNumber int64 `protobuf:"varint,4,opt,name=KeepNumber,proto3" json:"KeepNumber,omitempty"` IsAllDBBak int64 `protobuf:"varint,5,opt,name=IsAllDBBak,proto3" json:"IsAllDBBak,omitempty"` IsDingSend int64 `protobuf:"varint,6,opt,name=IsDingSend,proto3" json:"IsDingSend,omitempty"` DingAccessToken string `protobuf:"bytes,7,opt,name=DingAccessToken,proto3" json:"DingAccessToken,omitempty"` DingSecret string `protobuf:"bytes,8,opt,name=DingSecret,proto3" json:"DingSecret,omitempty"` OssType int64 `protobuf:"varint,9,opt,name=OssType,proto3" json:"OssType,omitempty"` IsOssSave int64 `protobuf:"varint,10,opt,name=IsOssSave,proto3" json:"IsOssSave,omitempty"` Endpoint string `protobuf:"bytes,11,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"` OssAccess string `protobuf:"bytes,12,opt,name=OssAccess,proto3" json:"OssAccess,omitempty"` OssSecret string `protobuf:"bytes,13,opt,name=OssSecret,proto3" json:"OssSecret,omitempty"` BucketName string `protobuf:"bytes,14,opt,name=BucketName,proto3" json:"BucketName,omitempty"` Directory string `protobuf:"bytes,15,opt,name=Directory,proto3" json:"Directory,omitempty"` // contains filtered or unexported fields }
func (*TaskUpdateInput) Descriptor
deprecated
func (*TaskUpdateInput) Descriptor() ([]byte, []int)
Deprecated: Use TaskUpdateInput.ProtoReflect.Descriptor instead.
func (*TaskUpdateInput) GetBackupCycle ¶
func (x *TaskUpdateInput) GetBackupCycle() string
func (*TaskUpdateInput) GetBucketName ¶
func (x *TaskUpdateInput) GetBucketName() string
func (*TaskUpdateInput) GetDBName ¶
func (x *TaskUpdateInput) GetDBName() string
func (*TaskUpdateInput) GetDingAccessToken ¶
func (x *TaskUpdateInput) GetDingAccessToken() string
func (*TaskUpdateInput) GetDingSecret ¶
func (x *TaskUpdateInput) GetDingSecret() string
func (*TaskUpdateInput) GetDirectory ¶
func (x *TaskUpdateInput) GetDirectory() string
func (*TaskUpdateInput) GetEndpoint ¶
func (x *TaskUpdateInput) GetEndpoint() string
func (*TaskUpdateInput) GetHostID ¶
func (x *TaskUpdateInput) GetHostID() int64
func (*TaskUpdateInput) GetID ¶
func (x *TaskUpdateInput) GetID() int64
func (*TaskUpdateInput) GetIsAllDBBak ¶
func (x *TaskUpdateInput) GetIsAllDBBak() int64
func (*TaskUpdateInput) GetIsDingSend ¶
func (x *TaskUpdateInput) GetIsDingSend() int64
func (*TaskUpdateInput) GetIsOssSave ¶
func (x *TaskUpdateInput) GetIsOssSave() int64
func (*TaskUpdateInput) GetKeepNumber ¶
func (x *TaskUpdateInput) GetKeepNumber() int64
func (*TaskUpdateInput) GetOssAccess ¶
func (x *TaskUpdateInput) GetOssAccess() string
func (*TaskUpdateInput) GetOssSecret ¶
func (x *TaskUpdateInput) GetOssSecret() string
func (*TaskUpdateInput) GetOssType ¶
func (x *TaskUpdateInput) GetOssType() int64
func (*TaskUpdateInput) GetServiceName ¶
func (x *TaskUpdateInput) GetServiceName() string
func (*TaskUpdateInput) ProtoMessage ¶
func (*TaskUpdateInput) ProtoMessage()
func (*TaskUpdateInput) ProtoReflect ¶
func (x *TaskUpdateInput) ProtoReflect() protoreflect.Message
func (*TaskUpdateInput) Reset ¶
func (x *TaskUpdateInput) Reset()
func (*TaskUpdateInput) String ¶
func (x *TaskUpdateInput) String() string