708 lines
22 KiB
Go
708 lines
22 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v3.19.6
|
||
// source: service_log.proto
|
||
|
||
package pb
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
// 创建日志
|
||
type CreateLogRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` // 级别:info, warn, error
|
||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // 描述
|
||
Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` // 可选项,发生操作所在的页面URL
|
||
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // 可选项,操作用户IP
|
||
LangMessageCode string `protobuf:"bytes,5,opt,name=langMessageCode,proto3" json:"langMessageCode,omitempty"` // 多语言消息
|
||
LangMessageArgsJSON []byte `protobuf:"bytes,6,opt,name=langMessageArgsJSON,proto3" json:"langMessageArgsJSON,omitempty"` // 多语言消息中的参数项,格式:[arg1, arg2, ...]
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateLogRequest) Reset() {
|
||
*x = CreateLogRequest{}
|
||
mi := &file_service_log_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateLogRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateLogRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateLogRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreateLogRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateLogRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *CreateLogRequest) GetLevel() string {
|
||
if x != nil {
|
||
return x.Level
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateLogRequest) GetDescription() string {
|
||
if x != nil {
|
||
return x.Description
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateLogRequest) GetAction() string {
|
||
if x != nil {
|
||
return x.Action
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateLogRequest) GetIp() string {
|
||
if x != nil {
|
||
return x.Ip
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateLogRequest) GetLangMessageCode() string {
|
||
if x != nil {
|
||
return x.LangMessageCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateLogRequest) GetLangMessageArgsJSON() []byte {
|
||
if x != nil {
|
||
return x.LangMessageArgsJSON
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type CreateLogResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateLogResponse) Reset() {
|
||
*x = CreateLogResponse{}
|
||
mi := &file_service_log_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateLogResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateLogResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateLogResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreateLogResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateLogResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
// 计算日志数量
|
||
type CountLogRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
DayFrom string `protobuf:"bytes,1,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"` // 可选项,开始日期
|
||
DayTo string `protobuf:"bytes,2,opt,name=dayTo,proto3" json:"dayTo,omitempty"` // 可选项,结束日期
|
||
Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` // 可选项,关键词
|
||
UserType string `protobuf:"bytes,4,opt,name=userType,proto3" json:"userType,omitempty"` // 可选项,用户类型:admin|user;用户端固定为user
|
||
Level string `protobuf:"bytes,5,opt,name=level,proto3" json:"level,omitempty"` // 可选项,错误级别:info, warn, error
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CountLogRequest) Reset() {
|
||
*x = CountLogRequest{}
|
||
mi := &file_service_log_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CountLogRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CountLogRequest) ProtoMessage() {}
|
||
|
||
func (x *CountLogRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CountLogRequest.ProtoReflect.Descriptor instead.
|
||
func (*CountLogRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *CountLogRequest) GetDayFrom() string {
|
||
if x != nil {
|
||
return x.DayFrom
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CountLogRequest) GetDayTo() string {
|
||
if x != nil {
|
||
return x.DayTo
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CountLogRequest) GetKeyword() string {
|
||
if x != nil {
|
||
return x.Keyword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CountLogRequest) GetUserType() string {
|
||
if x != nil {
|
||
return x.UserType
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CountLogRequest) GetLevel() string {
|
||
if x != nil {
|
||
return x.Level
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 列出单页日志
|
||
type ListLogsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 读取位置,从0开始
|
||
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 读取数量
|
||
DayFrom string `protobuf:"bytes,3,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"` // 可选项,开始日期
|
||
DayTo string `protobuf:"bytes,4,opt,name=dayTo,proto3" json:"dayTo,omitempty"` // 可选项,结束日期
|
||
Keyword string `protobuf:"bytes,5,opt,name=keyword,proto3" json:"keyword,omitempty"` // 可选项,关键词
|
||
UserType string `protobuf:"bytes,6,opt,name=userType,proto3" json:"userType,omitempty"` // 可选项,用户类型:admin|user;用户端固定为user
|
||
Level string `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"` // 可选项,错误级别:info, warn, error
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListLogsRequest) Reset() {
|
||
*x = ListLogsRequest{}
|
||
mi := &file_service_log_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListLogsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListLogsRequest) ProtoMessage() {}
|
||
|
||
func (x *ListLogsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListLogsRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListLogsRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *ListLogsRequest) GetOffset() int64 {
|
||
if x != nil {
|
||
return x.Offset
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListLogsRequest) GetSize() int64 {
|
||
if x != nil {
|
||
return x.Size
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListLogsRequest) GetDayFrom() string {
|
||
if x != nil {
|
||
return x.DayFrom
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListLogsRequest) GetDayTo() string {
|
||
if x != nil {
|
||
return x.DayTo
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListLogsRequest) GetKeyword() string {
|
||
if x != nil {
|
||
return x.Keyword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListLogsRequest) GetUserType() string {
|
||
if x != nil {
|
||
return x.UserType
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListLogsRequest) GetLevel() string {
|
||
if x != nil {
|
||
return x.Level
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ListLogsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Logs []*Log `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListLogsResponse) Reset() {
|
||
*x = ListLogsResponse{}
|
||
mi := &file_service_log_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListLogsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListLogsResponse) ProtoMessage() {}
|
||
|
||
func (x *ListLogsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListLogsResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListLogsResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *ListLogsResponse) GetLogs() []*Log {
|
||
if x != nil {
|
||
return x.Logs
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 删除单条
|
||
type DeleteLogPermanentlyRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
LogId int64 `protobuf:"varint,1,opt,name=logId,proto3" json:"logId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteLogPermanentlyRequest) Reset() {
|
||
*x = DeleteLogPermanentlyRequest{}
|
||
mi := &file_service_log_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteLogPermanentlyRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteLogPermanentlyRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteLogPermanentlyRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteLogPermanentlyRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteLogPermanentlyRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *DeleteLogPermanentlyRequest) GetLogId() int64 {
|
||
if x != nil {
|
||
return x.LogId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 批量删除
|
||
type DeleteLogsPermanentlyRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
LogIds []int64 `protobuf:"varint,1,rep,packed,name=logIds,proto3" json:"logIds,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteLogsPermanentlyRequest) Reset() {
|
||
*x = DeleteLogsPermanentlyRequest{}
|
||
mi := &file_service_log_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteLogsPermanentlyRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteLogsPermanentlyRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteLogsPermanentlyRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[6]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteLogsPermanentlyRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteLogsPermanentlyRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *DeleteLogsPermanentlyRequest) GetLogIds() []int64 {
|
||
if x != nil {
|
||
return x.LogIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 清理
|
||
type CleanLogsPermanentlyRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Days int32 `protobuf:"varint,1,opt,name=days,proto3" json:"days,omitempty"`
|
||
ClearAll bool `protobuf:"varint,2,opt,name=clearAll,proto3" json:"clearAll,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CleanLogsPermanentlyRequest) Reset() {
|
||
*x = CleanLogsPermanentlyRequest{}
|
||
mi := &file_service_log_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CleanLogsPermanentlyRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CleanLogsPermanentlyRequest) ProtoMessage() {}
|
||
|
||
func (x *CleanLogsPermanentlyRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[7]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CleanLogsPermanentlyRequest.ProtoReflect.Descriptor instead.
|
||
func (*CleanLogsPermanentlyRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *CleanLogsPermanentlyRequest) GetDays() int32 {
|
||
if x != nil {
|
||
return x.Days
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CleanLogsPermanentlyRequest) GetClearAll() bool {
|
||
if x != nil {
|
||
return x.ClearAll
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 计算日志容量大小
|
||
type SumLogsSizeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SumLogsSizeRequest) Reset() {
|
||
*x = SumLogsSizeRequest{}
|
||
mi := &file_service_log_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SumLogsSizeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SumLogsSizeRequest) ProtoMessage() {}
|
||
|
||
func (x *SumLogsSizeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[8]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SumLogsSizeRequest.ProtoReflect.Descriptor instead.
|
||
func (*SumLogsSizeRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
type SumLogsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
SizeBytes int64 `protobuf:"varint,1,opt,name=sizeBytes,proto3" json:"sizeBytes,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SumLogsResponse) Reset() {
|
||
*x = SumLogsResponse{}
|
||
mi := &file_service_log_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SumLogsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SumLogsResponse) ProtoMessage() {}
|
||
|
||
func (x *SumLogsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_log_proto_msgTypes[9]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SumLogsResponse.ProtoReflect.Descriptor instead.
|
||
func (*SumLogsResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_log_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *SumLogsResponse) GetSizeBytes() int64 {
|
||
if x != nil {
|
||
return x.SizeBytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
var File_service_log_proto protoreflect.FileDescriptor
|
||
|
||
const file_service_log_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x11service_log.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a\x16models/model_log.proto\"\xce\x01\n" +
|
||
"\x10CreateLogRequest\x12\x14\n" +
|
||
"\x05level\x18\x01 \x01(\tR\x05level\x12 \n" +
|
||
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x16\n" +
|
||
"\x06action\x18\x03 \x01(\tR\x06action\x12\x0e\n" +
|
||
"\x02ip\x18\x04 \x01(\tR\x02ip\x12(\n" +
|
||
"\x0flangMessageCode\x18\x05 \x01(\tR\x0flangMessageCode\x120\n" +
|
||
"\x13langMessageArgsJSON\x18\x06 \x01(\fR\x13langMessageArgsJSON\"\x13\n" +
|
||
"\x11CreateLogResponse\"\x8d\x01\n" +
|
||
"\x0fCountLogRequest\x12\x18\n" +
|
||
"\adayFrom\x18\x01 \x01(\tR\adayFrom\x12\x14\n" +
|
||
"\x05dayTo\x18\x02 \x01(\tR\x05dayTo\x12\x18\n" +
|
||
"\akeyword\x18\x03 \x01(\tR\akeyword\x12\x1a\n" +
|
||
"\buserType\x18\x04 \x01(\tR\buserType\x12\x14\n" +
|
||
"\x05level\x18\x05 \x01(\tR\x05level\"\xb9\x01\n" +
|
||
"\x0fListLogsRequest\x12\x16\n" +
|
||
"\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x12\n" +
|
||
"\x04size\x18\x02 \x01(\x03R\x04size\x12\x18\n" +
|
||
"\adayFrom\x18\x03 \x01(\tR\adayFrom\x12\x14\n" +
|
||
"\x05dayTo\x18\x04 \x01(\tR\x05dayTo\x12\x18\n" +
|
||
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x1a\n" +
|
||
"\buserType\x18\x06 \x01(\tR\buserType\x12\x14\n" +
|
||
"\x05level\x18\a \x01(\tR\x05level\"/\n" +
|
||
"\x10ListLogsResponse\x12\x1b\n" +
|
||
"\x04logs\x18\x01 \x03(\v2\a.pb.LogR\x04logs\"3\n" +
|
||
"\x1bDeleteLogPermanentlyRequest\x12\x14\n" +
|
||
"\x05logId\x18\x01 \x01(\x03R\x05logId\"6\n" +
|
||
"\x1cDeleteLogsPermanentlyRequest\x12\x16\n" +
|
||
"\x06logIds\x18\x01 \x03(\x03R\x06logIds\"M\n" +
|
||
"\x1bCleanLogsPermanentlyRequest\x12\x12\n" +
|
||
"\x04days\x18\x01 \x01(\x05R\x04days\x12\x1a\n" +
|
||
"\bclearAll\x18\x02 \x01(\bR\bclearAll\"\x14\n" +
|
||
"\x12SumLogsSizeRequest\"/\n" +
|
||
"\x0fSumLogsResponse\x12\x1c\n" +
|
||
"\tsizeBytes\x18\x01 \x01(\x03R\tsizeBytes2\xce\x03\n" +
|
||
"\n" +
|
||
"LogService\x128\n" +
|
||
"\tcreateLog\x12\x14.pb.CreateLogRequest\x1a\x15.pb.CreateLogResponse\x126\n" +
|
||
"\tcountLogs\x12\x13.pb.CountLogRequest\x1a\x14.pb.RPCCountResponse\x125\n" +
|
||
"\blistLogs\x12\x13.pb.ListLogsRequest\x1a\x14.pb.ListLogsResponse\x12G\n" +
|
||
"\x14deleteLogPermanently\x12\x1f.pb.DeleteLogPermanentlyRequest\x1a\x0e.pb.RPCSuccess\x12I\n" +
|
||
"\x15deleteLogsPermanently\x12 .pb.DeleteLogsPermanentlyRequest\x1a\x0e.pb.RPCSuccess\x12G\n" +
|
||
"\x14cleanLogsPermanently\x12\x1f.pb.CleanLogsPermanentlyRequest\x1a\x0e.pb.RPCSuccess\x12:\n" +
|
||
"\vsumLogsSize\x12\x16.pb.SumLogsSizeRequest\x1a\x13.pb.SumLogsResponseB\x06Z\x04./pbb\x06proto3"
|
||
|
||
var (
|
||
file_service_log_proto_rawDescOnce sync.Once
|
||
file_service_log_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_service_log_proto_rawDescGZIP() []byte {
|
||
file_service_log_proto_rawDescOnce.Do(func() {
|
||
file_service_log_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_log_proto_rawDesc), len(file_service_log_proto_rawDesc)))
|
||
})
|
||
return file_service_log_proto_rawDescData
|
||
}
|
||
|
||
var file_service_log_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||
var file_service_log_proto_goTypes = []any{
|
||
(*CreateLogRequest)(nil), // 0: pb.CreateLogRequest
|
||
(*CreateLogResponse)(nil), // 1: pb.CreateLogResponse
|
||
(*CountLogRequest)(nil), // 2: pb.CountLogRequest
|
||
(*ListLogsRequest)(nil), // 3: pb.ListLogsRequest
|
||
(*ListLogsResponse)(nil), // 4: pb.ListLogsResponse
|
||
(*DeleteLogPermanentlyRequest)(nil), // 5: pb.DeleteLogPermanentlyRequest
|
||
(*DeleteLogsPermanentlyRequest)(nil), // 6: pb.DeleteLogsPermanentlyRequest
|
||
(*CleanLogsPermanentlyRequest)(nil), // 7: pb.CleanLogsPermanentlyRequest
|
||
(*SumLogsSizeRequest)(nil), // 8: pb.SumLogsSizeRequest
|
||
(*SumLogsResponse)(nil), // 9: pb.SumLogsResponse
|
||
(*Log)(nil), // 10: pb.Log
|
||
(*RPCCountResponse)(nil), // 11: pb.RPCCountResponse
|
||
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
|
||
}
|
||
var file_service_log_proto_depIdxs = []int32{
|
||
10, // 0: pb.ListLogsResponse.logs:type_name -> pb.Log
|
||
0, // 1: pb.LogService.createLog:input_type -> pb.CreateLogRequest
|
||
2, // 2: pb.LogService.countLogs:input_type -> pb.CountLogRequest
|
||
3, // 3: pb.LogService.listLogs:input_type -> pb.ListLogsRequest
|
||
5, // 4: pb.LogService.deleteLogPermanently:input_type -> pb.DeleteLogPermanentlyRequest
|
||
6, // 5: pb.LogService.deleteLogsPermanently:input_type -> pb.DeleteLogsPermanentlyRequest
|
||
7, // 6: pb.LogService.cleanLogsPermanently:input_type -> pb.CleanLogsPermanentlyRequest
|
||
8, // 7: pb.LogService.sumLogsSize:input_type -> pb.SumLogsSizeRequest
|
||
1, // 8: pb.LogService.createLog:output_type -> pb.CreateLogResponse
|
||
11, // 9: pb.LogService.countLogs:output_type -> pb.RPCCountResponse
|
||
4, // 10: pb.LogService.listLogs:output_type -> pb.ListLogsResponse
|
||
12, // 11: pb.LogService.deleteLogPermanently:output_type -> pb.RPCSuccess
|
||
12, // 12: pb.LogService.deleteLogsPermanently:output_type -> pb.RPCSuccess
|
||
12, // 13: pb.LogService.cleanLogsPermanently:output_type -> pb.RPCSuccess
|
||
9, // 14: pb.LogService.sumLogsSize:output_type -> pb.SumLogsResponse
|
||
8, // [8:15] is the sub-list for method output_type
|
||
1, // [1:8] is the sub-list for method input_type
|
||
1, // [1:1] is the sub-list for extension type_name
|
||
1, // [1:1] is the sub-list for extension extendee
|
||
0, // [0:1] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_service_log_proto_init() }
|
||
func file_service_log_proto_init() {
|
||
if File_service_log_proto != nil {
|
||
return
|
||
}
|
||
file_models_rpc_messages_proto_init()
|
||
file_models_model_log_proto_init()
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_log_proto_rawDesc), len(file_service_log_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 10,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_service_log_proto_goTypes,
|
||
DependencyIndexes: file_service_log_proto_depIdxs,
|
||
MessageInfos: file_service_log_proto_msgTypes,
|
||
}.Build()
|
||
File_service_log_proto = out.File
|
||
file_service_log_proto_goTypes = nil
|
||
file_service_log_proto_depIdxs = nil
|
||
}
|