Documentation ¶
Index ¶
- Variables
- func ErrorPageNotFound(format string, args ...interface{}) *errors.Error
- func IsPageNotFound(err error) bool
- type CreateBlockRequest
- func (*CreateBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBlockRequest) GetData() string
- func (*CreateBlockRequest) ProtoMessage()
- func (x *CreateBlockRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBlockRequest) Reset()
- func (x *CreateBlockRequest) String() string
- func (m *CreateBlockRequest) Validate() error
- func (m *CreateBlockRequest) ValidateAll() error
- type CreateBlockRequestMultiError
- type CreateBlockRequestValidationError
- func (e CreateBlockRequestValidationError) Cause() error
- func (e CreateBlockRequestValidationError) Error() string
- func (e CreateBlockRequestValidationError) ErrorName() string
- func (e CreateBlockRequestValidationError) Field() string
- func (e CreateBlockRequestValidationError) Key() bool
- func (e CreateBlockRequestValidationError) Reason() string
- type CreatePeerRequest
- func (*CreatePeerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePeerRequest) GetPeer() string
- func (*CreatePeerRequest) ProtoMessage()
- func (x *CreatePeerRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePeerRequest) Reset()
- func (x *CreatePeerRequest) String() string
- func (m *CreatePeerRequest) Validate() error
- func (m *CreatePeerRequest) ValidateAll() error
- type CreatePeerRequestMultiError
- type CreatePeerRequestValidationError
- func (e CreatePeerRequestValidationError) Cause() error
- func (e CreatePeerRequestValidationError) Error() string
- func (e CreatePeerRequestValidationError) ErrorName() string
- func (e CreatePeerRequestValidationError) Field() string
- func (e CreatePeerRequestValidationError) Key() bool
- func (e CreatePeerRequestValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "PageNotFound", } ErrorReason_value = map[string]int32{ "PageNotFound": 0, } )
Enum value maps for ErrorReason.
var File_toyblc_v1_errors_proto protoreflect.FileDescriptor
var File_toyblc_v1_toyblc_proto protoreflect.FileDescriptor
Functions ¶
func ErrorPageNotFound ¶
页面未找到错误,请求的页面不存在
Types ¶
type CreateBlockRequest ¶
type CreateBlockRequest struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateBlockRequest) Descriptor
deprecated
func (*CreateBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBlockRequest.ProtoReflect.Descriptor instead.
func (*CreateBlockRequest) GetData ¶
func (x *CreateBlockRequest) GetData() string
func (*CreateBlockRequest) ProtoMessage ¶
func (*CreateBlockRequest) ProtoMessage()
func (*CreateBlockRequest) ProtoReflect ¶
func (x *CreateBlockRequest) ProtoReflect() protoreflect.Message
func (*CreateBlockRequest) Reset ¶
func (x *CreateBlockRequest) Reset()
func (*CreateBlockRequest) String ¶
func (x *CreateBlockRequest) String() string
func (*CreateBlockRequest) Validate ¶
func (m *CreateBlockRequest) Validate() error
Validate checks the field values on CreateBlockRequest 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 (*CreateBlockRequest) ValidateAll ¶
func (m *CreateBlockRequest) ValidateAll() error
ValidateAll checks the field values on CreateBlockRequest 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 CreateBlockRequestMultiError, or nil if none found.
type CreateBlockRequestMultiError ¶
type CreateBlockRequestMultiError []error
CreateBlockRequestMultiError is an error wrapping multiple validation errors returned by CreateBlockRequest.ValidateAll() if the designated constraints aren't met.
func (CreateBlockRequestMultiError) AllErrors ¶
func (m CreateBlockRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateBlockRequestMultiError) Error ¶
func (m CreateBlockRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateBlockRequestValidationError ¶
type CreateBlockRequestValidationError struct {
// contains filtered or unexported fields
}
CreateBlockRequestValidationError is the validation error returned by CreateBlockRequest.Validate if the designated constraints aren't met.
func (CreateBlockRequestValidationError) Cause ¶
func (e CreateBlockRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateBlockRequestValidationError) Error ¶
func (e CreateBlockRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateBlockRequestValidationError) ErrorName ¶
func (e CreateBlockRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateBlockRequestValidationError) Field ¶
func (e CreateBlockRequestValidationError) Field() string
Field function returns field value.
func (CreateBlockRequestValidationError) Key ¶
func (e CreateBlockRequestValidationError) Key() bool
Key function returns key value.
func (CreateBlockRequestValidationError) Reason ¶
func (e CreateBlockRequestValidationError) Reason() string
Reason function returns reason value.
type CreatePeerRequest ¶
type CreatePeerRequest struct { Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` // contains filtered or unexported fields }
func (*CreatePeerRequest) Descriptor
deprecated
func (*CreatePeerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePeerRequest.ProtoReflect.Descriptor instead.
func (*CreatePeerRequest) GetPeer ¶
func (x *CreatePeerRequest) GetPeer() string
func (*CreatePeerRequest) ProtoMessage ¶
func (*CreatePeerRequest) ProtoMessage()
func (*CreatePeerRequest) ProtoReflect ¶
func (x *CreatePeerRequest) ProtoReflect() protoreflect.Message
func (*CreatePeerRequest) Reset ¶
func (x *CreatePeerRequest) Reset()
func (*CreatePeerRequest) String ¶
func (x *CreatePeerRequest) String() string
func (*CreatePeerRequest) Validate ¶
func (m *CreatePeerRequest) Validate() error
Validate checks the field values on CreatePeerRequest 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 (*CreatePeerRequest) ValidateAll ¶
func (m *CreatePeerRequest) ValidateAll() error
ValidateAll checks the field values on CreatePeerRequest 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 CreatePeerRequestMultiError, or nil if none found.
type CreatePeerRequestMultiError ¶
type CreatePeerRequestMultiError []error
CreatePeerRequestMultiError is an error wrapping multiple validation errors returned by CreatePeerRequest.ValidateAll() if the designated constraints aren't met.
func (CreatePeerRequestMultiError) AllErrors ¶
func (m CreatePeerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreatePeerRequestMultiError) Error ¶
func (m CreatePeerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreatePeerRequestValidationError ¶
type CreatePeerRequestValidationError struct {
// contains filtered or unexported fields
}
CreatePeerRequestValidationError is the validation error returned by CreatePeerRequest.Validate if the designated constraints aren't met.
func (CreatePeerRequestValidationError) Cause ¶
func (e CreatePeerRequestValidationError) Cause() error
Cause function returns cause value.
func (CreatePeerRequestValidationError) Error ¶
func (e CreatePeerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePeerRequestValidationError) ErrorName ¶
func (e CreatePeerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePeerRequestValidationError) Field ¶
func (e CreatePeerRequestValidationError) Field() string
Field function returns field value.
func (CreatePeerRequestValidationError) Key ¶
func (e CreatePeerRequestValidationError) Key() bool
Key function returns key value.
func (CreatePeerRequestValidationError) Reason ¶
func (e CreatePeerRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( // 页面未找到错误,请求的页面不存在 ErrorReason_PageNotFound ErrorReason = 0 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType