Documentation
¶
Index ¶
- Variables
- type Access
- func (*Access) Descriptor() ([]byte, []int)deprecated
- func (x *Access) GetJobs() []*JobAccess
- func (x *Access) GetQualifications() []*QualificationAccess
- func (x *Access) GetUsers() []*UserAccess
- func (x *Access) IsEmpty() bool
- func (*Access) ProtoMessage()
- func (x *Access) ProtoReflect() protoreflect.Message
- func (x *Access) Reset()
- func (m *Access) Sanitize() error
- func (x *Access) String() string
- func (m *Access) Validate() error
- func (m *Access) ValidateAll() error
- type AccessLevel
- func (AccessLevel) Descriptor() protoreflect.EnumDescriptor
- func (x AccessLevel) Enum() *AccessLevel
- func (AccessLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccessLevel) Number() protoreflect.EnumNumber
- func (x AccessLevel) String() string
- func (AccessLevel) Type() protoreflect.EnumType
- type AccessMultiError
- type AccessValidationError
- type Email
- func (*Email) Descriptor() ([]byte, []int)deprecated
- func (x *Email) GetAccess() *Access
- func (x *Email) GetCreatedAt() *timestamp.Timestamp
- func (x *Email) GetDeactivated() bool
- func (x *Email) GetDeletedAt() *timestamp.Timestamp
- func (x *Email) GetEmail() string
- func (x *Email) GetEmailChanged() *timestamp.Timestamp
- func (x *Email) GetId() uint64
- func (x *Email) GetInternal() bool
- func (x *Email) GetJob() string
- func (x *Email) GetJobGrade() int32
- func (x *Email) GetLabel() string
- func (x *Email) GetSettings() *EmailSettings
- func (x *Email) GetUpdatedAt() *timestamp.Timestamp
- func (x *Email) GetUser() *users.UserShort
- func (x *Email) GetUserId() int32
- func (*Email) ProtoMessage()
- func (x *Email) ProtoReflect() protoreflect.Message
- func (x *Email) Reset()
- func (m *Email) Sanitize() error
- func (x *Email) SetJob(job string)
- func (x *Email) SetJobGrade(grade int32)
- func (x *Email) SetJobGradeLabel(label string)
- func (x *Email) SetJobLabel(label string)
- func (x *Email) String() string
- func (m *Email) Validate() error
- func (m *Email) ValidateAll() error
- type EmailMultiError
- type EmailSettings
- func (*EmailSettings) Descriptor() ([]byte, []int)deprecated
- func (x *EmailSettings) GetBlockedEmails() []string
- func (x *EmailSettings) GetEmailId() uint64
- func (x *EmailSettings) GetSignature() string
- func (*EmailSettings) ProtoMessage()
- func (x *EmailSettings) ProtoReflect() protoreflect.Message
- func (x *EmailSettings) Reset()
- func (m *EmailSettings) Sanitize() error
- func (x *EmailSettings) String() string
- func (m *EmailSettings) Validate() error
- func (m *EmailSettings) ValidateAll() error
- type EmailSettingsMultiError
- type EmailSettingsValidationError
- func (e EmailSettingsValidationError) Cause() error
- func (e EmailSettingsValidationError) Error() string
- func (e EmailSettingsValidationError) ErrorName() string
- func (e EmailSettingsValidationError) Field() string
- func (e EmailSettingsValidationError) Key() bool
- func (e EmailSettingsValidationError) Reason() string
- type EmailValidationError
- type JobAccess
- func (*JobAccess) Descriptor() ([]byte, []int)deprecated
- func (x *JobAccess) GetAccess() AccessLevel
- func (x *JobAccess) GetCreatedAt() *timestamp.Timestamp
- func (x *JobAccess) GetId() uint64
- func (x *JobAccess) GetJob() string
- func (x *JobAccess) GetJobGradeLabel() string
- func (x *JobAccess) GetJobLabel() string
- func (x *JobAccess) GetMinimumGrade() int32
- func (x *JobAccess) GetTargetId() uint64
- func (*JobAccess) ProtoMessage()
- func (x *JobAccess) ProtoReflect() protoreflect.Message
- func (x *JobAccess) Reset()
- func (m *JobAccess) Sanitize() error
- func (x *JobAccess) SetAccess(access AccessLevel)
- func (x *JobAccess) SetJob(job string)
- func (x *JobAccess) SetMinimumGrade(grade int32)
- func (x *JobAccess) String() string
- func (m *JobAccess) Validate() error
- func (m *JobAccess) ValidateAll() error
- type JobAccessMultiError
- type JobAccessValidationError
- type MailerEvent
- func (*MailerEvent) Descriptor() ([]byte, []int)deprecated
- func (x *MailerEvent) GetData() isMailerEvent_Data
- func (x *MailerEvent) GetEmailDelete() uint64
- func (x *MailerEvent) GetEmailSettingsUpdated() *EmailSettings
- func (x *MailerEvent) GetEmailUpdate() *Email
- func (x *MailerEvent) GetMessageDelete() uint64
- func (x *MailerEvent) GetMessageUpdate() *Message
- func (x *MailerEvent) GetThreadDelete() uint64
- func (x *MailerEvent) GetThreadStateUpdate() *ThreadState
- func (x *MailerEvent) GetThreadUpdate() *Thread
- func (*MailerEvent) ProtoMessage()
- func (x *MailerEvent) ProtoReflect() protoreflect.Message
- func (x *MailerEvent) Reset()
- func (m *MailerEvent) Sanitize() error
- func (x *MailerEvent) String() string
- func (m *MailerEvent) Validate() error
- func (m *MailerEvent) ValidateAll() error
- type MailerEventMultiError
- type MailerEventValidationError
- func (e MailerEventValidationError) Cause() error
- func (e MailerEventValidationError) Error() string
- func (e MailerEventValidationError) ErrorName() string
- func (e MailerEventValidationError) Field() string
- func (e MailerEventValidationError) Key() bool
- func (e MailerEventValidationError) Reason() string
- type MailerEvent_EmailDelete
- type MailerEvent_EmailSettingsUpdated
- type MailerEvent_EmailUpdate
- type MailerEvent_MessageDelete
- type MailerEvent_MessageUpdate
- type MailerEvent_ThreadDelete
- type MailerEvent_ThreadStateUpdate
- type MailerEvent_ThreadUpdate
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetContent() *content.Content
- func (x *Message) GetCreatedAt() *timestamp.Timestamp
- func (x *Message) GetCreatorId() int32
- func (x *Message) GetCreatorJob() string
- func (x *Message) GetData() *MessageData
- func (x *Message) GetDeletedAt() *timestamp.Timestamp
- func (x *Message) GetId() uint64
- func (x *Message) GetSender() *Email
- func (x *Message) GetSenderId() uint64
- func (x *Message) GetThreadId() uint64
- func (x *Message) GetTitle() string
- func (x *Message) GetUpdatedAt() *timestamp.Timestamp
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (m *Message) Sanitize() error
- func (x *Message) String() string
- func (m *Message) Validate() error
- func (m *Message) ValidateAll() error
- type MessageAttachment
- func (*MessageAttachment) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAttachment) GetData() isMessageAttachment_Data
- func (x *MessageAttachment) GetDocument() *MessageAttachmentDocument
- func (*MessageAttachment) ProtoMessage()
- func (x *MessageAttachment) ProtoReflect() protoreflect.Message
- func (x *MessageAttachment) Reset()
- func (m *MessageAttachment) Sanitize() error
- func (x *MessageAttachment) String() string
- func (m *MessageAttachment) Validate() error
- func (m *MessageAttachment) ValidateAll() error
- type MessageAttachmentDocument
- func (*MessageAttachmentDocument) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAttachmentDocument) GetId() uint64
- func (x *MessageAttachmentDocument) GetTitle() string
- func (*MessageAttachmentDocument) ProtoMessage()
- func (x *MessageAttachmentDocument) ProtoReflect() protoreflect.Message
- func (x *MessageAttachmentDocument) Reset()
- func (m *MessageAttachmentDocument) Sanitize() error
- func (x *MessageAttachmentDocument) String() string
- func (m *MessageAttachmentDocument) Validate() error
- func (m *MessageAttachmentDocument) ValidateAll() error
- type MessageAttachmentDocumentMultiError
- type MessageAttachmentDocumentValidationError
- func (e MessageAttachmentDocumentValidationError) Cause() error
- func (e MessageAttachmentDocumentValidationError) Error() string
- func (e MessageAttachmentDocumentValidationError) ErrorName() string
- func (e MessageAttachmentDocumentValidationError) Field() string
- func (e MessageAttachmentDocumentValidationError) Key() bool
- func (e MessageAttachmentDocumentValidationError) Reason() string
- type MessageAttachmentMultiError
- type MessageAttachmentValidationError
- func (e MessageAttachmentValidationError) Cause() error
- func (e MessageAttachmentValidationError) Error() string
- func (e MessageAttachmentValidationError) ErrorName() string
- func (e MessageAttachmentValidationError) Field() string
- func (e MessageAttachmentValidationError) Key() bool
- func (e MessageAttachmentValidationError) Reason() string
- type MessageAttachment_Document
- type MessageData
- func (*MessageData) Descriptor() ([]byte, []int)deprecated
- func (x *MessageData) GetAttachments() []*MessageAttachment
- func (*MessageData) ProtoMessage()
- func (x *MessageData) ProtoReflect() protoreflect.Message
- func (x *MessageData) Reset()
- func (m *MessageData) Sanitize() error
- func (x *MessageData) Scan(value any) error
- func (x *MessageData) String() string
- func (m *MessageData) Validate() error
- func (m *MessageData) ValidateAll() error
- func (x *MessageData) Value() (driver.Value, error)
- type MessageDataMultiError
- type MessageDataValidationError
- func (e MessageDataValidationError) Cause() error
- func (e MessageDataValidationError) Error() string
- func (e MessageDataValidationError) ErrorName() string
- func (e MessageDataValidationError) Field() string
- func (e MessageDataValidationError) Key() bool
- func (e MessageDataValidationError) Reason() string
- type MessageMultiError
- type MessageValidationError
- type QualificationAccess
- func (*QualificationAccess) Descriptor() ([]byte, []int)deprecated
- func (x *QualificationAccess) GetAccess() AccessLevel
- func (x *QualificationAccess) GetCreatedAt() *timestamp.Timestamp
- func (x *QualificationAccess) GetId() uint64
- func (x *QualificationAccess) GetQualification() *qualifications.QualificationShort
- func (x *QualificationAccess) GetQualificationId() uint64
- func (x *QualificationAccess) GetTargetId() uint64
- func (*QualificationAccess) ProtoMessage()
- func (x *QualificationAccess) ProtoReflect() protoreflect.Message
- func (x *QualificationAccess) Reset()
- func (m *QualificationAccess) Sanitize() error
- func (x *QualificationAccess) SetAccess(access AccessLevel)
- func (x *QualificationAccess) SetQualificationId(id uint64)
- func (x *QualificationAccess) String() string
- func (m *QualificationAccess) Validate() error
- func (m *QualificationAccess) ValidateAll() error
- type QualificationAccessMultiError
- type QualificationAccessValidationError
- func (e QualificationAccessValidationError) Cause() error
- func (e QualificationAccessValidationError) Error() string
- func (e QualificationAccessValidationError) ErrorName() string
- func (e QualificationAccessValidationError) Field() string
- func (e QualificationAccessValidationError) Key() bool
- func (e QualificationAccessValidationError) Reason() string
- type Template
- func (*Template) Descriptor() ([]byte, []int)deprecated
- func (x *Template) GetContent() string
- func (x *Template) GetCreatedAt() *timestamp.Timestamp
- func (x *Template) GetCreatorId() int32
- func (x *Template) GetCreatorJob() string
- func (x *Template) GetDeletedAt() *timestamp.Timestamp
- func (x *Template) GetEmailId() uint64
- func (x *Template) GetId() uint64
- func (x *Template) GetTitle() string
- func (x *Template) GetUpdatedAt() *timestamp.Timestamp
- func (*Template) ProtoMessage()
- func (x *Template) ProtoReflect() protoreflect.Message
- func (x *Template) Reset()
- func (m *Template) Sanitize() error
- func (x *Template) String() string
- func (m *Template) Validate() error
- func (m *Template) ValidateAll() error
- type TemplateMultiError
- type TemplateValidationError
- type Thread
- func (*Thread) Descriptor() ([]byte, []int)deprecated
- func (x *Thread) GetCreatedAt() *timestamp.Timestamp
- func (x *Thread) GetCreator() *users.UserShort
- func (x *Thread) GetCreatorEmail() *Email
- func (x *Thread) GetCreatorEmailId() uint64
- func (x *Thread) GetCreatorId() int32
- func (x *Thread) GetDeletedAt() *timestamp.Timestamp
- func (x *Thread) GetId() uint64
- func (x *Thread) GetRecipients() []*ThreadRecipientEmail
- func (x *Thread) GetState() *ThreadState
- func (x *Thread) GetTitle() string
- func (x *Thread) GetUpdatedAt() *timestamp.Timestamp
- func (*Thread) ProtoMessage()
- func (x *Thread) ProtoReflect() protoreflect.Message
- func (x *Thread) Reset()
- func (m *Thread) Sanitize() error
- func (x *Thread) String() string
- func (m *Thread) Validate() error
- func (m *Thread) ValidateAll() error
- type ThreadMultiError
- type ThreadRecipientEmail
- func (*ThreadRecipientEmail) Descriptor() ([]byte, []int)deprecated
- func (x *ThreadRecipientEmail) GetCreatedAt() *timestamp.Timestamp
- func (x *ThreadRecipientEmail) GetEmail() *Email
- func (x *ThreadRecipientEmail) GetEmailId() uint64
- func (x *ThreadRecipientEmail) GetId() uint64
- func (x *ThreadRecipientEmail) GetTargetId() uint64
- func (*ThreadRecipientEmail) ProtoMessage()
- func (x *ThreadRecipientEmail) ProtoReflect() protoreflect.Message
- func (x *ThreadRecipientEmail) Reset()
- func (m *ThreadRecipientEmail) Sanitize() error
- func (x *ThreadRecipientEmail) String() string
- func (m *ThreadRecipientEmail) Validate() error
- func (m *ThreadRecipientEmail) ValidateAll() error
- type ThreadRecipientEmailMultiError
- type ThreadRecipientEmailValidationError
- func (e ThreadRecipientEmailValidationError) Cause() error
- func (e ThreadRecipientEmailValidationError) Error() string
- func (e ThreadRecipientEmailValidationError) ErrorName() string
- func (e ThreadRecipientEmailValidationError) Field() string
- func (e ThreadRecipientEmailValidationError) Key() bool
- func (e ThreadRecipientEmailValidationError) Reason() string
- type ThreadState
- func (*ThreadState) Descriptor() ([]byte, []int)deprecated
- func (x *ThreadState) GetArchived() bool
- func (x *ThreadState) GetEmailId() uint64
- func (x *ThreadState) GetFavorite() bool
- func (x *ThreadState) GetImportant() bool
- func (x *ThreadState) GetLastRead() *timestamp.Timestamp
- func (x *ThreadState) GetMuted() bool
- func (x *ThreadState) GetThreadId() uint64
- func (x *ThreadState) GetUnread() bool
- func (*ThreadState) ProtoMessage()
- func (x *ThreadState) ProtoReflect() protoreflect.Message
- func (x *ThreadState) Reset()
- func (m *ThreadState) Sanitize() error
- func (x *ThreadState) String() string
- func (m *ThreadState) Validate() error
- func (m *ThreadState) ValidateAll() error
- type ThreadStateMultiError
- type ThreadStateValidationError
- func (e ThreadStateValidationError) Cause() error
- func (e ThreadStateValidationError) Error() string
- func (e ThreadStateValidationError) ErrorName() string
- func (e ThreadStateValidationError) Field() string
- func (e ThreadStateValidationError) Key() bool
- func (e ThreadStateValidationError) Reason() string
- type ThreadValidationError
- type UserAccess
- func (*UserAccess) Descriptor() ([]byte, []int)deprecated
- func (x *UserAccess) GetAccess() AccessLevel
- func (x *UserAccess) GetCreatedAt() *timestamp.Timestamp
- func (x *UserAccess) GetId() uint64
- func (x *UserAccess) GetTargetId() uint64
- func (x *UserAccess) GetUser() *users.UserShort
- func (x *UserAccess) GetUserId() int32
- func (*UserAccess) ProtoMessage()
- func (x *UserAccess) ProtoReflect() protoreflect.Message
- func (x *UserAccess) Reset()
- func (m *UserAccess) Sanitize() error
- func (x *UserAccess) SetAccess(access AccessLevel)
- func (x *UserAccess) SetUserId(id int32)
- func (x *UserAccess) String() string
- func (m *UserAccess) Validate() error
- func (m *UserAccess) ValidateAll() error
- type UserAccessMultiError
- type UserAccessValidationError
Constants ¶
This section is empty.
Variables ¶
var ( AccessLevel_name = map[int32]string{ 0: "ACCESS_LEVEL_UNSPECIFIED", 1: "ACCESS_LEVEL_BLOCKED", 2: "ACCESS_LEVEL_READ", 3: "ACCESS_LEVEL_WRITE", 4: "ACCESS_LEVEL_MANAGE", } AccessLevel_value = map[string]int32{ "ACCESS_LEVEL_UNSPECIFIED": 0, "ACCESS_LEVEL_BLOCKED": 1, "ACCESS_LEVEL_READ": 2, "ACCESS_LEVEL_WRITE": 3, "ACCESS_LEVEL_MANAGE": 4, } )
Enum value maps for AccessLevel.
var File_resources_mailer_access_proto protoreflect.FileDescriptor
var File_resources_mailer_email_proto protoreflect.FileDescriptor
var File_resources_mailer_events_proto protoreflect.FileDescriptor
var File_resources_mailer_message_proto protoreflect.FileDescriptor
var File_resources_mailer_settings_proto protoreflect.FileDescriptor
var File_resources_mailer_template_proto protoreflect.FileDescriptor
var File_resources_mailer_thread_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct { Jobs []*JobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" Users []*UserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" Qualifications []*QualificationAccess `protobuf:"bytes,3,rep,name=qualifications,proto3" json:"qualifications,omitempty" alias:"qualification_access"` // @gotags: alias:"qualification_access" // contains filtered or unexported fields }
func (*Access) Descriptor
deprecated
func (*Access) GetQualifications ¶
func (x *Access) GetQualifications() []*QualificationAccess
func (*Access) GetUsers ¶
func (x *Access) GetUsers() []*UserAccess
func (*Access) ProtoMessage ¶
func (*Access) ProtoMessage()
func (*Access) ProtoReflect ¶
func (x *Access) ProtoReflect() protoreflect.Message
func (*Access) Validate ¶
Validate checks the field values on Access 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 (*Access) ValidateAll ¶
ValidateAll checks the field values on Access 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 AccessMultiError, or nil if none found.
type AccessLevel ¶
type AccessLevel int32
const ( AccessLevel_ACCESS_LEVEL_UNSPECIFIED AccessLevel = 0 AccessLevel_ACCESS_LEVEL_BLOCKED AccessLevel = 1 AccessLevel_ACCESS_LEVEL_READ AccessLevel = 2 AccessLevel_ACCESS_LEVEL_WRITE AccessLevel = 3 AccessLevel_ACCESS_LEVEL_MANAGE AccessLevel = 4 )
func (AccessLevel) Descriptor ¶
func (AccessLevel) Descriptor() protoreflect.EnumDescriptor
func (AccessLevel) Enum ¶
func (x AccessLevel) Enum() *AccessLevel
func (AccessLevel) EnumDescriptor
deprecated
func (AccessLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccessLevel.Descriptor instead.
func (AccessLevel) Number ¶
func (x AccessLevel) Number() protoreflect.EnumNumber
func (AccessLevel) String ¶
func (x AccessLevel) String() string
func (AccessLevel) Type ¶
func (AccessLevel) Type() protoreflect.EnumType
type AccessMultiError ¶
type AccessMultiError []error
AccessMultiError is an error wrapping multiple validation errors returned by Access.ValidateAll() if the designated constraints aren't met.
func (AccessMultiError) AllErrors ¶
func (m AccessMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccessMultiError) Error ¶
func (m AccessMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccessValidationError ¶
type AccessValidationError struct {
// contains filtered or unexported fields
}
AccessValidationError is the validation error returned by Access.Validate if the designated constraints aren't met.
func (AccessValidationError) Cause ¶
func (e AccessValidationError) Cause() error
Cause function returns cause value.
func (AccessValidationError) Error ¶
func (e AccessValidationError) Error() string
Error satisfies the builtin error interface
func (AccessValidationError) ErrorName ¶
func (e AccessValidationError) ErrorName() string
ErrorName returns error name.
func (AccessValidationError) Field ¶
func (e AccessValidationError) Field() string
Field function returns field value.
func (AccessValidationError) Key ¶
func (e AccessValidationError) Key() bool
Key function returns key value.
func (AccessValidationError) Reason ¶
func (e AccessValidationError) Reason() string
Reason function returns reason value.
type Email ¶
type Email struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` Deactivated bool `protobuf:"varint,5,opt,name=deactivated,proto3" json:"deactivated,omitempty"` Job *string `protobuf:"bytes,6,opt,name=job,proto3,oneof" json:"job,omitempty"` UserId *int32 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` User *users.UserShort `protobuf:"bytes,8,opt,name=user,proto3,oneof" json:"user,omitempty"` // @sanitize: method=StripTags Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` EmailChanged *timestamp.Timestamp `protobuf:"bytes,10,opt,name=email_changed,json=emailChanged,proto3,oneof" json:"email_changed,omitempty"` // @sanitize: method=StripTags Label *string `protobuf:"bytes,11,opt,name=label,proto3,oneof" json:"label,omitempty"` Internal bool `protobuf:"varint,12,opt,name=internal,proto3" json:"internal,omitempty"` Access *Access `protobuf:"bytes,13,opt,name=access,proto3" json:"access,omitempty"` Settings *EmailSettings `protobuf:"bytes,14,opt,name=settings,proto3,oneof" json:"settings,omitempty"` // contains filtered or unexported fields }
func (*Email) Descriptor
deprecated
func (*Email) GetCreatedAt ¶
func (*Email) GetDeactivated ¶
func (*Email) GetDeletedAt ¶
func (*Email) GetEmailChanged ¶
func (*Email) GetInternal ¶
func (*Email) GetJobGrade ¶
func (*Email) GetSettings ¶
func (x *Email) GetSettings() *EmailSettings
func (*Email) GetUpdatedAt ¶
func (*Email) ProtoMessage ¶
func (*Email) ProtoMessage()
func (*Email) ProtoReflect ¶
func (x *Email) ProtoReflect() protoreflect.Message
func (*Email) SetJobGrade ¶
func (*Email) SetJobGradeLabel ¶
func (*Email) SetJobLabel ¶
func (*Email) Validate ¶
Validate checks the field values on Email 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 (*Email) ValidateAll ¶
ValidateAll checks the field values on Email 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 EmailMultiError, or nil if none found.
type EmailMultiError ¶
type EmailMultiError []error
EmailMultiError is an error wrapping multiple validation errors returned by Email.ValidateAll() if the designated constraints aren't met.
func (EmailMultiError) AllErrors ¶
func (m EmailMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EmailMultiError) Error ¶
func (m EmailMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EmailSettings ¶
type EmailSettings struct { EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` // @sanitize Signature *string `protobuf:"bytes,2,opt,name=signature,proto3,oneof" json:"signature,omitempty"` // @sanitize: method=StripTags BlockedEmails []string `protobuf:"bytes,3,rep,name=blocked_emails,json=blockedEmails,proto3" json:"blocked_emails,omitempty"` // contains filtered or unexported fields }
func (*EmailSettings) Descriptor
deprecated
func (*EmailSettings) Descriptor() ([]byte, []int)
Deprecated: Use EmailSettings.ProtoReflect.Descriptor instead.
func (*EmailSettings) GetBlockedEmails ¶
func (x *EmailSettings) GetBlockedEmails() []string
func (*EmailSettings) GetEmailId ¶
func (x *EmailSettings) GetEmailId() uint64
func (*EmailSettings) GetSignature ¶
func (x *EmailSettings) GetSignature() string
func (*EmailSettings) ProtoMessage ¶
func (*EmailSettings) ProtoMessage()
func (*EmailSettings) ProtoReflect ¶
func (x *EmailSettings) ProtoReflect() protoreflect.Message
func (*EmailSettings) Reset ¶
func (x *EmailSettings) Reset()
func (*EmailSettings) Sanitize ¶
func (m *EmailSettings) Sanitize() error
func (*EmailSettings) String ¶
func (x *EmailSettings) String() string
func (*EmailSettings) Validate ¶
func (m *EmailSettings) Validate() error
Validate checks the field values on EmailSettings 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 (*EmailSettings) ValidateAll ¶
func (m *EmailSettings) ValidateAll() error
ValidateAll checks the field values on EmailSettings 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 EmailSettingsMultiError, or nil if none found.
type EmailSettingsMultiError ¶
type EmailSettingsMultiError []error
EmailSettingsMultiError is an error wrapping multiple validation errors returned by EmailSettings.ValidateAll() if the designated constraints aren't met.
func (EmailSettingsMultiError) AllErrors ¶
func (m EmailSettingsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EmailSettingsMultiError) Error ¶
func (m EmailSettingsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EmailSettingsValidationError ¶
type EmailSettingsValidationError struct {
// contains filtered or unexported fields
}
EmailSettingsValidationError is the validation error returned by EmailSettings.Validate if the designated constraints aren't met.
func (EmailSettingsValidationError) Cause ¶
func (e EmailSettingsValidationError) Cause() error
Cause function returns cause value.
func (EmailSettingsValidationError) Error ¶
func (e EmailSettingsValidationError) Error() string
Error satisfies the builtin error interface
func (EmailSettingsValidationError) ErrorName ¶
func (e EmailSettingsValidationError) ErrorName() string
ErrorName returns error name.
func (EmailSettingsValidationError) Field ¶
func (e EmailSettingsValidationError) Field() string
Field function returns field value.
func (EmailSettingsValidationError) Key ¶
func (e EmailSettingsValidationError) Key() bool
Key function returns key value.
func (EmailSettingsValidationError) Reason ¶
func (e EmailSettingsValidationError) Reason() string
Reason function returns reason value.
type EmailValidationError ¶
type EmailValidationError struct {
// contains filtered or unexported fields
}
EmailValidationError is the validation error returned by Email.Validate if the designated constraints aren't met.
func (EmailValidationError) Cause ¶
func (e EmailValidationError) Cause() error
Cause function returns cause value.
func (EmailValidationError) Error ¶
func (e EmailValidationError) Error() string
Error satisfies the builtin error interface
func (EmailValidationError) ErrorName ¶
func (e EmailValidationError) ErrorName() string
ErrorName returns error name.
func (EmailValidationError) Field ¶
func (e EmailValidationError) Field() string
Field function returns field value.
func (EmailValidationError) Key ¶
func (e EmailValidationError) Key() bool
Key function returns key value.
func (EmailValidationError) Reason ¶
func (e EmailValidationError) Reason() string
Reason function returns reason value.
type JobAccess ¶
type JobAccess struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` JobLabel *string `protobuf:"bytes,6,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` MinimumGrade int32 `protobuf:"varint,7,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` JobGradeLabel *string `protobuf:"bytes,8,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` Access AccessLevel `protobuf:"varint,9,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` // contains filtered or unexported fields }
func (*JobAccess) Descriptor
deprecated
func (*JobAccess) GetAccess ¶
func (x *JobAccess) GetAccess() AccessLevel
func (*JobAccess) GetCreatedAt ¶
func (*JobAccess) GetJobGradeLabel ¶
func (*JobAccess) GetJobLabel ¶
func (*JobAccess) GetMinimumGrade ¶
func (*JobAccess) GetTargetId ¶
func (*JobAccess) ProtoMessage ¶
func (*JobAccess) ProtoMessage()
func (*JobAccess) ProtoReflect ¶
func (x *JobAccess) ProtoReflect() protoreflect.Message
func (*JobAccess) SetAccess ¶
func (x *JobAccess) SetAccess(access AccessLevel)
func (*JobAccess) SetMinimumGrade ¶
func (*JobAccess) Validate ¶
Validate checks the field values on JobAccess 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 (*JobAccess) ValidateAll ¶
ValidateAll checks the field values on JobAccess 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 JobAccessMultiError, or nil if none found.
type JobAccessMultiError ¶
type JobAccessMultiError []error
JobAccessMultiError is an error wrapping multiple validation errors returned by JobAccess.ValidateAll() if the designated constraints aren't met.
func (JobAccessMultiError) AllErrors ¶
func (m JobAccessMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobAccessMultiError) Error ¶
func (m JobAccessMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobAccessValidationError ¶
type JobAccessValidationError struct {
// contains filtered or unexported fields
}
JobAccessValidationError is the validation error returned by JobAccess.Validate if the designated constraints aren't met.
func (JobAccessValidationError) Cause ¶
func (e JobAccessValidationError) Cause() error
Cause function returns cause value.
func (JobAccessValidationError) Error ¶
func (e JobAccessValidationError) Error() string
Error satisfies the builtin error interface
func (JobAccessValidationError) ErrorName ¶
func (e JobAccessValidationError) ErrorName() string
ErrorName returns error name.
func (JobAccessValidationError) Field ¶
func (e JobAccessValidationError) Field() string
Field function returns field value.
func (JobAccessValidationError) Key ¶
func (e JobAccessValidationError) Key() bool
Key function returns key value.
func (JobAccessValidationError) Reason ¶
func (e JobAccessValidationError) Reason() string
Reason function returns reason value.
type MailerEvent ¶
type MailerEvent struct { // Types that are valid to be assigned to Data: // // *MailerEvent_EmailUpdate // *MailerEvent_EmailDelete // *MailerEvent_EmailSettingsUpdated // *MailerEvent_ThreadUpdate // *MailerEvent_ThreadDelete // *MailerEvent_ThreadStateUpdate // *MailerEvent_MessageUpdate // *MailerEvent_MessageDelete Data isMailerEvent_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*MailerEvent) Descriptor
deprecated
func (*MailerEvent) Descriptor() ([]byte, []int)
Deprecated: Use MailerEvent.ProtoReflect.Descriptor instead.
func (*MailerEvent) GetData ¶
func (x *MailerEvent) GetData() isMailerEvent_Data
func (*MailerEvent) GetEmailDelete ¶
func (x *MailerEvent) GetEmailDelete() uint64
func (*MailerEvent) GetEmailSettingsUpdated ¶
func (x *MailerEvent) GetEmailSettingsUpdated() *EmailSettings
func (*MailerEvent) GetEmailUpdate ¶
func (x *MailerEvent) GetEmailUpdate() *Email
func (*MailerEvent) GetMessageDelete ¶
func (x *MailerEvent) GetMessageDelete() uint64
func (*MailerEvent) GetMessageUpdate ¶
func (x *MailerEvent) GetMessageUpdate() *Message
func (*MailerEvent) GetThreadDelete ¶
func (x *MailerEvent) GetThreadDelete() uint64
func (*MailerEvent) GetThreadStateUpdate ¶
func (x *MailerEvent) GetThreadStateUpdate() *ThreadState
func (*MailerEvent) GetThreadUpdate ¶
func (x *MailerEvent) GetThreadUpdate() *Thread
func (*MailerEvent) ProtoMessage ¶
func (*MailerEvent) ProtoMessage()
func (*MailerEvent) ProtoReflect ¶
func (x *MailerEvent) ProtoReflect() protoreflect.Message
func (*MailerEvent) Reset ¶
func (x *MailerEvent) Reset()
func (*MailerEvent) Sanitize ¶
func (m *MailerEvent) Sanitize() error
func (*MailerEvent) String ¶
func (x *MailerEvent) String() string
func (*MailerEvent) Validate ¶
func (m *MailerEvent) Validate() error
Validate checks the field values on MailerEvent 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 (*MailerEvent) ValidateAll ¶
func (m *MailerEvent) ValidateAll() error
ValidateAll checks the field values on MailerEvent 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 MailerEventMultiError, or nil if none found.
type MailerEventMultiError ¶
type MailerEventMultiError []error
MailerEventMultiError is an error wrapping multiple validation errors returned by MailerEvent.ValidateAll() if the designated constraints aren't met.
func (MailerEventMultiError) AllErrors ¶
func (m MailerEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MailerEventMultiError) Error ¶
func (m MailerEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MailerEventValidationError ¶
type MailerEventValidationError struct {
// contains filtered or unexported fields
}
MailerEventValidationError is the validation error returned by MailerEvent.Validate if the designated constraints aren't met.
func (MailerEventValidationError) Cause ¶
func (e MailerEventValidationError) Cause() error
Cause function returns cause value.
func (MailerEventValidationError) Error ¶
func (e MailerEventValidationError) Error() string
Error satisfies the builtin error interface
func (MailerEventValidationError) ErrorName ¶
func (e MailerEventValidationError) ErrorName() string
ErrorName returns error name.
func (MailerEventValidationError) Field ¶
func (e MailerEventValidationError) Field() string
Field function returns field value.
func (MailerEventValidationError) Key ¶
func (e MailerEventValidationError) Key() bool
Key function returns key value.
func (MailerEventValidationError) Reason ¶
func (e MailerEventValidationError) Reason() string
Reason function returns reason value.
type MailerEvent_EmailDelete ¶
type MailerEvent_EmailDelete struct {
EmailDelete uint64 `protobuf:"varint,2,opt,name=email_delete,json=emailDelete,proto3,oneof"`
}
type MailerEvent_EmailSettingsUpdated ¶
type MailerEvent_EmailSettingsUpdated struct {
EmailSettingsUpdated *EmailSettings `protobuf:"bytes,3,opt,name=email_settings_updated,json=emailSettingsUpdated,proto3,oneof"`
}
type MailerEvent_EmailUpdate ¶
type MailerEvent_EmailUpdate struct {
EmailUpdate *Email `protobuf:"bytes,1,opt,name=email_update,json=emailUpdate,proto3,oneof"`
}
type MailerEvent_MessageDelete ¶
type MailerEvent_MessageDelete struct {
MessageDelete uint64 `protobuf:"varint,8,opt,name=message_delete,json=messageDelete,proto3,oneof"`
}
type MailerEvent_MessageUpdate ¶
type MailerEvent_MessageUpdate struct {
MessageUpdate *Message `protobuf:"bytes,7,opt,name=message_update,json=messageUpdate,proto3,oneof"`
}
type MailerEvent_ThreadDelete ¶
type MailerEvent_ThreadDelete struct {
ThreadDelete uint64 `protobuf:"varint,5,opt,name=thread_delete,json=threadDelete,proto3,oneof"`
}
type MailerEvent_ThreadStateUpdate ¶
type MailerEvent_ThreadStateUpdate struct {
ThreadStateUpdate *ThreadState `protobuf:"bytes,6,opt,name=thread_state_update,json=threadStateUpdate,proto3,oneof"`
}
type MailerEvent_ThreadUpdate ¶
type MailerEvent_ThreadUpdate struct {
ThreadUpdate *Thread `protobuf:"bytes,4,opt,name=thread_update,json=threadUpdate,proto3,oneof"`
}
type Message ¶
type Message struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` SenderId uint64 `protobuf:"varint,3,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` Sender *Email `protobuf:"bytes,4,opt,name=sender,proto3,oneof" json:"sender,omitempty" alias:"sender"` // @gotags: alias:"sender" CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` // @sanitize: method=StripTags Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // @sanitize Content *content.Content `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"` Data *MessageData `protobuf:"bytes,10,opt,name=data,proto3,oneof" json:"data,omitempty"` CreatorId *int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` CreatorJob *string `protobuf:"bytes,12,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) GetCreatedAt ¶
func (*Message) GetCreatorId ¶
func (*Message) GetCreatorJob ¶
func (*Message) GetData ¶
func (x *Message) GetData() *MessageData
func (*Message) GetDeletedAt ¶
func (*Message) GetSenderId ¶
func (*Message) GetThreadId ¶
func (*Message) GetUpdatedAt ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) Validate ¶
Validate checks the field values on Message 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 (*Message) ValidateAll ¶
ValidateAll checks the field values on Message 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 MessageMultiError, or nil if none found.
type MessageAttachment ¶ added in v0.9.5
type MessageAttachment struct { // Types that are valid to be assigned to Data: // // *MessageAttachment_Document Data isMessageAttachment_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*MessageAttachment) Descriptor
deprecated
added in
v0.9.5
func (*MessageAttachment) Descriptor() ([]byte, []int)
Deprecated: Use MessageAttachment.ProtoReflect.Descriptor instead.
func (*MessageAttachment) GetData ¶ added in v0.9.5
func (x *MessageAttachment) GetData() isMessageAttachment_Data
func (*MessageAttachment) GetDocument ¶ added in v0.9.5
func (x *MessageAttachment) GetDocument() *MessageAttachmentDocument
func (*MessageAttachment) ProtoMessage ¶ added in v0.9.5
func (*MessageAttachment) ProtoMessage()
func (*MessageAttachment) ProtoReflect ¶ added in v0.9.5
func (x *MessageAttachment) ProtoReflect() protoreflect.Message
func (*MessageAttachment) Reset ¶ added in v0.9.5
func (x *MessageAttachment) Reset()
func (*MessageAttachment) Sanitize ¶ added in v0.9.5
func (m *MessageAttachment) Sanitize() error
func (*MessageAttachment) String ¶ added in v0.9.5
func (x *MessageAttachment) String() string
func (*MessageAttachment) Validate ¶ added in v0.9.5
func (m *MessageAttachment) Validate() error
Validate checks the field values on MessageAttachment 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 (*MessageAttachment) ValidateAll ¶ added in v0.9.5
func (m *MessageAttachment) ValidateAll() error
ValidateAll checks the field values on MessageAttachment 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 MessageAttachmentMultiError, or nil if none found.
type MessageAttachmentDocument ¶ added in v0.9.5
type MessageAttachmentDocument struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` // contains filtered or unexported fields }
func (*MessageAttachmentDocument) Descriptor
deprecated
added in
v0.9.5
func (*MessageAttachmentDocument) Descriptor() ([]byte, []int)
Deprecated: Use MessageAttachmentDocument.ProtoReflect.Descriptor instead.
func (*MessageAttachmentDocument) GetId ¶ added in v0.9.5
func (x *MessageAttachmentDocument) GetId() uint64
func (*MessageAttachmentDocument) GetTitle ¶ added in v0.9.5
func (x *MessageAttachmentDocument) GetTitle() string
func (*MessageAttachmentDocument) ProtoMessage ¶ added in v0.9.5
func (*MessageAttachmentDocument) ProtoMessage()
func (*MessageAttachmentDocument) ProtoReflect ¶ added in v0.9.5
func (x *MessageAttachmentDocument) ProtoReflect() protoreflect.Message
func (*MessageAttachmentDocument) Reset ¶ added in v0.9.5
func (x *MessageAttachmentDocument) Reset()
func (*MessageAttachmentDocument) Sanitize ¶ added in v0.9.5
func (m *MessageAttachmentDocument) Sanitize() error
func (*MessageAttachmentDocument) String ¶ added in v0.9.5
func (x *MessageAttachmentDocument) String() string
func (*MessageAttachmentDocument) Validate ¶ added in v0.9.5
func (m *MessageAttachmentDocument) Validate() error
Validate checks the field values on MessageAttachmentDocument 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 (*MessageAttachmentDocument) ValidateAll ¶ added in v0.9.5
func (m *MessageAttachmentDocument) ValidateAll() error
ValidateAll checks the field values on MessageAttachmentDocument 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 MessageAttachmentDocumentMultiError, or nil if none found.
type MessageAttachmentDocumentMultiError ¶ added in v0.9.5
type MessageAttachmentDocumentMultiError []error
MessageAttachmentDocumentMultiError is an error wrapping multiple validation errors returned by MessageAttachmentDocument.ValidateAll() if the designated constraints aren't met.
func (MessageAttachmentDocumentMultiError) AllErrors ¶ added in v0.9.5
func (m MessageAttachmentDocumentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageAttachmentDocumentMultiError) Error ¶ added in v0.9.5
func (m MessageAttachmentDocumentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageAttachmentDocumentValidationError ¶ added in v0.9.5
type MessageAttachmentDocumentValidationError struct {
// contains filtered or unexported fields
}
MessageAttachmentDocumentValidationError is the validation error returned by MessageAttachmentDocument.Validate if the designated constraints aren't met.
func (MessageAttachmentDocumentValidationError) Cause ¶ added in v0.9.5
func (e MessageAttachmentDocumentValidationError) Cause() error
Cause function returns cause value.
func (MessageAttachmentDocumentValidationError) Error ¶ added in v0.9.5
func (e MessageAttachmentDocumentValidationError) Error() string
Error satisfies the builtin error interface
func (MessageAttachmentDocumentValidationError) ErrorName ¶ added in v0.9.5
func (e MessageAttachmentDocumentValidationError) ErrorName() string
ErrorName returns error name.
func (MessageAttachmentDocumentValidationError) Field ¶ added in v0.9.5
func (e MessageAttachmentDocumentValidationError) Field() string
Field function returns field value.
func (MessageAttachmentDocumentValidationError) Key ¶ added in v0.9.5
func (e MessageAttachmentDocumentValidationError) Key() bool
Key function returns key value.
func (MessageAttachmentDocumentValidationError) Reason ¶ added in v0.9.5
func (e MessageAttachmentDocumentValidationError) Reason() string
Reason function returns reason value.
type MessageAttachmentMultiError ¶ added in v0.9.5
type MessageAttachmentMultiError []error
MessageAttachmentMultiError is an error wrapping multiple validation errors returned by MessageAttachment.ValidateAll() if the designated constraints aren't met.
func (MessageAttachmentMultiError) AllErrors ¶ added in v0.9.5
func (m MessageAttachmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageAttachmentMultiError) Error ¶ added in v0.9.5
func (m MessageAttachmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageAttachmentValidationError ¶ added in v0.9.5
type MessageAttachmentValidationError struct {
// contains filtered or unexported fields
}
MessageAttachmentValidationError is the validation error returned by MessageAttachment.Validate if the designated constraints aren't met.
func (MessageAttachmentValidationError) Cause ¶ added in v0.9.5
func (e MessageAttachmentValidationError) Cause() error
Cause function returns cause value.
func (MessageAttachmentValidationError) Error ¶ added in v0.9.5
func (e MessageAttachmentValidationError) Error() string
Error satisfies the builtin error interface
func (MessageAttachmentValidationError) ErrorName ¶ added in v0.9.5
func (e MessageAttachmentValidationError) ErrorName() string
ErrorName returns error name.
func (MessageAttachmentValidationError) Field ¶ added in v0.9.5
func (e MessageAttachmentValidationError) Field() string
Field function returns field value.
func (MessageAttachmentValidationError) Key ¶ added in v0.9.5
func (e MessageAttachmentValidationError) Key() bool
Key function returns key value.
func (MessageAttachmentValidationError) Reason ¶ added in v0.9.5
func (e MessageAttachmentValidationError) Reason() string
Reason function returns reason value.
type MessageAttachment_Document ¶ added in v0.9.5
type MessageAttachment_Document struct {
Document *MessageAttachmentDocument `protobuf:"bytes,1,opt,name=document,proto3,oneof"`
}
type MessageData ¶
type MessageData struct { Attachments []*MessageAttachment `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"` // contains filtered or unexported fields }
@dbscanner: json
func (*MessageData) Descriptor
deprecated
func (*MessageData) Descriptor() ([]byte, []int)
Deprecated: Use MessageData.ProtoReflect.Descriptor instead.
func (*MessageData) GetAttachments ¶ added in v0.9.5
func (x *MessageData) GetAttachments() []*MessageAttachment
func (*MessageData) ProtoMessage ¶
func (*MessageData) ProtoMessage()
func (*MessageData) ProtoReflect ¶
func (x *MessageData) ProtoReflect() protoreflect.Message
func (*MessageData) Reset ¶
func (x *MessageData) Reset()
func (*MessageData) Sanitize ¶
func (m *MessageData) Sanitize() error
func (*MessageData) Scan ¶
func (x *MessageData) Scan(value any) error
Scan implements driver.Valuer for protobuf MessageData.
func (*MessageData) String ¶
func (x *MessageData) String() string
func (*MessageData) Validate ¶
func (m *MessageData) Validate() error
Validate checks the field values on MessageData 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 (*MessageData) ValidateAll ¶
func (m *MessageData) ValidateAll() error
ValidateAll checks the field values on MessageData 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 MessageDataMultiError, or nil if none found.
type MessageDataMultiError ¶
type MessageDataMultiError []error
MessageDataMultiError is an error wrapping multiple validation errors returned by MessageData.ValidateAll() if the designated constraints aren't met.
func (MessageDataMultiError) AllErrors ¶
func (m MessageDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageDataMultiError) Error ¶
func (m MessageDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageDataValidationError ¶
type MessageDataValidationError struct {
// contains filtered or unexported fields
}
MessageDataValidationError is the validation error returned by MessageData.Validate if the designated constraints aren't met.
func (MessageDataValidationError) Cause ¶
func (e MessageDataValidationError) Cause() error
Cause function returns cause value.
func (MessageDataValidationError) Error ¶
func (e MessageDataValidationError) Error() string
Error satisfies the builtin error interface
func (MessageDataValidationError) ErrorName ¶
func (e MessageDataValidationError) ErrorName() string
ErrorName returns error name.
func (MessageDataValidationError) Field ¶
func (e MessageDataValidationError) Field() string
Field function returns field value.
func (MessageDataValidationError) Key ¶
func (e MessageDataValidationError) Key() bool
Key function returns key value.
func (MessageDataValidationError) Reason ¶
func (e MessageDataValidationError) Reason() string
Reason function returns reason value.
type MessageMultiError ¶
type MessageMultiError []error
MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.
func (MessageMultiError) AllErrors ¶
func (m MessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageMultiError) Error ¶
func (m MessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageValidationError ¶
type MessageValidationError struct {
// contains filtered or unexported fields
}
MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.
func (MessageValidationError) Cause ¶
func (e MessageValidationError) Cause() error
Cause function returns cause value.
func (MessageValidationError) Error ¶
func (e MessageValidationError) Error() string
Error satisfies the builtin error interface
func (MessageValidationError) ErrorName ¶
func (e MessageValidationError) ErrorName() string
ErrorName returns error name.
func (MessageValidationError) Field ¶
func (e MessageValidationError) Field() string
Field function returns field value.
func (MessageValidationError) Key ¶
func (e MessageValidationError) Key() bool
Key function returns key value.
func (MessageValidationError) Reason ¶
func (e MessageValidationError) Reason() string
Reason function returns reason value.
type QualificationAccess ¶
type QualificationAccess struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` QualificationId uint64 `protobuf:"varint,4,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` Qualification *qualifications.QualificationShort `protobuf:"bytes,5,opt,name=qualification,proto3,oneof" json:"qualification,omitempty"` Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` // contains filtered or unexported fields }
func (*QualificationAccess) Descriptor
deprecated
func (*QualificationAccess) Descriptor() ([]byte, []int)
Deprecated: Use QualificationAccess.ProtoReflect.Descriptor instead.
func (*QualificationAccess) GetAccess ¶
func (x *QualificationAccess) GetAccess() AccessLevel
func (*QualificationAccess) GetCreatedAt ¶
func (x *QualificationAccess) GetCreatedAt() *timestamp.Timestamp
func (*QualificationAccess) GetId ¶
func (x *QualificationAccess) GetId() uint64
func (*QualificationAccess) GetQualification ¶
func (x *QualificationAccess) GetQualification() *qualifications.QualificationShort
func (*QualificationAccess) GetQualificationId ¶
func (x *QualificationAccess) GetQualificationId() uint64
func (*QualificationAccess) GetTargetId ¶
func (x *QualificationAccess) GetTargetId() uint64
func (*QualificationAccess) ProtoMessage ¶
func (*QualificationAccess) ProtoMessage()
func (*QualificationAccess) ProtoReflect ¶
func (x *QualificationAccess) ProtoReflect() protoreflect.Message
func (*QualificationAccess) Reset ¶
func (x *QualificationAccess) Reset()
func (*QualificationAccess) Sanitize ¶
func (m *QualificationAccess) Sanitize() error
func (*QualificationAccess) SetAccess ¶
func (x *QualificationAccess) SetAccess(access AccessLevel)
func (*QualificationAccess) SetQualificationId ¶
func (x *QualificationAccess) SetQualificationId(id uint64)
func (*QualificationAccess) String ¶
func (x *QualificationAccess) String() string
func (*QualificationAccess) Validate ¶
func (m *QualificationAccess) Validate() error
Validate checks the field values on QualificationAccess 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 (*QualificationAccess) ValidateAll ¶
func (m *QualificationAccess) ValidateAll() error
ValidateAll checks the field values on QualificationAccess 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 QualificationAccessMultiError, or nil if none found.
type QualificationAccessMultiError ¶
type QualificationAccessMultiError []error
QualificationAccessMultiError is an error wrapping multiple validation errors returned by QualificationAccess.ValidateAll() if the designated constraints aren't met.
func (QualificationAccessMultiError) AllErrors ¶
func (m QualificationAccessMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QualificationAccessMultiError) Error ¶
func (m QualificationAccessMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QualificationAccessValidationError ¶
type QualificationAccessValidationError struct {
// contains filtered or unexported fields
}
QualificationAccessValidationError is the validation error returned by QualificationAccess.Validate if the designated constraints aren't met.
func (QualificationAccessValidationError) Cause ¶
func (e QualificationAccessValidationError) Cause() error
Cause function returns cause value.
func (QualificationAccessValidationError) Error ¶
func (e QualificationAccessValidationError) Error() string
Error satisfies the builtin error interface
func (QualificationAccessValidationError) ErrorName ¶
func (e QualificationAccessValidationError) ErrorName() string
ErrorName returns error name.
func (QualificationAccessValidationError) Field ¶
func (e QualificationAccessValidationError) Field() string
Field function returns field value.
func (QualificationAccessValidationError) Key ¶
func (e QualificationAccessValidationError) Key() bool
Key function returns key value.
func (QualificationAccessValidationError) Reason ¶
func (e QualificationAccessValidationError) Reason() string
Reason function returns reason value.
type Template ¶
type Template struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` EmailId uint64 `protobuf:"varint,6,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` // @sanitize: method=StripTags Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` // @sanitize Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` CreatorJob *string `protobuf:"bytes,9,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` CreatorId *int32 `protobuf:"varint,10,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` // contains filtered or unexported fields }
func (*Template) Descriptor
deprecated
func (*Template) GetContent ¶
func (*Template) GetCreatedAt ¶
func (*Template) GetCreatorId ¶
func (*Template) GetCreatorJob ¶
func (*Template) GetDeletedAt ¶
func (*Template) GetEmailId ¶
func (*Template) GetUpdatedAt ¶
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
func (*Template) Validate ¶
Validate checks the field values on Template 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 (*Template) ValidateAll ¶
ValidateAll checks the field values on Template 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 TemplateMultiError, or nil if none found.
type TemplateMultiError ¶
type TemplateMultiError []error
TemplateMultiError is an error wrapping multiple validation errors returned by Template.ValidateAll() if the designated constraints aren't met.
func (TemplateMultiError) AllErrors ¶
func (m TemplateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TemplateMultiError) Error ¶
func (m TemplateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TemplateValidationError ¶
type TemplateValidationError struct {
// contains filtered or unexported fields
}
TemplateValidationError is the validation error returned by Template.Validate if the designated constraints aren't met.
func (TemplateValidationError) Cause ¶
func (e TemplateValidationError) Cause() error
Cause function returns cause value.
func (TemplateValidationError) Error ¶
func (e TemplateValidationError) Error() string
Error satisfies the builtin error interface
func (TemplateValidationError) ErrorName ¶
func (e TemplateValidationError) ErrorName() string
ErrorName returns error name.
func (TemplateValidationError) Field ¶
func (e TemplateValidationError) Field() string
Field function returns field value.
func (TemplateValidationError) Key ¶
func (e TemplateValidationError) Key() bool
Key function returns key value.
func (TemplateValidationError) Reason ¶
func (e TemplateValidationError) Reason() string
Reason function returns reason value.
type Thread ¶
type Thread struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` CreatorEmailId uint64 `protobuf:"varint,5,opt,name=creator_email_id,json=creatorEmailId,proto3" json:"creator_email_id,omitempty"` CreatorEmail *Email `protobuf:"bytes,6,opt,name=creator_email,json=creatorEmail,proto3,oneof" json:"creator_email,omitempty"` CreatorId *int32 `protobuf:"varint,7,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` Creator *users.UserShort `protobuf:"bytes,8,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" // @sanitize: method=StripTags Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"` Recipients []*ThreadRecipientEmail `protobuf:"bytes,10,rep,name=recipients,proto3" json:"recipients,omitempty"` State *ThreadState `protobuf:"bytes,11,opt,name=state,proto3,oneof" json:"state,omitempty" alias:"thread_state"` // @gotags: alias:"thread_state" // contains filtered or unexported fields }
func (*Thread) Descriptor
deprecated
func (*Thread) GetCreatedAt ¶
func (*Thread) GetCreator ¶
func (*Thread) GetCreatorEmail ¶
func (*Thread) GetCreatorEmailId ¶
func (*Thread) GetCreatorId ¶
func (*Thread) GetDeletedAt ¶
func (*Thread) GetRecipients ¶
func (x *Thread) GetRecipients() []*ThreadRecipientEmail
func (*Thread) GetState ¶
func (x *Thread) GetState() *ThreadState
func (*Thread) GetUpdatedAt ¶
func (*Thread) ProtoMessage ¶
func (*Thread) ProtoMessage()
func (*Thread) ProtoReflect ¶
func (x *Thread) ProtoReflect() protoreflect.Message
func (*Thread) Validate ¶
Validate checks the field values on Thread 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 (*Thread) ValidateAll ¶
ValidateAll checks the field values on Thread 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 ThreadMultiError, or nil if none found.
type ThreadMultiError ¶
type ThreadMultiError []error
ThreadMultiError is an error wrapping multiple validation errors returned by Thread.ValidateAll() if the designated constraints aren't met.
func (ThreadMultiError) AllErrors ¶
func (m ThreadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ThreadMultiError) Error ¶
func (m ThreadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ThreadRecipientEmail ¶
type ThreadRecipientEmail struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"thread_id"` // @gotags: alias:"thread_id" EmailId uint64 `protobuf:"varint,5,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` Email *Email `protobuf:"bytes,6,opt,name=email,proto3,oneof" json:"email,omitempty"` // contains filtered or unexported fields }
func (*ThreadRecipientEmail) Descriptor
deprecated
func (*ThreadRecipientEmail) Descriptor() ([]byte, []int)
Deprecated: Use ThreadRecipientEmail.ProtoReflect.Descriptor instead.
func (*ThreadRecipientEmail) GetCreatedAt ¶
func (x *ThreadRecipientEmail) GetCreatedAt() *timestamp.Timestamp
func (*ThreadRecipientEmail) GetEmail ¶
func (x *ThreadRecipientEmail) GetEmail() *Email
func (*ThreadRecipientEmail) GetEmailId ¶
func (x *ThreadRecipientEmail) GetEmailId() uint64
func (*ThreadRecipientEmail) GetId ¶
func (x *ThreadRecipientEmail) GetId() uint64
func (*ThreadRecipientEmail) GetTargetId ¶
func (x *ThreadRecipientEmail) GetTargetId() uint64
func (*ThreadRecipientEmail) ProtoMessage ¶
func (*ThreadRecipientEmail) ProtoMessage()
func (*ThreadRecipientEmail) ProtoReflect ¶
func (x *ThreadRecipientEmail) ProtoReflect() protoreflect.Message
func (*ThreadRecipientEmail) Reset ¶
func (x *ThreadRecipientEmail) Reset()
func (*ThreadRecipientEmail) Sanitize ¶
func (m *ThreadRecipientEmail) Sanitize() error
func (*ThreadRecipientEmail) String ¶
func (x *ThreadRecipientEmail) String() string
func (*ThreadRecipientEmail) Validate ¶
func (m *ThreadRecipientEmail) Validate() error
Validate checks the field values on ThreadRecipientEmail 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 (*ThreadRecipientEmail) ValidateAll ¶
func (m *ThreadRecipientEmail) ValidateAll() error
ValidateAll checks the field values on ThreadRecipientEmail 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 ThreadRecipientEmailMultiError, or nil if none found.
type ThreadRecipientEmailMultiError ¶
type ThreadRecipientEmailMultiError []error
ThreadRecipientEmailMultiError is an error wrapping multiple validation errors returned by ThreadRecipientEmail.ValidateAll() if the designated constraints aren't met.
func (ThreadRecipientEmailMultiError) AllErrors ¶
func (m ThreadRecipientEmailMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ThreadRecipientEmailMultiError) Error ¶
func (m ThreadRecipientEmailMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ThreadRecipientEmailValidationError ¶
type ThreadRecipientEmailValidationError struct {
// contains filtered or unexported fields
}
ThreadRecipientEmailValidationError is the validation error returned by ThreadRecipientEmail.Validate if the designated constraints aren't met.
func (ThreadRecipientEmailValidationError) Cause ¶
func (e ThreadRecipientEmailValidationError) Cause() error
Cause function returns cause value.
func (ThreadRecipientEmailValidationError) Error ¶
func (e ThreadRecipientEmailValidationError) Error() string
Error satisfies the builtin error interface
func (ThreadRecipientEmailValidationError) ErrorName ¶
func (e ThreadRecipientEmailValidationError) ErrorName() string
ErrorName returns error name.
func (ThreadRecipientEmailValidationError) Field ¶
func (e ThreadRecipientEmailValidationError) Field() string
Field function returns field value.
func (ThreadRecipientEmailValidationError) Key ¶
func (e ThreadRecipientEmailValidationError) Key() bool
Key function returns key value.
func (ThreadRecipientEmailValidationError) Reason ¶
func (e ThreadRecipientEmailValidationError) Reason() string
Reason function returns reason value.
type ThreadState ¶
type ThreadState struct { ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` EmailId uint64 `protobuf:"varint,2,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` LastRead *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_read,json=lastRead,proto3,oneof" json:"last_read,omitempty"` Unread *bool `protobuf:"varint,4,opt,name=unread,proto3,oneof" json:"unread,omitempty"` Important *bool `protobuf:"varint,5,opt,name=important,proto3,oneof" json:"important,omitempty"` Favorite *bool `protobuf:"varint,6,opt,name=favorite,proto3,oneof" json:"favorite,omitempty"` Muted *bool `protobuf:"varint,7,opt,name=muted,proto3,oneof" json:"muted,omitempty"` Archived *bool `protobuf:"varint,8,opt,name=archived,proto3,oneof" json:"archived,omitempty"` // contains filtered or unexported fields }
func (*ThreadState) Descriptor
deprecated
func (*ThreadState) Descriptor() ([]byte, []int)
Deprecated: Use ThreadState.ProtoReflect.Descriptor instead.
func (*ThreadState) GetArchived ¶
func (x *ThreadState) GetArchived() bool
func (*ThreadState) GetEmailId ¶
func (x *ThreadState) GetEmailId() uint64
func (*ThreadState) GetFavorite ¶
func (x *ThreadState) GetFavorite() bool
func (*ThreadState) GetImportant ¶
func (x *ThreadState) GetImportant() bool
func (*ThreadState) GetLastRead ¶
func (x *ThreadState) GetLastRead() *timestamp.Timestamp
func (*ThreadState) GetMuted ¶
func (x *ThreadState) GetMuted() bool
func (*ThreadState) GetThreadId ¶
func (x *ThreadState) GetThreadId() uint64
func (*ThreadState) GetUnread ¶
func (x *ThreadState) GetUnread() bool
func (*ThreadState) ProtoMessage ¶
func (*ThreadState) ProtoMessage()
func (*ThreadState) ProtoReflect ¶
func (x *ThreadState) ProtoReflect() protoreflect.Message
func (*ThreadState) Reset ¶
func (x *ThreadState) Reset()
func (*ThreadState) Sanitize ¶
func (m *ThreadState) Sanitize() error
func (*ThreadState) String ¶
func (x *ThreadState) String() string
func (*ThreadState) Validate ¶
func (m *ThreadState) Validate() error
Validate checks the field values on ThreadState 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 (*ThreadState) ValidateAll ¶
func (m *ThreadState) ValidateAll() error
ValidateAll checks the field values on ThreadState 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 ThreadStateMultiError, or nil if none found.
type ThreadStateMultiError ¶
type ThreadStateMultiError []error
ThreadStateMultiError is an error wrapping multiple validation errors returned by ThreadState.ValidateAll() if the designated constraints aren't met.
func (ThreadStateMultiError) AllErrors ¶
func (m ThreadStateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ThreadStateMultiError) Error ¶
func (m ThreadStateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ThreadStateValidationError ¶
type ThreadStateValidationError struct {
// contains filtered or unexported fields
}
ThreadStateValidationError is the validation error returned by ThreadState.Validate if the designated constraints aren't met.
func (ThreadStateValidationError) Cause ¶
func (e ThreadStateValidationError) Cause() error
Cause function returns cause value.
func (ThreadStateValidationError) Error ¶
func (e ThreadStateValidationError) Error() string
Error satisfies the builtin error interface
func (ThreadStateValidationError) ErrorName ¶
func (e ThreadStateValidationError) ErrorName() string
ErrorName returns error name.
func (ThreadStateValidationError) Field ¶
func (e ThreadStateValidationError) Field() string
Field function returns field value.
func (ThreadStateValidationError) Key ¶
func (e ThreadStateValidationError) Key() bool
Key function returns key value.
func (ThreadStateValidationError) Reason ¶
func (e ThreadStateValidationError) Reason() string
Reason function returns reason value.
type ThreadValidationError ¶
type ThreadValidationError struct {
// contains filtered or unexported fields
}
ThreadValidationError is the validation error returned by Thread.Validate if the designated constraints aren't met.
func (ThreadValidationError) Cause ¶
func (e ThreadValidationError) Cause() error
Cause function returns cause value.
func (ThreadValidationError) Error ¶
func (e ThreadValidationError) Error() string
Error satisfies the builtin error interface
func (ThreadValidationError) ErrorName ¶
func (e ThreadValidationError) ErrorName() string
ErrorName returns error name.
func (ThreadValidationError) Field ¶
func (e ThreadValidationError) Field() string
Field function returns field value.
func (ThreadValidationError) Key ¶
func (e ThreadValidationError) Key() bool
Key function returns key value.
func (ThreadValidationError) Reason ¶
func (e ThreadValidationError) Reason() string
Reason function returns reason value.
type UserAccess ¶
type UserAccess struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` // contains filtered or unexported fields }
func (*UserAccess) Descriptor
deprecated
func (*UserAccess) Descriptor() ([]byte, []int)
Deprecated: Use UserAccess.ProtoReflect.Descriptor instead.
func (*UserAccess) GetAccess ¶
func (x *UserAccess) GetAccess() AccessLevel
func (*UserAccess) GetCreatedAt ¶
func (x *UserAccess) GetCreatedAt() *timestamp.Timestamp
func (*UserAccess) GetId ¶
func (x *UserAccess) GetId() uint64
func (*UserAccess) GetTargetId ¶
func (x *UserAccess) GetTargetId() uint64
func (*UserAccess) GetUser ¶
func (x *UserAccess) GetUser() *users.UserShort
func (*UserAccess) GetUserId ¶
func (x *UserAccess) GetUserId() int32
func (*UserAccess) ProtoMessage ¶
func (*UserAccess) ProtoMessage()
func (*UserAccess) ProtoReflect ¶
func (x *UserAccess) ProtoReflect() protoreflect.Message
func (*UserAccess) Reset ¶
func (x *UserAccess) Reset()
func (*UserAccess) Sanitize ¶
func (m *UserAccess) Sanitize() error
func (*UserAccess) SetAccess ¶
func (x *UserAccess) SetAccess(access AccessLevel)
func (*UserAccess) SetUserId ¶
func (x *UserAccess) SetUserId(id int32)
func (*UserAccess) String ¶
func (x *UserAccess) String() string
func (*UserAccess) Validate ¶
func (m *UserAccess) Validate() error
Validate checks the field values on UserAccess 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 (*UserAccess) ValidateAll ¶
func (m *UserAccess) ValidateAll() error
ValidateAll checks the field values on UserAccess 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 UserAccessMultiError, or nil if none found.
type UserAccessMultiError ¶
type UserAccessMultiError []error
UserAccessMultiError is an error wrapping multiple validation errors returned by UserAccess.ValidateAll() if the designated constraints aren't met.
func (UserAccessMultiError) AllErrors ¶
func (m UserAccessMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserAccessMultiError) Error ¶
func (m UserAccessMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserAccessValidationError ¶
type UserAccessValidationError struct {
// contains filtered or unexported fields
}
UserAccessValidationError is the validation error returned by UserAccess.Validate if the designated constraints aren't met.
func (UserAccessValidationError) Cause ¶
func (e UserAccessValidationError) Cause() error
Cause function returns cause value.
func (UserAccessValidationError) Error ¶
func (e UserAccessValidationError) Error() string
Error satisfies the builtin error interface
func (UserAccessValidationError) ErrorName ¶
func (e UserAccessValidationError) ErrorName() string
ErrorName returns error name.
func (UserAccessValidationError) Field ¶
func (e UserAccessValidationError) Field() string
Field function returns field value.
func (UserAccessValidationError) Key ¶
func (e UserAccessValidationError) Key() bool
Key function returns key value.
func (UserAccessValidationError) Reason ¶
func (e UserAccessValidationError) Reason() string
Reason function returns reason value.
Source Files
¶
- access.go
- access.pb.go
- access.pb.sanitizer.go
- access.pb.validate.go
- email.go
- email.pb.go
- email.pb.sanitizer.go
- email.pb.validate.go
- events.pb.go
- events.pb.sanitizer.go
- events.pb.validate.go
- message.pb.dbscanner.go
- message.pb.go
- message.pb.sanitizer.go
- message.pb.validate.go
- settings.pb.go
- settings.pb.sanitizer.go
- settings.pb.validate.go
- template.pb.go
- template.pb.sanitizer.go
- template.pb.validate.go
- thread.pb.go
- thread.pb.sanitizer.go
- thread.pb.validate.go