Documentation ¶
Index ¶
- Variables
- func RegisterLoggingSvcServer(s grpc.ServiceRegistrar, srv LoggingSvcServer)
- type LogBody
- type LogData
- func (*LogData) Descriptor() ([]byte, []int)deprecated
- func (x *LogData) GetBody() *LogBody
- func (x *LogData) GetCreatedAt() *timestamppb.Timestamp
- func (x *LogData) GetHeader() *LogHeader
- func (x *LogData) GetId() string
- func (x *LogData) GetUpdatedAt() *timestamppb.Timestamp
- func (*LogData) ProtoMessage()
- func (x *LogData) ProtoReflect() protoreflect.Message
- func (x *LogData) Reset()
- func (x *LogData) String() string
- type LogDataFilter
- func (*LogDataFilter) Descriptor() ([]byte, []int)deprecated
- func (x *LogDataFilter) GetCreatedAtFrom() *timestamppb.Timestamp
- func (x *LogDataFilter) GetCreatedAtTo() *timestamppb.Timestamp
- func (x *LogDataFilter) GetEventDateFrom() *timestamppb.Timestamp
- func (x *LogDataFilter) GetEventDateTo() *timestamppb.Timestamp
- func (x *LogDataFilter) GetId() string
- func (x *LogDataFilter) GetLimit() int32
- func (x *LogDataFilter) GetLogType() LogType
- func (x *LogDataFilter) GetOffset() int32
- func (x *LogDataFilter) GetPath() string
- func (x *LogDataFilter) GetSearchText() string
- func (x *LogDataFilter) GetServiceName() string
- func (x *LogDataFilter) GetSortField() LogSortField
- func (x *LogDataFilter) GetSortType() string
- func (x *LogDataFilter) GetUpdatedAtFrom() *timestamppb.Timestamp
- func (x *LogDataFilter) GetUpdatedAtTo() *timestamppb.Timestamp
- func (x *LogDataFilter) GetUserId() string
- func (*LogDataFilter) ProtoMessage()
- func (x *LogDataFilter) ProtoReflect() protoreflect.Message
- func (x *LogDataFilter) Reset()
- func (x *LogDataFilter) String() string
- type LogDatas
- type LogHeader
- func (*LogHeader) Descriptor() ([]byte, []int)deprecated
- func (x *LogHeader) GetEventDate() *timestamppb.Timestamp
- func (x *LogHeader) GetLogType() LogType
- func (x *LogHeader) GetPath() string
- func (x *LogHeader) GetServiceName() string
- func (x *LogHeader) GetUserId() string
- func (*LogHeader) ProtoMessage()
- func (x *LogHeader) ProtoReflect() protoreflect.Message
- func (x *LogHeader) Reset()
- func (x *LogHeader) String() string
- type LogSortField
- func (LogSortField) Descriptor() protoreflect.EnumDescriptor
- func (x LogSortField) Enum() *LogSortField
- func (LogSortField) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogSortField) Number() protoreflect.EnumNumber
- func (x LogSortField) String() string
- func (LogSortField) Type() protoreflect.EnumType
- type LogType
- type LoggingResult
- type LoggingSvcClient
- type LoggingSvcServer
- type UnimplementedLoggingSvcServer
- type UnsafeLoggingSvcServer
Constants ¶
This section is empty.
Variables ¶
var ( LogType_name = map[int32]string{ 0: "LogTypeNONE", 1: "LogTypeINFO", 2: "LogTypeWARNING", 3: "LogTypeERROR", 4: "LogTypeDEBUG", } LogType_value = map[string]int32{ "LogTypeNONE": 0, "LogTypeINFO": 1, "LogTypeWARNING": 2, "LogTypeERROR": 3, "LogTypeDEBUG": 4, } )
Enum value maps for LogType.
var ( LogSortField_name = map[int32]string{ 0: "LogSortFieldNONE", 1: "LogSortFieldId", 2: "LogSortFieldServiceName", 3: "LogSortFieldEventDate", 4: "LogSortFieldCreatedAt", 5: "LogSortFieldUpdatedAt", } LogSortField_value = map[string]int32{ "LogSortFieldNONE": 0, "LogSortFieldId": 1, "LogSortFieldServiceName": 2, "LogSortFieldEventDate": 3, "LogSortFieldCreatedAt": 4, "LogSortFieldUpdatedAt": 5, } )
Enum value maps for LogSortField.
var File_logging_proto protoreflect.FileDescriptor
var LoggingSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "LoggingSvc", HandlerType: (*LoggingSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetLogsByFilter", Handler: _LoggingSvc_GetLogsByFilter_Handler, }, { MethodName: "Log", Handler: _LoggingSvc_Log_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "logging.proto", }
LoggingSvc_ServiceDesc is the grpc.ServiceDesc for LoggingSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLoggingSvcServer ¶
func RegisterLoggingSvcServer(s grpc.ServiceRegistrar, srv LoggingSvcServer)
Types ¶
type LogBody ¶
type LogBody struct { Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*LogBody) Descriptor
deprecated
func (*LogBody) GetMessage ¶
func (*LogBody) ProtoMessage ¶
func (*LogBody) ProtoMessage()
func (*LogBody) ProtoReflect ¶
func (x *LogBody) ProtoReflect() protoreflect.Message
type LogData ¶
type LogData struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Header *LogHeader `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` Body *LogBody `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,80,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,81,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*LogData) Descriptor
deprecated
func (*LogData) GetCreatedAt ¶
func (x *LogData) GetCreatedAt() *timestamppb.Timestamp
func (*LogData) GetUpdatedAt ¶
func (x *LogData) GetUpdatedAt() *timestamppb.Timestamp
func (*LogData) ProtoMessage ¶
func (*LogData) ProtoMessage()
func (*LogData) ProtoReflect ¶
func (x *LogData) ProtoReflect() protoreflect.Message
type LogDataFilter ¶
type LogDataFilter struct { Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` EventDateFrom *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=eventDateFrom,proto3,oneof" json:"eventDateFrom,omitempty"` EventDateTo *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=eventDateTo,proto3,oneof" json:"eventDateTo,omitempty"` LogType *LogType `protobuf:"varint,4,opt,name=logType,proto3,enum=LogType,oneof" json:"logType,omitempty"` ServiceName *string `protobuf:"bytes,5,opt,name=serviceName,proto3,oneof" json:"serviceName,omitempty"` Path *string `protobuf:"bytes,6,opt,name=path,proto3,oneof" json:"path,omitempty"` UserId *string `protobuf:"bytes,7,opt,name=userId,proto3,oneof" json:"userId,omitempty"` CreatedAtFrom *timestamppb.Timestamp `protobuf:"bytes,80,opt,name=createdAtFrom,proto3,oneof" json:"createdAtFrom,omitempty"` CreatedAtTo *timestamppb.Timestamp `protobuf:"bytes,81,opt,name=createdAtTo,proto3,oneof" json:"createdAtTo,omitempty"` UpdatedAtFrom *timestamppb.Timestamp `protobuf:"bytes,82,opt,name=updatedAtFrom,proto3,oneof" json:"updatedAtFrom,omitempty"` UpdatedAtTo *timestamppb.Timestamp `protobuf:"bytes,84,opt,name=updatedAtTo,proto3,oneof" json:"updatedAtTo,omitempty"` SearchText *string `protobuf:"bytes,95,opt,name=searchText,proto3,oneof" json:"searchText,omitempty"` SortType *string `protobuf:"bytes,96,opt,name=sortType,proto3,oneof" json:"sortType,omitempty"` SortField *LogSortField `protobuf:"varint,97,opt,name=sortField,proto3,enum=LogSortField,oneof" json:"sortField,omitempty"` Limit *int32 `protobuf:"varint,98,opt,name=limit,proto3,oneof" json:"limit,omitempty"` Offset *int32 `protobuf:"varint,99,opt,name=offset,proto3,oneof" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*LogDataFilter) Descriptor
deprecated
func (*LogDataFilter) Descriptor() ([]byte, []int)
Deprecated: Use LogDataFilter.ProtoReflect.Descriptor instead.
func (*LogDataFilter) GetCreatedAtFrom ¶
func (x *LogDataFilter) GetCreatedAtFrom() *timestamppb.Timestamp
func (*LogDataFilter) GetCreatedAtTo ¶
func (x *LogDataFilter) GetCreatedAtTo() *timestamppb.Timestamp
func (*LogDataFilter) GetEventDateFrom ¶
func (x *LogDataFilter) GetEventDateFrom() *timestamppb.Timestamp
func (*LogDataFilter) GetEventDateTo ¶
func (x *LogDataFilter) GetEventDateTo() *timestamppb.Timestamp
func (*LogDataFilter) GetId ¶
func (x *LogDataFilter) GetId() string
func (*LogDataFilter) GetLimit ¶
func (x *LogDataFilter) GetLimit() int32
func (*LogDataFilter) GetLogType ¶
func (x *LogDataFilter) GetLogType() LogType
func (*LogDataFilter) GetOffset ¶
func (x *LogDataFilter) GetOffset() int32
func (*LogDataFilter) GetPath ¶
func (x *LogDataFilter) GetPath() string
func (*LogDataFilter) GetSearchText ¶
func (x *LogDataFilter) GetSearchText() string
func (*LogDataFilter) GetServiceName ¶
func (x *LogDataFilter) GetServiceName() string
func (*LogDataFilter) GetSortField ¶
func (x *LogDataFilter) GetSortField() LogSortField
func (*LogDataFilter) GetSortType ¶
func (x *LogDataFilter) GetSortType() string
func (*LogDataFilter) GetUpdatedAtFrom ¶
func (x *LogDataFilter) GetUpdatedAtFrom() *timestamppb.Timestamp
func (*LogDataFilter) GetUpdatedAtTo ¶
func (x *LogDataFilter) GetUpdatedAtTo() *timestamppb.Timestamp
func (*LogDataFilter) GetUserId ¶
func (x *LogDataFilter) GetUserId() string
func (*LogDataFilter) ProtoMessage ¶
func (*LogDataFilter) ProtoMessage()
func (*LogDataFilter) ProtoReflect ¶
func (x *LogDataFilter) ProtoReflect() protoreflect.Message
func (*LogDataFilter) Reset ¶
func (x *LogDataFilter) Reset()
func (*LogDataFilter) String ¶
func (x *LogDataFilter) String() string
type LogDatas ¶
type LogDatas struct { LogDatas []*LogData `protobuf:"bytes,1,rep,name=logDatas,proto3" json:"logDatas,omitempty"` TotalRows int64 `protobuf:"varint,2,opt,name=totalRows,proto3" json:"totalRows,omitempty"` // contains filtered or unexported fields }
func (*LogDatas) Descriptor
deprecated
func (*LogDatas) GetLogDatas ¶
func (*LogDatas) GetTotalRows ¶
func (*LogDatas) ProtoMessage ¶
func (*LogDatas) ProtoMessage()
func (*LogDatas) ProtoReflect ¶
func (x *LogDatas) ProtoReflect() protoreflect.Message
type LogHeader ¶
type LogHeader struct { EventDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=eventDate,proto3" json:"eventDate,omitempty"` LogType LogType `protobuf:"varint,2,opt,name=logType,proto3,enum=LogType" json:"logType,omitempty"` ServiceName string `protobuf:"bytes,3,opt,name=serviceName,proto3" json:"serviceName,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` UserId string `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*LogHeader) Descriptor
deprecated
func (*LogHeader) GetEventDate ¶
func (x *LogHeader) GetEventDate() *timestamppb.Timestamp
func (*LogHeader) GetLogType ¶
func (*LogHeader) GetServiceName ¶
func (*LogHeader) ProtoMessage ¶
func (*LogHeader) ProtoMessage()
func (*LogHeader) ProtoReflect ¶
func (x *LogHeader) ProtoReflect() protoreflect.Message
type LogSortField ¶
type LogSortField int32
const ( LogSortField_LogSortFieldNONE LogSortField = 0 LogSortField_LogSortFieldId LogSortField = 1 LogSortField_LogSortFieldServiceName LogSortField = 2 LogSortField_LogSortFieldEventDate LogSortField = 3 LogSortField_LogSortFieldCreatedAt LogSortField = 4 LogSortField_LogSortFieldUpdatedAt LogSortField = 5 )
func (LogSortField) Descriptor ¶
func (LogSortField) Descriptor() protoreflect.EnumDescriptor
func (LogSortField) Enum ¶
func (x LogSortField) Enum() *LogSortField
func (LogSortField) EnumDescriptor
deprecated
func (LogSortField) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogSortField.Descriptor instead.
func (LogSortField) Number ¶
func (x LogSortField) Number() protoreflect.EnumNumber
func (LogSortField) String ¶
func (x LogSortField) String() string
func (LogSortField) Type ¶
func (LogSortField) Type() protoreflect.EnumType
type LogType ¶
type LogType int32
func (LogType) Descriptor ¶
func (LogType) Descriptor() protoreflect.EnumDescriptor
func (LogType) EnumDescriptor
deprecated
func (LogType) Number ¶
func (x LogType) Number() protoreflect.EnumNumber
func (LogType) Type ¶
func (LogType) Type() protoreflect.EnumType
type LoggingResult ¶
type LoggingResult struct {
// contains filtered or unexported fields
}
func (*LoggingResult) Descriptor
deprecated
func (*LoggingResult) Descriptor() ([]byte, []int)
Deprecated: Use LoggingResult.ProtoReflect.Descriptor instead.
func (*LoggingResult) ProtoMessage ¶
func (*LoggingResult) ProtoMessage()
func (*LoggingResult) ProtoReflect ¶
func (x *LoggingResult) ProtoReflect() protoreflect.Message
func (*LoggingResult) Reset ¶
func (x *LoggingResult) Reset()
func (*LoggingResult) String ¶
func (x *LoggingResult) String() string
type LoggingSvcClient ¶
type LoggingSvcClient interface { GetLogsByFilter(ctx context.Context, in *LogDataFilter, opts ...grpc.CallOption) (*LogDatas, error) Log(ctx context.Context, in *LogData, opts ...grpc.CallOption) (*LoggingResult, error) }
LoggingSvcClient is the client API for LoggingSvc 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 NewLoggingSvcClient ¶
func NewLoggingSvcClient(cc grpc.ClientConnInterface) LoggingSvcClient
type LoggingSvcServer ¶
type LoggingSvcServer interface { GetLogsByFilter(context.Context, *LogDataFilter) (*LogDatas, error) Log(context.Context, *LogData) (*LoggingResult, error) // contains filtered or unexported methods }
LoggingSvcServer is the server API for LoggingSvc service. All implementations must embed UnimplementedLoggingSvcServer for forward compatibility
type UnimplementedLoggingSvcServer ¶
type UnimplementedLoggingSvcServer struct { }
UnimplementedLoggingSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedLoggingSvcServer) GetLogsByFilter ¶
func (UnimplementedLoggingSvcServer) GetLogsByFilter(context.Context, *LogDataFilter) (*LogDatas, error)
func (UnimplementedLoggingSvcServer) Log ¶
func (UnimplementedLoggingSvcServer) Log(context.Context, *LogData) (*LoggingResult, error)
type UnsafeLoggingSvcServer ¶
type UnsafeLoggingSvcServer interface {
// contains filtered or unexported methods
}
UnsafeLoggingSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoggingSvcServer will result in compilation errors.