v1

package
v0.0.0-...-b9ebfcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_any_v1_any_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OperationRecord

type OperationRecord struct {
	Uid      string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Ip       string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Method   string `protobuf:"bytes,3,opt,name=Method,proto3" json:"Method,omitempty"`
	Path     string `protobuf:"bytes,4,opt,name=Path,proto3" json:"Path,omitempty"`
	Agent    string `protobuf:"bytes,5,opt,name=Agent,proto3" json:"Agent,omitempty"`
	Status   int32  `protobuf:"varint,6,opt,name=Status,proto3" json:"Status,omitempty"`
	Latency  string `protobuf:"bytes,7,opt,name=Latency,proto3" json:"Latency,omitempty"`
	ReqBody  string `protobuf:"bytes,8,opt,name=ReqBody,proto3" json:"ReqBody,omitempty"`
	RespBody string `protobuf:"bytes,9,opt,name=RespBody,proto3" json:"RespBody,omitempty"`
	DateTime string `protobuf:"bytes,10,opt,name=DateTime,proto3" json:"DateTime,omitempty"`
	TraceID  string `protobuf:"bytes,11,opt,name=TraceID,proto3" json:"TraceID,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationRecord) Descriptor deprecated

func (*OperationRecord) Descriptor() ([]byte, []int)

Deprecated: Use OperationRecord.ProtoReflect.Descriptor instead.

func (*OperationRecord) GetAgent

func (x *OperationRecord) GetAgent() string

func (*OperationRecord) GetDateTime

func (x *OperationRecord) GetDateTime() string

func (*OperationRecord) GetIp

func (x *OperationRecord) GetIp() string

func (*OperationRecord) GetLatency

func (x *OperationRecord) GetLatency() string

func (*OperationRecord) GetMethod

func (x *OperationRecord) GetMethod() string

func (*OperationRecord) GetPath

func (x *OperationRecord) GetPath() string

func (*OperationRecord) GetReqBody

func (x *OperationRecord) GetReqBody() string

func (*OperationRecord) GetRespBody

func (x *OperationRecord) GetRespBody() string

func (*OperationRecord) GetStatus

func (x *OperationRecord) GetStatus() int32

func (*OperationRecord) GetTraceID

func (x *OperationRecord) GetTraceID() string

func (*OperationRecord) GetUid

func (x *OperationRecord) GetUid() string

func (*OperationRecord) ProtoMessage

func (*OperationRecord) ProtoMessage()

func (*OperationRecord) ProtoReflect

func (x *OperationRecord) ProtoReflect() protoreflect.Message

func (*OperationRecord) Reset

func (x *OperationRecord) Reset()

func (*OperationRecord) String

func (x *OperationRecord) String() string

func (*OperationRecord) Validate

func (m *OperationRecord) Validate() error

Validate checks the field values on OperationRecord with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OperationRecord) ValidateAll

func (m *OperationRecord) ValidateAll() error

ValidateAll checks the field values on OperationRecord with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OperationRecordMultiError, or nil if none found.

type OperationRecordMultiError

type OperationRecordMultiError []error

OperationRecordMultiError is an error wrapping multiple validation errors returned by OperationRecord.ValidateAll() if the designated constraints aren't met.

func (OperationRecordMultiError) AllErrors

func (m OperationRecordMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OperationRecordMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type OperationRecordValidationError

type OperationRecordValidationError struct {
	// contains filtered or unexported fields
}

OperationRecordValidationError is the validation error returned by OperationRecord.Validate if the designated constraints aren't met.

func (OperationRecordValidationError) Cause

Cause function returns cause value.

func (OperationRecordValidationError) Error

Error satisfies the builtin error interface

func (OperationRecordValidationError) ErrorName

func (e OperationRecordValidationError) ErrorName() string

ErrorName returns error name.

func (OperationRecordValidationError) Field

Field function returns field value.

func (OperationRecordValidationError) Key

Key function returns key value.

func (OperationRecordValidationError) Reason

Reason function returns reason value.

type PageRequest

type PageRequest struct {
	Page     int32 `json:"page"`
	PageSize int32 `json:"pageSize"`
}

type PageResponse

type PageResponse struct {
	Page     int32 `json:"page"`
	PageSize int32 `json:"pageSize"`
	Total    int64 `json:"total"`
	List     any   `json:"list"`
}

type Warn

type Warn struct {
	DateTime string `json:"DateTime"`
	TraceID  string `json:"traceID"`
	Error    string `json:"error"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL