base

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_base_base_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() string

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

func (*Error) Validate

func (m *Error) Validate() error

Validate checks the field values on Error 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 (*Error) ValidateAll

func (m *Error) ValidateAll() error

ValidateAll checks the field values on Error 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 ErrorMultiError, or nil if none found.

type ErrorMultiError

type ErrorMultiError []error

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

func (ErrorMultiError) AllErrors

func (m ErrorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ErrorMultiError) Error

func (m ErrorMultiError) Error() string

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

type ErrorValidationError

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

ErrorValidationError is the validation error returned by Error.Validate if the designated constraints aren't met.

func (ErrorValidationError) Cause

func (e ErrorValidationError) Cause() error

Cause function returns cause value.

func (ErrorValidationError) Error

func (e ErrorValidationError) Error() string

Error satisfies the builtin error interface

func (ErrorValidationError) ErrorName

func (e ErrorValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorValidationError) Field

func (e ErrorValidationError) Field() string

Field function returns field value.

func (ErrorValidationError) Key

func (e ErrorValidationError) Key() bool

Key function returns key value.

func (ErrorValidationError) Reason

func (e ErrorValidationError) Reason() string

Reason function returns reason value.

type OperateReply

type OperateReply struct {
	Response *OperateResponse `protobuf:"bytes,1,opt,name=Response,proto3" json:"Response,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the greetings

func (*OperateReply) Descriptor deprecated

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

Deprecated: Use OperateReply.ProtoReflect.Descriptor instead.

func (*OperateReply) GetResponse

func (x *OperateReply) GetResponse() *OperateResponse

func (*OperateReply) ProtoMessage

func (*OperateReply) ProtoMessage()

func (*OperateReply) ProtoReflect

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

func (*OperateReply) Reset

func (x *OperateReply) Reset()

func (*OperateReply) String

func (x *OperateReply) String() string

func (*OperateReply) Validate

func (m *OperateReply) Validate() error

Validate checks the field values on OperateReply 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 (*OperateReply) ValidateAll

func (m *OperateReply) ValidateAll() error

ValidateAll checks the field values on OperateReply 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 OperateReplyMultiError, or nil if none found.

type OperateReplyMultiError

type OperateReplyMultiError []error

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

func (OperateReplyMultiError) AllErrors

func (m OperateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OperateReplyMultiError) Error

func (m OperateReplyMultiError) Error() string

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

type OperateReplyValidationError

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

OperateReplyValidationError is the validation error returned by OperateReply.Validate if the designated constraints aren't met.

func (OperateReplyValidationError) Cause

Cause function returns cause value.

func (OperateReplyValidationError) Error

Error satisfies the builtin error interface

func (OperateReplyValidationError) ErrorName

func (e OperateReplyValidationError) ErrorName() string

ErrorName returns error name.

func (OperateReplyValidationError) Field

Field function returns field value.

func (OperateReplyValidationError) Key

Key function returns key value.

func (OperateReplyValidationError) Reason

Reason function returns reason value.

type OperateRequest

type OperateRequest struct {
	RequestID string `protobuf:"bytes,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"`
	// contains filtered or unexported fields
}

func (*OperateRequest) Descriptor deprecated

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

Deprecated: Use OperateRequest.ProtoReflect.Descriptor instead.

func (*OperateRequest) GetRequestID

func (x *OperateRequest) GetRequestID() string

func (*OperateRequest) ProtoMessage

func (*OperateRequest) ProtoMessage()

func (*OperateRequest) ProtoReflect

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

func (*OperateRequest) Reset

func (x *OperateRequest) Reset()

func (*OperateRequest) String

func (x *OperateRequest) String() string

func (*OperateRequest) Validate

func (m *OperateRequest) Validate() error

Validate checks the field values on OperateRequest 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 (*OperateRequest) ValidateAll

func (m *OperateRequest) ValidateAll() error

ValidateAll checks the field values on OperateRequest 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 OperateRequestMultiError, or nil if none found.

type OperateRequestMultiError

type OperateRequestMultiError []error

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

func (OperateRequestMultiError) AllErrors

func (m OperateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OperateRequestMultiError) Error

func (m OperateRequestMultiError) Error() string

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

type OperateRequestValidationError

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

OperateRequestValidationError is the validation error returned by OperateRequest.Validate if the designated constraints aren't met.

func (OperateRequestValidationError) Cause

Cause function returns cause value.

func (OperateRequestValidationError) Error

Error satisfies the builtin error interface

func (OperateRequestValidationError) ErrorName

func (e OperateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (OperateRequestValidationError) Field

Field function returns field value.

func (OperateRequestValidationError) Key

Key function returns key value.

func (OperateRequestValidationError) Reason

Reason function returns reason value.

type OperateResponse

type OperateResponse struct {
	RequestID string `protobuf:"bytes,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"` // RequestId 所有的POST请求的Response携带此字段
	Error     *Error `protobuf:"bytes,2,opt,name=Error,proto3,oneof" json:"Error,omitempty"`
	Data      string `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*OperateResponse) Descriptor deprecated

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

Deprecated: Use OperateResponse.ProtoReflect.Descriptor instead.

func (*OperateResponse) GetData

func (x *OperateResponse) GetData() string

func (*OperateResponse) GetError

func (x *OperateResponse) GetError() *Error

func (*OperateResponse) GetRequestID

func (x *OperateResponse) GetRequestID() string

func (*OperateResponse) ProtoMessage

func (*OperateResponse) ProtoMessage()

func (*OperateResponse) ProtoReflect

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

func (*OperateResponse) Reset

func (x *OperateResponse) Reset()

func (*OperateResponse) String

func (x *OperateResponse) String() string

func (*OperateResponse) Validate

func (m *OperateResponse) Validate() error

Validate checks the field values on OperateResponse 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 (*OperateResponse) ValidateAll

func (m *OperateResponse) ValidateAll() error

ValidateAll checks the field values on OperateResponse 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 OperateResponseMultiError, or nil if none found.

type OperateResponseMultiError

type OperateResponseMultiError []error

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

func (OperateResponseMultiError) AllErrors

func (m OperateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OperateResponseMultiError) Error

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

type OperateResponseValidationError

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

OperateResponseValidationError is the validation error returned by OperateResponse.Validate if the designated constraints aren't met.

func (OperateResponseValidationError) Cause

Cause function returns cause value.

func (OperateResponseValidationError) Error

Error satisfies the builtin error interface

func (OperateResponseValidationError) ErrorName

func (e OperateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (OperateResponseValidationError) Field

Field function returns field value.

func (OperateResponseValidationError) Key

Key function returns key value.

func (OperateResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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