mailer

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_resources_mailer_access_proto protoreflect.FileDescriptor
View Source
var File_resources_mailer_email_proto protoreflect.FileDescriptor
View Source
var File_resources_mailer_events_proto protoreflect.FileDescriptor
View Source
var File_resources_mailer_message_proto protoreflect.FileDescriptor
View Source
var File_resources_mailer_settings_proto protoreflect.FileDescriptor
View Source
var File_resources_mailer_template_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Access.ProtoReflect.Descriptor instead.

func (*Access) GetJobs

func (x *Access) GetJobs() []*JobAccess

func (*Access) GetQualifications

func (x *Access) GetQualifications() []*QualificationAccess

func (*Access) GetUsers

func (x *Access) GetUsers() []*UserAccess

func (*Access) IsEmpty

func (x *Access) IsEmpty() bool

func (*Access) ProtoMessage

func (*Access) ProtoMessage()

func (*Access) ProtoReflect

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

func (*Access) Reset

func (x *Access) Reset()

func (*Access) Sanitize

func (m *Access) Sanitize() error

func (*Access) String

func (x *Access) String() string

func (*Access) Validate

func (m *Access) Validate() error

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

func (m *Access) ValidateAll() error

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) 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

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

Deprecated: Use Email.ProtoReflect.Descriptor instead.

func (*Email) GetAccess

func (x *Email) GetAccess() *Access

func (*Email) GetCreatedAt

func (x *Email) GetCreatedAt() *timestamp.Timestamp

func (*Email) GetDeactivated

func (x *Email) GetDeactivated() bool

func (*Email) GetDeletedAt

func (x *Email) GetDeletedAt() *timestamp.Timestamp

func (*Email) GetEmail

func (x *Email) GetEmail() string

func (*Email) GetEmailChanged

func (x *Email) GetEmailChanged() *timestamp.Timestamp

func (*Email) GetId

func (x *Email) GetId() uint64

func (*Email) GetInternal

func (x *Email) GetInternal() bool

func (*Email) GetJob

func (x *Email) GetJob() string

func (*Email) GetJobGrade

func (x *Email) GetJobGrade() int32

func (*Email) GetLabel

func (x *Email) GetLabel() string

func (*Email) GetSettings

func (x *Email) GetSettings() *EmailSettings

func (*Email) GetUpdatedAt

func (x *Email) GetUpdatedAt() *timestamp.Timestamp

func (*Email) GetUser

func (x *Email) GetUser() *users.UserShort

func (*Email) GetUserId

func (x *Email) GetUserId() int32

func (*Email) ProtoMessage

func (*Email) ProtoMessage()

func (*Email) ProtoReflect

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

func (*Email) Reset

func (x *Email) Reset()

func (*Email) Sanitize

func (m *Email) Sanitize() error

func (*Email) SetJob

func (x *Email) SetJob(job string)

func (*Email) SetJobGrade

func (x *Email) SetJobGrade(grade int32)

func (*Email) SetJobGradeLabel

func (x *Email) SetJobGradeLabel(label string)

func (*Email) SetJobLabel

func (x *Email) SetJobLabel(label string)

func (*Email) String

func (x *Email) String() string

func (*Email) Validate

func (m *Email) Validate() error

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

func (m *Email) ValidateAll() error

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

Cause function returns cause value.

func (EmailSettingsValidationError) Error

Error satisfies the builtin error interface

func (EmailSettingsValidationError) ErrorName

func (e EmailSettingsValidationError) ErrorName() string

ErrorName returns error name.

func (EmailSettingsValidationError) Field

Field function returns field value.

func (EmailSettingsValidationError) Key

Key function returns key value.

func (EmailSettingsValidationError) Reason

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

Deprecated: Use JobAccess.ProtoReflect.Descriptor instead.

func (*JobAccess) GetAccess

func (x *JobAccess) GetAccess() AccessLevel

func (*JobAccess) GetCreatedAt

func (x *JobAccess) GetCreatedAt() *timestamp.Timestamp

func (*JobAccess) GetId

func (x *JobAccess) GetId() uint64

func (*JobAccess) GetJob

func (x *JobAccess) GetJob() string

func (*JobAccess) GetJobGradeLabel

func (x *JobAccess) GetJobGradeLabel() string

func (*JobAccess) GetJobLabel

func (x *JobAccess) GetJobLabel() string

func (*JobAccess) GetMinimumGrade

func (x *JobAccess) GetMinimumGrade() int32

func (*JobAccess) GetTargetId

func (x *JobAccess) GetTargetId() uint64

func (*JobAccess) ProtoMessage

func (*JobAccess) ProtoMessage()

func (*JobAccess) ProtoReflect

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

func (*JobAccess) Reset

func (x *JobAccess) Reset()

func (*JobAccess) Sanitize

func (m *JobAccess) Sanitize() error

func (*JobAccess) SetAccess

func (x *JobAccess) SetAccess(access AccessLevel)

func (*JobAccess) SetJob

func (x *JobAccess) SetJob(job string)

func (*JobAccess) SetMinimumGrade

func (x *JobAccess) SetMinimumGrade(grade int32)

func (*JobAccess) String

func (x *JobAccess) String() string

func (*JobAccess) Validate

func (m *JobAccess) Validate() error

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

func (m *JobAccess) ValidateAll() error

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

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

Cause function returns cause value.

func (MailerEventValidationError) Error

Error satisfies the builtin error interface

func (MailerEventValidationError) ErrorName

func (e MailerEventValidationError) ErrorName() string

ErrorName returns error name.

func (MailerEventValidationError) Field

Field function returns field value.

func (MailerEventValidationError) Key

Key function returns key value.

func (MailerEventValidationError) Reason

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetContent

func (x *Message) GetContent() *content.Content

func (*Message) GetCreatedAt

func (x *Message) GetCreatedAt() *timestamp.Timestamp

func (*Message) GetCreatorId

func (x *Message) GetCreatorId() int32

func (*Message) GetCreatorJob

func (x *Message) GetCreatorJob() string

func (*Message) GetData

func (x *Message) GetData() *MessageData

func (*Message) GetDeletedAt

func (x *Message) GetDeletedAt() *timestamp.Timestamp

func (*Message) GetId

func (x *Message) GetId() uint64

func (*Message) GetSender

func (x *Message) GetSender() *Email

func (*Message) GetSenderId

func (x *Message) GetSenderId() uint64

func (*Message) GetThreadId

func (x *Message) GetThreadId() uint64

func (*Message) GetTitle

func (x *Message) GetTitle() string

func (*Message) GetUpdatedAt

func (x *Message) GetUpdatedAt() *timestamp.Timestamp

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) Sanitize

func (m *Message) Sanitize() error

func (*Message) String

func (x *Message) String() string

func (*Message) Validate

func (m *Message) Validate() error

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

func (m *Message) ValidateAll() error

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 (*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

AllErrors returns a list of validation violation errors.

func (MessageAttachmentDocumentMultiError) Error added in v0.9.5

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

Cause function returns cause value.

func (MessageAttachmentDocumentValidationError) Error added in v0.9.5

Error satisfies the builtin error interface

func (MessageAttachmentDocumentValidationError) ErrorName added in v0.9.5

ErrorName returns error name.

func (MessageAttachmentDocumentValidationError) Field added in v0.9.5

Field function returns field value.

func (MessageAttachmentDocumentValidationError) Key added in v0.9.5

Key function returns key value.

func (MessageAttachmentDocumentValidationError) Reason added in v0.9.5

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

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

Cause function returns cause value.

func (MessageAttachmentValidationError) Error added in v0.9.5

Error satisfies the builtin error interface

func (MessageAttachmentValidationError) ErrorName added in v0.9.5

ErrorName returns error name.

func (MessageAttachmentValidationError) Field added in v0.9.5

Field function returns field value.

func (MessageAttachmentValidationError) Key added in v0.9.5

Key function returns key value.

func (MessageAttachmentValidationError) Reason added in v0.9.5

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.

func (*MessageData) Value

func (x *MessageData) Value() (driver.Value, error)

Value marshals the MessageData value into driver.Valuer.

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

Cause function returns cause value.

func (MessageDataValidationError) Error

Error satisfies the builtin error interface

func (MessageDataValidationError) ErrorName

func (e MessageDataValidationError) ErrorName() string

ErrorName returns error name.

func (MessageDataValidationError) Field

Field function returns field value.

func (MessageDataValidationError) Key

Key function returns key value.

func (MessageDataValidationError) Reason

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

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

Cause function returns cause value.

func (QualificationAccessValidationError) Error

Error satisfies the builtin error interface

func (QualificationAccessValidationError) ErrorName

ErrorName returns error name.

func (QualificationAccessValidationError) Field

Field function returns field value.

func (QualificationAccessValidationError) Key

Key function returns key value.

func (QualificationAccessValidationError) Reason

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

Deprecated: Use Template.ProtoReflect.Descriptor instead.

func (*Template) GetContent

func (x *Template) GetContent() string

func (*Template) GetCreatedAt

func (x *Template) GetCreatedAt() *timestamp.Timestamp

func (*Template) GetCreatorId

func (x *Template) GetCreatorId() int32

func (*Template) GetCreatorJob

func (x *Template) GetCreatorJob() string

func (*Template) GetDeletedAt

func (x *Template) GetDeletedAt() *timestamp.Timestamp

func (*Template) GetEmailId

func (x *Template) GetEmailId() uint64

func (*Template) GetId

func (x *Template) GetId() uint64

func (*Template) GetTitle

func (x *Template) GetTitle() string

func (*Template) GetUpdatedAt

func (x *Template) GetUpdatedAt() *timestamp.Timestamp

func (*Template) ProtoMessage

func (*Template) ProtoMessage()

func (*Template) ProtoReflect

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

func (*Template) Reset

func (x *Template) Reset()

func (*Template) Sanitize

func (m *Template) Sanitize() error

func (*Template) String

func (x *Template) String() string

func (*Template) Validate

func (m *Template) Validate() error

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

func (m *Template) ValidateAll() error

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

Deprecated: Use Thread.ProtoReflect.Descriptor instead.

func (*Thread) GetCreatedAt

func (x *Thread) GetCreatedAt() *timestamp.Timestamp

func (*Thread) GetCreator

func (x *Thread) GetCreator() *users.UserShort

func (*Thread) GetCreatorEmail

func (x *Thread) GetCreatorEmail() *Email

func (*Thread) GetCreatorEmailId

func (x *Thread) GetCreatorEmailId() uint64

func (*Thread) GetCreatorId

func (x *Thread) GetCreatorId() int32

func (*Thread) GetDeletedAt

func (x *Thread) GetDeletedAt() *timestamp.Timestamp

func (*Thread) GetId

func (x *Thread) GetId() uint64

func (*Thread) GetRecipients

func (x *Thread) GetRecipients() []*ThreadRecipientEmail

func (*Thread) GetState

func (x *Thread) GetState() *ThreadState

func (*Thread) GetTitle

func (x *Thread) GetTitle() string

func (*Thread) GetUpdatedAt

func (x *Thread) GetUpdatedAt() *timestamp.Timestamp

func (*Thread) ProtoMessage

func (*Thread) ProtoMessage()

func (*Thread) ProtoReflect

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

func (*Thread) Reset

func (x *Thread) Reset()

func (*Thread) Sanitize

func (m *Thread) Sanitize() error

func (*Thread) String

func (x *Thread) String() string

func (*Thread) Validate

func (m *Thread) Validate() error

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

func (m *Thread) ValidateAll() error

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

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

Cause function returns cause value.

func (ThreadRecipientEmailValidationError) Error

Error satisfies the builtin error interface

func (ThreadRecipientEmailValidationError) ErrorName

ErrorName returns error name.

func (ThreadRecipientEmailValidationError) Field

Field function returns field value.

func (ThreadRecipientEmailValidationError) Key

Key function returns key value.

func (ThreadRecipientEmailValidationError) Reason

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

Cause function returns cause value.

func (ThreadStateValidationError) Error

Error satisfies the builtin error interface

func (ThreadStateValidationError) ErrorName

func (e ThreadStateValidationError) ErrorName() string

ErrorName returns error name.

func (ThreadStateValidationError) Field

Field function returns field value.

func (ThreadStateValidationError) Key

Key function returns key value.

func (ThreadStateValidationError) Reason

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

Error satisfies the builtin error interface

func (UserAccessValidationError) ErrorName

func (e UserAccessValidationError) ErrorName() string

ErrorName returns error name.

func (UserAccessValidationError) Field

Field function returns field value.

func (UserAccessValidationError) Key

Key function returns key value.

func (UserAccessValidationError) Reason

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