Documentation ¶
Index ¶
- Variables
- func NewHistoryEndpoints() []*api.Endpoint
- func RegisterHistoryHandler(s server.Server, hdlr HistoryHandler, opts ...server.HandlerOption) error
- type Empty
- type HistoryHandler
- type HistoryIDInput
- type HistoryListInput
- func (*HistoryListInput) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryListInput) GetInfo() string
- func (x *HistoryListInput) GetPageNo() int64
- func (x *HistoryListInput) GetPageSize() int64
- func (x *HistoryListInput) GetSortField() string
- func (x *HistoryListInput) GetSortOrder() string
- func (x *HistoryListInput) GetStatus() string
- func (*HistoryListInput) ProtoMessage()
- func (x *HistoryListInput) ProtoReflect() protoreflect.Message
- func (x *HistoryListInput) Reset()
- func (x *HistoryListInput) String() string
- type HistoryListOutItem
- func (*HistoryListOutItem) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryListOutItem) GetBakTime() string
- func (x *HistoryListOutItem) GetCleanedStatus() int64
- func (x *HistoryListOutItem) GetDBName() string
- func (x *HistoryListOutItem) GetDingStatus() int64
- func (x *HistoryListOutItem) GetEncryptionStatus() int64
- func (x *HistoryListOutItem) GetFileName() string
- func (x *HistoryListOutItem) GetFileSize() string
- func (x *HistoryListOutItem) GetHost() string
- func (x *HistoryListOutItem) GetID() int64
- func (x *HistoryListOutItem) GetMessage() string
- func (x *HistoryListOutItem) GetOSSStatus() int64
- func (x *HistoryListOutItem) GetStatus() int64
- func (*HistoryListOutItem) ProtoMessage()
- func (x *HistoryListOutItem) ProtoReflect() protoreflect.Message
- func (x *HistoryListOutItem) Reset()
- func (x *HistoryListOutItem) String() string
- type HistoryListOutput
- func (*HistoryListOutput) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryListOutput) GetHistoryListOutItem() []*HistoryListOutItem
- func (x *HistoryListOutput) GetPageNo() int64
- func (x *HistoryListOutput) GetPageSize() int64
- func (x *HistoryListOutput) GetTotal() int64
- func (*HistoryListOutput) ProtoMessage()
- func (x *HistoryListOutput) ProtoReflect() protoreflect.Message
- func (x *HistoryListOutput) Reset()
- func (x *HistoryListOutput) String() string
- type HistoryNumInfoOut
- func (*HistoryNumInfoOut) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryNumInfoOut) GetAllFileSize() string
- func (x *HistoryNumInfoOut) GetAllNums() int64
- func (x *HistoryNumInfoOut) GetFailNum() int64
- func (x *HistoryNumInfoOut) GetWeekNums() int64
- func (*HistoryNumInfoOut) ProtoMessage()
- func (x *HistoryNumInfoOut) ProtoReflect() protoreflect.Message
- func (x *HistoryNumInfoOut) Reset()
- func (x *HistoryNumInfoOut) String() string
- type HistoryOneMessage
- func (*HistoryOneMessage) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryOneMessage) GetMessage() string
- func (x *HistoryOneMessage) GetOK() bool
- func (*HistoryOneMessage) ProtoMessage()
- func (x *HistoryOneMessage) ProtoReflect() protoreflect.Message
- func (x *HistoryOneMessage) Reset()
- func (x *HistoryOneMessage) String() string
- type HistoryService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_bakhistory_proto protoreflect.FileDescriptor
Functions ¶
func NewHistoryEndpoints ¶
func RegisterHistoryHandler ¶
func RegisterHistoryHandler(s server.Server, hdlr HistoryHandler, opts ...server.HandlerOption) error
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type HistoryHandler ¶
type HistoryHandler interface { GetHistoryList(context.Context, *HistoryListInput, *HistoryListOutput) error DeleteHistory(context.Context, *HistoryIDInput, *HistoryOneMessage) error GetHistoryNumInfo(context.Context, *Empty, *HistoryNumInfoOut) error }
type HistoryIDInput ¶
type HistoryIDInput struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*HistoryIDInput) Descriptor
deprecated
func (*HistoryIDInput) Descriptor() ([]byte, []int)
Deprecated: Use HistoryIDInput.ProtoReflect.Descriptor instead.
func (*HistoryIDInput) GetID ¶
func (x *HistoryIDInput) GetID() int64
func (*HistoryIDInput) ProtoMessage ¶
func (*HistoryIDInput) ProtoMessage()
func (*HistoryIDInput) ProtoReflect ¶
func (x *HistoryIDInput) ProtoReflect() protoreflect.Message
func (*HistoryIDInput) Reset ¶
func (x *HistoryIDInput) Reset()
func (*HistoryIDInput) String ¶
func (x *HistoryIDInput) String() string
type HistoryListInput ¶
type HistoryListInput struct { 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"` SortField string `protobuf:"bytes,5,opt,name=SortField,proto3" json:"SortField,omitempty"` SortOrder string `protobuf:"bytes,6,opt,name=SortOrder,proto3" json:"SortOrder,omitempty"` Status string `protobuf:"bytes,7,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*HistoryListInput) Descriptor
deprecated
func (*HistoryListInput) Descriptor() ([]byte, []int)
Deprecated: Use HistoryListInput.ProtoReflect.Descriptor instead.
func (*HistoryListInput) GetInfo ¶
func (x *HistoryListInput) GetInfo() string
func (*HistoryListInput) GetPageNo ¶
func (x *HistoryListInput) GetPageNo() int64
func (*HistoryListInput) GetPageSize ¶
func (x *HistoryListInput) GetPageSize() int64
func (*HistoryListInput) GetSortField ¶
func (x *HistoryListInput) GetSortField() string
func (*HistoryListInput) GetSortOrder ¶
func (x *HistoryListInput) GetSortOrder() string
func (*HistoryListInput) GetStatus ¶
func (x *HistoryListInput) GetStatus() string
func (*HistoryListInput) ProtoMessage ¶
func (*HistoryListInput) ProtoMessage()
func (*HistoryListInput) ProtoReflect ¶
func (x *HistoryListInput) ProtoReflect() protoreflect.Message
func (*HistoryListInput) Reset ¶
func (x *HistoryListInput) Reset()
func (*HistoryListInput) String ¶
func (x *HistoryListInput) String() string
type HistoryListOutItem ¶
type HistoryListOutItem struct { // @inject_tag: json:"id" ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"` // @inject_tag: json:"host" Host string `protobuf:"bytes,2,opt,name=Host,proto3" json:"host"` // @inject_tag: json:"db_name" DBName string `protobuf:"bytes,3,opt,name=DBName,proto3" json:"db_name"` // @inject_tag: json:"ding_status" DingStatus int64 `protobuf:"varint,4,opt,name=DingStatus,proto3" json:"ding_status"` // @inject_tag: json:"oss_status" OSSStatus int64 `protobuf:"varint,5,opt,name=OSSStatus,proto3" json:"oss_status"` // @inject_tag: json:"message" Message string `protobuf:"bytes,6,opt,name=Message,proto3" json:"message"` // @inject_tag: json:"file_size" FileSize string `protobuf:"bytes,7,opt,name=FileSize,proto3" json:"file_size"` // @inject_tag: json:"file_name" FileName string `protobuf:"bytes,8,opt,name=FileName,proto3" json:"file_name"` // @inject_tag: json:"bak_time" BakTime string `protobuf:"bytes,9,opt,name=BakTime,proto3" json:"bak_time"` // @inject_tag: json:"status" Status int64 `protobuf:"varint,10,opt,name=Status,proto3" json:"status"` // @inject_tag: json:"cleaned_status" CleanedStatus int64 `protobuf:"varint,11,opt,name=CleanedStatus,proto3" json:"cleaned_status"` // @inject_tag: json:"encryption_status" EncryptionStatus int64 `protobuf:"varint,12,opt,name=EncryptionStatus,proto3" json:"encryption_status"` // contains filtered or unexported fields }
func (*HistoryListOutItem) Descriptor
deprecated
func (*HistoryListOutItem) Descriptor() ([]byte, []int)
Deprecated: Use HistoryListOutItem.ProtoReflect.Descriptor instead.
func (*HistoryListOutItem) GetBakTime ¶
func (x *HistoryListOutItem) GetBakTime() string
func (*HistoryListOutItem) GetCleanedStatus ¶
func (x *HistoryListOutItem) GetCleanedStatus() int64
func (*HistoryListOutItem) GetDBName ¶
func (x *HistoryListOutItem) GetDBName() string
func (*HistoryListOutItem) GetDingStatus ¶
func (x *HistoryListOutItem) GetDingStatus() int64
func (*HistoryListOutItem) GetEncryptionStatus ¶
func (x *HistoryListOutItem) GetEncryptionStatus() int64
func (*HistoryListOutItem) GetFileName ¶
func (x *HistoryListOutItem) GetFileName() string
func (*HistoryListOutItem) GetFileSize ¶
func (x *HistoryListOutItem) GetFileSize() string
func (*HistoryListOutItem) GetHost ¶
func (x *HistoryListOutItem) GetHost() string
func (*HistoryListOutItem) GetID ¶
func (x *HistoryListOutItem) GetID() int64
func (*HistoryListOutItem) GetMessage ¶
func (x *HistoryListOutItem) GetMessage() string
func (*HistoryListOutItem) GetOSSStatus ¶
func (x *HistoryListOutItem) GetOSSStatus() int64
func (*HistoryListOutItem) GetStatus ¶
func (x *HistoryListOutItem) GetStatus() int64
func (*HistoryListOutItem) ProtoMessage ¶
func (*HistoryListOutItem) ProtoMessage()
func (*HistoryListOutItem) ProtoReflect ¶
func (x *HistoryListOutItem) ProtoReflect() protoreflect.Message
func (*HistoryListOutItem) Reset ¶
func (x *HistoryListOutItem) Reset()
func (*HistoryListOutItem) String ¶
func (x *HistoryListOutItem) String() string
type HistoryListOutput ¶
type HistoryListOutput struct { // @inject_tag: json:"total" Total int64 `protobuf:"varint,1,opt,name=Total,proto3" json:"total"` // @inject_tag: json:"list" HistoryListOutItem []*HistoryListOutItem `protobuf:"bytes,2,rep,name=historyListOutItem,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 (*HistoryListOutput) Descriptor
deprecated
func (*HistoryListOutput) Descriptor() ([]byte, []int)
Deprecated: Use HistoryListOutput.ProtoReflect.Descriptor instead.
func (*HistoryListOutput) GetHistoryListOutItem ¶
func (x *HistoryListOutput) GetHistoryListOutItem() []*HistoryListOutItem
func (*HistoryListOutput) GetPageNo ¶
func (x *HistoryListOutput) GetPageNo() int64
func (*HistoryListOutput) GetPageSize ¶
func (x *HistoryListOutput) GetPageSize() int64
func (*HistoryListOutput) GetTotal ¶
func (x *HistoryListOutput) GetTotal() int64
func (*HistoryListOutput) ProtoMessage ¶
func (*HistoryListOutput) ProtoMessage()
func (*HistoryListOutput) ProtoReflect ¶
func (x *HistoryListOutput) ProtoReflect() protoreflect.Message
func (*HistoryListOutput) Reset ¶
func (x *HistoryListOutput) Reset()
func (*HistoryListOutput) String ¶
func (x *HistoryListOutput) String() string
type HistoryNumInfoOut ¶
type HistoryNumInfoOut struct { // @inject_tag: json:"week_nums" WeekNums int64 `protobuf:"varint,1,opt,name=WeekNums,proto3" json:"week_nums"` // @inject_tag: json:"all_nums" AllNums int64 `protobuf:"varint,2,opt,name=AllNums,proto3" json:"all_nums"` // @inject_tag: json:"all_filesize" AllFileSize string `protobuf:"bytes,3,opt,name=AllFileSize,proto3" json:"all_filesize"` // @inject_tag: json:"fail_num" FailNum int64 `protobuf:"varint,4,opt,name=FailNum,proto3" json:"fail_num"` // contains filtered or unexported fields }
func (*HistoryNumInfoOut) Descriptor
deprecated
func (*HistoryNumInfoOut) Descriptor() ([]byte, []int)
Deprecated: Use HistoryNumInfoOut.ProtoReflect.Descriptor instead.
func (*HistoryNumInfoOut) GetAllFileSize ¶
func (x *HistoryNumInfoOut) GetAllFileSize() string
func (*HistoryNumInfoOut) GetAllNums ¶
func (x *HistoryNumInfoOut) GetAllNums() int64
func (*HistoryNumInfoOut) GetFailNum ¶
func (x *HistoryNumInfoOut) GetFailNum() int64
func (*HistoryNumInfoOut) GetWeekNums ¶
func (x *HistoryNumInfoOut) GetWeekNums() int64
func (*HistoryNumInfoOut) ProtoMessage ¶
func (*HistoryNumInfoOut) ProtoMessage()
func (*HistoryNumInfoOut) ProtoReflect ¶
func (x *HistoryNumInfoOut) ProtoReflect() protoreflect.Message
func (*HistoryNumInfoOut) Reset ¶
func (x *HistoryNumInfoOut) Reset()
func (*HistoryNumInfoOut) String ¶
func (x *HistoryNumInfoOut) String() string
type HistoryOneMessage ¶
type HistoryOneMessage struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` OK bool `protobuf:"varint,2,opt,name=OK,proto3" json:"OK,omitempty"` // contains filtered or unexported fields }
func (*HistoryOneMessage) Descriptor
deprecated
func (*HistoryOneMessage) Descriptor() ([]byte, []int)
Deprecated: Use HistoryOneMessage.ProtoReflect.Descriptor instead.
func (*HistoryOneMessage) GetMessage ¶
func (x *HistoryOneMessage) GetMessage() string
func (*HistoryOneMessage) GetOK ¶
func (x *HistoryOneMessage) GetOK() bool
func (*HistoryOneMessage) ProtoMessage ¶
func (*HistoryOneMessage) ProtoMessage()
func (*HistoryOneMessage) ProtoReflect ¶
func (x *HistoryOneMessage) ProtoReflect() protoreflect.Message
func (*HistoryOneMessage) Reset ¶
func (x *HistoryOneMessage) Reset()
func (*HistoryOneMessage) String ¶
func (x *HistoryOneMessage) String() string
type HistoryService ¶
type HistoryService interface { GetHistoryList(ctx context.Context, in *HistoryListInput, opts ...client.CallOption) (*HistoryListOutput, error) DeleteHistory(ctx context.Context, in *HistoryIDInput, opts ...client.CallOption) (*HistoryOneMessage, error) GetHistoryNumInfo(ctx context.Context, in *Empty, opts ...client.CallOption) (*HistoryNumInfoOut, error) }
func NewHistoryService ¶
func NewHistoryService(name string, c client.Client) HistoryService
Click to show internal directories.
Click to hide internal directories.