Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_event_v1_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DemoEvent ¶
type DemoEvent struct {
// contains filtered or unexported fields
}
func (*DemoEvent) Descriptor
deprecated
func (*DemoEvent) ProtoMessage ¶
func (*DemoEvent) ProtoMessage()
func (*DemoEvent) ProtoReflect ¶
func (x *DemoEvent) ProtoReflect() protoreflect.Message
func (*DemoEvent) Validate ¶
Validate checks the field values on DemoEvent 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 (*DemoEvent) ValidateAll ¶
ValidateAll checks the field values on DemoEvent 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 DemoEventMultiError, or nil if none found.
type DemoEventMultiError ¶
type DemoEventMultiError []error
DemoEventMultiError is an error wrapping multiple validation errors returned by DemoEvent.ValidateAll() if the designated constraints aren't met.
func (DemoEventMultiError) AllErrors ¶
func (m DemoEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DemoEventMultiError) Error ¶
func (m DemoEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DemoEventValidationError ¶
type DemoEventValidationError struct {
// contains filtered or unexported fields
}
DemoEventValidationError is the validation error returned by DemoEvent.Validate if the designated constraints aren't met.
func (DemoEventValidationError) Cause ¶
func (e DemoEventValidationError) Cause() error
Cause function returns cause value.
func (DemoEventValidationError) Error ¶
func (e DemoEventValidationError) Error() string
Error satisfies the builtin error interface
func (DemoEventValidationError) ErrorName ¶
func (e DemoEventValidationError) ErrorName() string
ErrorName returns error name.
func (DemoEventValidationError) Field ¶
func (e DemoEventValidationError) Field() string
Field function returns field value.
func (DemoEventValidationError) Key ¶
func (e DemoEventValidationError) Key() bool
Key function returns key value.
func (DemoEventValidationError) Reason ¶
func (e DemoEventValidationError) Reason() string
Reason function returns reason value.