Documentation ¶
Index ¶
- Variables
- type TestEventData
- func (*TestEventData) Descriptor() ([]byte, []int)deprecated
- func (x *TestEventData) GetHello() string
- func (*TestEventData) ProtoMessage()
- func (x *TestEventData) ProtoReflect() protoreflect.Message
- func (x *TestEventData) Reset()
- func (x *TestEventData) String() string
- func (m *TestEventData) Validate() error
- func (m *TestEventData) ValidateAll() error
- type TestEventDataMultiError
- type TestEventDataValidationError
- func (e TestEventDataValidationError) Cause() error
- func (e TestEventDataValidationError) Error() string
- func (e TestEventDataValidationError) ErrorName() string
- func (e TestEventDataValidationError) Field() string
- func (e TestEventDataValidationError) Key() bool
- func (e TestEventDataValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_api_eventsourcing_eventdata_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TestEventData ¶
type TestEventData struct { Hello string `protobuf:"bytes,1,opt,name=hello,proto3" json:"hello,omitempty"` // contains filtered or unexported fields }
func (*TestEventData) Descriptor
deprecated
func (*TestEventData) Descriptor() ([]byte, []int)
Deprecated: Use TestEventData.ProtoReflect.Descriptor instead.
func (*TestEventData) GetHello ¶
func (x *TestEventData) GetHello() string
func (*TestEventData) ProtoMessage ¶
func (*TestEventData) ProtoMessage()
func (*TestEventData) ProtoReflect ¶
func (x *TestEventData) ProtoReflect() protoreflect.Message
func (*TestEventData) Reset ¶
func (x *TestEventData) Reset()
func (*TestEventData) String ¶
func (x *TestEventData) String() string
func (*TestEventData) Validate ¶ added in v0.3.0
func (m *TestEventData) Validate() error
Validate checks the field values on TestEventData 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 (*TestEventData) ValidateAll ¶ added in v0.3.0
func (m *TestEventData) ValidateAll() error
ValidateAll checks the field values on TestEventData 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 TestEventDataMultiError, or nil if none found.
type TestEventDataMultiError ¶ added in v0.3.0
type TestEventDataMultiError []error
TestEventDataMultiError is an error wrapping multiple validation errors returned by TestEventData.ValidateAll() if the designated constraints aren't met.
func (TestEventDataMultiError) AllErrors ¶ added in v0.3.0
func (m TestEventDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestEventDataMultiError) Error ¶ added in v0.3.0
func (m TestEventDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestEventDataValidationError ¶ added in v0.3.0
type TestEventDataValidationError struct {
// contains filtered or unexported fields
}
TestEventDataValidationError is the validation error returned by TestEventData.Validate if the designated constraints aren't met.
func (TestEventDataValidationError) Cause ¶ added in v0.3.0
func (e TestEventDataValidationError) Cause() error
Cause function returns cause value.
func (TestEventDataValidationError) Error ¶ added in v0.3.0
func (e TestEventDataValidationError) Error() string
Error satisfies the builtin error interface
func (TestEventDataValidationError) ErrorName ¶ added in v0.3.0
func (e TestEventDataValidationError) ErrorName() string
ErrorName returns error name.
func (TestEventDataValidationError) Field ¶ added in v0.3.0
func (e TestEventDataValidationError) Field() string
Field function returns field value.
func (TestEventDataValidationError) Key ¶ added in v0.3.0
func (e TestEventDataValidationError) Key() bool
Key function returns key value.
func (TestEventDataValidationError) Reason ¶ added in v0.3.0
func (e TestEventDataValidationError) Reason() string
Reason function returns reason value.