Versions in this module Expand all Collapse all v0 v0.0.9 May 29, 2023 Changes in this version + var ErrorCode_name = map[int32]string + var ErrorCode_value = map[string]int32 + var File_errors_errors_proto protoreflect.FileDescriptor + type Error struct + ErrorCode ErrorCode + Message string + Reason string + func ErrorOK() *Error + func NewErrorWithCode(code ErrorCode) *Error + func NewErrorWithError(err error) *Error + func (*Error) Descriptor() ([]byte, []int) + func (*Error) ProtoMessage() + func (m *Error) Validate() error + func (m *Error) ValidateAll() error + func (x *Error) Err() error + func (x *Error) Error() string + func (x *Error) GetErrorCode() ErrorCode + func (x *Error) GetMessage() string + func (x *Error) GetReason() string + func (x *Error) ProtoReflect() protoreflect.Message + func (x *Error) Reset() + func (x *Error) String() string + func (x *Error) Success() bool + func (x *Error) WithError(err error) *Error + func (x *Error) WithMessage(msg string) *Error + type ErrorCode int32 + const ErrorCode_CacheError + const ErrorCode_DBError + const ErrorCode_FriendRequestNotExist + const ErrorCode_FriendRequestStatusError + const ErrorCode_GroupExist + const ErrorCode_GroupLimitExceed + const ErrorCode_GroupNotExist + const ErrorCode_InternalError + const ErrorCode_InvalidParams + const ErrorCode_InvalidUpdateRelationAction + const ErrorCode_InvalidUsernameOrPassword + const ErrorCode_NotGroupMember + const ErrorCode_NotGroupOwner + const ErrorCode_OK + const ErrorCode_RelationExist + const ErrorCode_RelationNotExist + const ErrorCode_UserExist + const ErrorCode_UserNotExist + const ErrorCode_UserNotOnline + func (ErrorCode) Descriptor() protoreflect.EnumDescriptor + func (ErrorCode) EnumDescriptor() ([]byte, []int) + func (ErrorCode) Type() protoreflect.EnumType + func (x ErrorCode) Enum() *ErrorCode + func (x ErrorCode) Err() error + func (x ErrorCode) Err2() *Error + func (x ErrorCode) Error() string + func (x ErrorCode) Number() protoreflect.EnumNumber + func (x ErrorCode) String() string + func (x ErrorCode) WithError(err error) *Error + func (x ErrorCode) WithMessage(msg string) *Error + type ErrorMultiError []error + func (m ErrorMultiError) AllErrors() []error + func (m ErrorMultiError) Error() string + type ErrorValidationError struct + func (e ErrorValidationError) Cause() error + func (e ErrorValidationError) Error() string + func (e ErrorValidationError) ErrorName() string + func (e ErrorValidationError) Field() string + func (e ErrorValidationError) Key() bool + func (e ErrorValidationError) Reason() string