event

package
v17.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 17 Imported by: 0

README

Events

This package holds event payload type definitions. Types can be used in public APIs and internally.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_event_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GitPushEvent

type GitPushEvent struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*GitPushEvent) Descriptor deprecated

func (*GitPushEvent) Descriptor() ([]byte, []int)

Deprecated: Use GitPushEvent.ProtoReflect.Descriptor instead.

func (*GitPushEvent) GetProject

func (x *GitPushEvent) GetProject() *Project

func (*GitPushEvent) ProtoMessage

func (*GitPushEvent) ProtoMessage()

func (*GitPushEvent) ProtoReflect

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

func (*GitPushEvent) Reset

func (x *GitPushEvent) Reset()

func (*GitPushEvent) String

func (x *GitPushEvent) String() string

func (*GitPushEvent) Validate

func (m *GitPushEvent) Validate() error

Validate checks the field values on GitPushEvent 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 (*GitPushEvent) ValidateAll

func (m *GitPushEvent) ValidateAll() error

ValidateAll checks the field values on GitPushEvent 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 GitPushEventMultiError, or nil if none found.

type GitPushEventMultiError

type GitPushEventMultiError []error

GitPushEventMultiError is an error wrapping multiple validation errors returned by GitPushEvent.ValidateAll() if the designated constraints aren't met.

func (GitPushEventMultiError) AllErrors

func (m GitPushEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitPushEventMultiError) Error

func (m GitPushEventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GitPushEventValidationError

type GitPushEventValidationError struct {
	// contains filtered or unexported fields
}

GitPushEventValidationError is the validation error returned by GitPushEvent.Validate if the designated constraints aren't met.

func (GitPushEventValidationError) Cause

Cause function returns cause value.

func (GitPushEventValidationError) Error

Error satisfies the builtin error interface

func (GitPushEventValidationError) ErrorName

func (e GitPushEventValidationError) ErrorName() string

ErrorName returns error name.

func (GitPushEventValidationError) Field

Field function returns field value.

func (GitPushEventValidationError) Key

Key function returns key value.

func (GitPushEventValidationError) Reason

Reason function returns reason value.

type Project

type Project struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FullPath string `protobuf:"bytes,2,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Project) Descriptor deprecated

func (*Project) Descriptor() ([]byte, []int)

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetFullPath

func (x *Project) GetFullPath() string

func (*Project) GetId

func (x *Project) GetId() int64

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

func (*Project) Validate

func (m *Project) Validate() error

Validate checks the field values on Project 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 (*Project) ValidateAll

func (m *Project) ValidateAll() error

ValidateAll checks the field values on Project 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 ProjectMultiError, or nil if none found.

type ProjectMultiError

type ProjectMultiError []error

ProjectMultiError is an error wrapping multiple validation errors returned by Project.ValidateAll() if the designated constraints aren't met.

func (ProjectMultiError) AllErrors

func (m ProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectMultiError) Error

func (m ProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProjectValidationError

type ProjectValidationError struct {
	// contains filtered or unexported fields
}

ProjectValidationError is the validation error returned by Project.Validate if the designated constraints aren't met.

func (ProjectValidationError) Cause

func (e ProjectValidationError) Cause() error

Cause function returns cause value.

func (ProjectValidationError) Error

func (e ProjectValidationError) Error() string

Error satisfies the builtin error interface

func (ProjectValidationError) ErrorName

func (e ProjectValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectValidationError) Field

func (e ProjectValidationError) Field() string

Field function returns field value.

func (ProjectValidationError) Key

func (e ProjectValidationError) Key() bool

Key function returns key value.

func (ProjectValidationError) Reason

func (e ProjectValidationError) 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