Versions in this module Expand all Collapse all v0 v0.1.2 Nov 16, 2023 v0.1.1 Jun 26, 2023 Changes in this version + const LogService_CreateLog_FullMethodName + const LogService_GetLogList_FullMethodName + const OperationLogServiceCreateLog + const OperationLogServiceGetLogList + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_log_v1_error_reason_proto protoreflect.FileDescriptor + var File_log_v1_log_proto protoreflect.FileDescriptor + var LogService_ServiceDesc = grpc.ServiceDesc + func ErrorBadRequest(format string, args ...interface{}) *errors.Error + func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error + func ErrorSystemError(format string, args ...interface{}) *errors.Error + func IsBadRequest(err error) bool + func IsRecordNotFound(err error) bool + func IsSystemError(err error) bool + func RegisterLogServiceHTTPServer(s *http.Server, srv LogServiceHTTPServer) + func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer) + type CheckResponse struct + Success bool + func (*CheckResponse) Descriptor() ([]byte, []int) + func (*CheckResponse) ProtoMessage() + func (m *CheckResponse) Validate() error + func (m *CheckResponse) ValidateAll() error + func (x *CheckResponse) GetSuccess() bool + func (x *CheckResponse) ProtoReflect() protoreflect.Message + func (x *CheckResponse) Reset() + func (x *CheckResponse) String() string + type CheckResponseMultiError []error + func (m CheckResponseMultiError) AllErrors() []error + func (m CheckResponseMultiError) Error() string + type CheckResponseValidationError struct + func (e CheckResponseValidationError) Cause() error + func (e CheckResponseValidationError) Error() string + func (e CheckResponseValidationError) ErrorName() string + func (e CheckResponseValidationError) Field() string + func (e CheckResponseValidationError) Key() bool + func (e CheckResponseValidationError) Reason() string + type CreateLogReq struct + Code string + Component string + CreatedAt string + Ip string + Latency string + Method string + Name string + Operation string + Path string + Reason string + Request string + Role string + TraceId string + UserId string + Username string + func (*CreateLogReq) Descriptor() ([]byte, []int) + func (*CreateLogReq) ProtoMessage() + func (m *CreateLogReq) Validate() error + func (m *CreateLogReq) ValidateAll() error + func (x *CreateLogReq) GetCode() string + func (x *CreateLogReq) GetComponent() string + func (x *CreateLogReq) GetCreatedAt() string + func (x *CreateLogReq) GetIp() string + func (x *CreateLogReq) GetLatency() string + func (x *CreateLogReq) GetMethod() string + func (x *CreateLogReq) GetName() string + func (x *CreateLogReq) GetOperation() string + func (x *CreateLogReq) GetPath() string + func (x *CreateLogReq) GetReason() string + func (x *CreateLogReq) GetRequest() string + func (x *CreateLogReq) GetRole() string + func (x *CreateLogReq) GetTraceId() string + func (x *CreateLogReq) GetUserId() string + func (x *CreateLogReq) GetUsername() string + func (x *CreateLogReq) ProtoReflect() protoreflect.Message + func (x *CreateLogReq) Reset() + func (x *CreateLogReq) String() string + type CreateLogReqMultiError []error + func (m CreateLogReqMultiError) AllErrors() []error + func (m CreateLogReqMultiError) Error() string + type CreateLogReqValidationError struct + func (e CreateLogReqValidationError) Cause() error + func (e CreateLogReqValidationError) Error() string + func (e CreateLogReqValidationError) ErrorName() string + func (e CreateLogReqValidationError) Field() string + func (e CreateLogReqValidationError) Key() bool + func (e CreateLogReqValidationError) Reason() string + type ErrorReason int32 + const ErrorReason_BAD_REQUEST + const ErrorReason_RECORD_NOT_FOUND + const ErrorReason_SYSTEM_ERROR + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GetLogListPageRes struct + List []*Log + Total int64 + func (*GetLogListPageRes) Descriptor() ([]byte, []int) + func (*GetLogListPageRes) ProtoMessage() + func (m *GetLogListPageRes) Validate() error + func (m *GetLogListPageRes) ValidateAll() error + func (x *GetLogListPageRes) GetList() []*Log + func (x *GetLogListPageRes) GetTotal() int64 + func (x *GetLogListPageRes) ProtoReflect() protoreflect.Message + func (x *GetLogListPageRes) Reset() + func (x *GetLogListPageRes) String() string + type GetLogListPageResMultiError []error + func (m GetLogListPageResMultiError) AllErrors() []error + func (m GetLogListPageResMultiError) Error() string + type GetLogListPageResValidationError struct + func (e GetLogListPageResValidationError) Cause() error + func (e GetLogListPageResValidationError) Error() string + func (e GetLogListPageResValidationError) ErrorName() string + func (e GetLogListPageResValidationError) Field() string + func (e GetLogListPageResValidationError) Key() bool + func (e GetLogListPageResValidationError) Reason() string + type GetLogListReq struct + Ip string + Name string + Operation string + Page int64 + PageSize int64 + Role string + TraceId string + UserId string + Username string + func (*GetLogListReq) Descriptor() ([]byte, []int) + func (*GetLogListReq) ProtoMessage() + func (m *GetLogListReq) Validate() error + func (m *GetLogListReq) ValidateAll() error + func (x *GetLogListReq) GetIp() string + func (x *GetLogListReq) GetName() string + func (x *GetLogListReq) GetOperation() string + func (x *GetLogListReq) GetPage() int64 + func (x *GetLogListReq) GetPageSize() int64 + func (x *GetLogListReq) GetRole() string + func (x *GetLogListReq) GetTraceId() string + func (x *GetLogListReq) GetUserId() string + func (x *GetLogListReq) GetUsername() string + func (x *GetLogListReq) ProtoReflect() protoreflect.Message + func (x *GetLogListReq) Reset() + func (x *GetLogListReq) String() string + type GetLogListReqMultiError []error + func (m GetLogListReqMultiError) AllErrors() []error + func (m GetLogListReqMultiError) Error() string + type GetLogListReqValidationError struct + func (e GetLogListReqValidationError) Cause() error + func (e GetLogListReqValidationError) Error() string + func (e GetLogListReqValidationError) ErrorName() string + func (e GetLogListReqValidationError) Field() string + func (e GetLogListReqValidationError) Key() bool + func (e GetLogListReqValidationError) Reason() string + type Log struct + Code string + Component string + CreatedAt string + Id int64 + Ip string + Latency string + Method string + Name string + Operation string + Path string + Reason string + Request string + Role string + TraceId string + UserId string + Username string + func (*Log) Descriptor() ([]byte, []int) + func (*Log) ProtoMessage() + func (m *Log) Validate() error + func (m *Log) ValidateAll() error + func (x *Log) GetCode() string + func (x *Log) GetComponent() string + func (x *Log) GetCreatedAt() string + func (x *Log) GetId() int64 + func (x *Log) GetIp() string + func (x *Log) GetLatency() string + func (x *Log) GetMethod() string + func (x *Log) GetName() string + func (x *Log) GetOperation() string + func (x *Log) GetPath() string + func (x *Log) GetReason() string + func (x *Log) GetRequest() string + func (x *Log) GetRole() string + func (x *Log) GetTraceId() string + func (x *Log) GetUserId() string + func (x *Log) GetUsername() string + func (x *Log) ProtoReflect() protoreflect.Message + func (x *Log) Reset() + func (x *Log) String() string + type LogMultiError []error + func (m LogMultiError) AllErrors() []error + func (m LogMultiError) Error() string + type LogServiceClient interface + CreateLog func(ctx context.Context, in *CreateLogReq, opts ...grpc.CallOption) (*CheckResponse, error) + GetLogList func(ctx context.Context, in *GetLogListReq, opts ...grpc.CallOption) (*GetLogListPageRes, error) + func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient + type LogServiceHTTPClient interface + CreateLog func(ctx context.Context, req *CreateLogReq, opts ...http.CallOption) (rsp *CheckResponse, err error) + GetLogList func(ctx context.Context, req *GetLogListReq, opts ...http.CallOption) (rsp *GetLogListPageRes, err error) + func NewLogServiceHTTPClient(client *http.Client) LogServiceHTTPClient + type LogServiceHTTPClientImpl struct + func (c *LogServiceHTTPClientImpl) CreateLog(ctx context.Context, in *CreateLogReq, opts ...http.CallOption) (*CheckResponse, error) + func (c *LogServiceHTTPClientImpl) GetLogList(ctx context.Context, in *GetLogListReq, opts ...http.CallOption) (*GetLogListPageRes, error) + type LogServiceHTTPServer interface + CreateLog func(context.Context, *CreateLogReq) (*CheckResponse, error) + GetLogList func(context.Context, *GetLogListReq) (*GetLogListPageRes, error) + type LogServiceServer interface + CreateLog func(context.Context, *CreateLogReq) (*CheckResponse, error) + GetLogList func(context.Context, *GetLogListReq) (*GetLogListPageRes, error) + type LogValidationError struct + func (e LogValidationError) Cause() error + func (e LogValidationError) Error() string + func (e LogValidationError) ErrorName() string + func (e LogValidationError) Field() string + func (e LogValidationError) Key() bool + func (e LogValidationError) Reason() string + type UnimplementedLogServiceServer struct + func (UnimplementedLogServiceServer) CreateLog(context.Context, *CreateLogReq) (*CheckResponse, error) + func (UnimplementedLogServiceServer) GetLogList(context.Context, *GetLogListReq) (*GetLogListPageRes, error) + type UnsafeLogServiceServer interface