v1

package
v0.0.0-...-a76f623 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use DemoEvent.ProtoReflect.Descriptor instead.

func (*DemoEvent) ProtoMessage

func (*DemoEvent) ProtoMessage()

func (*DemoEvent) ProtoReflect

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

func (*DemoEvent) Reset

func (x *DemoEvent) Reset()

func (*DemoEvent) String

func (x *DemoEvent) String() string

func (*DemoEvent) Validate

func (m *DemoEvent) Validate() error

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

func (m *DemoEvent) ValidateAll() error

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

Key function returns key value.

func (DemoEventValidationError) Reason

func (e DemoEventValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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