mailer

package
v2025.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 14 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"`
	Users          []*UserAccess          `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"`
	Qualifications []*QualificationAccess `protobuf:"bytes,3,rep,name=qualifications,proto3" json:"qualifications,omitempty" 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

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 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"`
	Access   *Access        `protobuf:"bytes,12,opt,name=access,proto3" json:"access,omitempty"`
	Settings *EmailSettings `protobuf:"bytes,13,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) 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

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

type JobAccess

type JobAccess struct {
	Id            uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id" sql:"primary_key"`
	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

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

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"`
	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

type MessageAttachment

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

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

Deprecated: Use MessageAttachment.ProtoReflect.Descriptor instead.

func (*MessageAttachment) GetData

func (x *MessageAttachment) GetData() isMessageAttachment_Data

func (*MessageAttachment) GetDocument

func (x *MessageAttachment) GetDocument() *MessageAttachmentDocument

func (*MessageAttachment) ProtoMessage

func (*MessageAttachment) ProtoMessage()

func (*MessageAttachment) ProtoReflect

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

func (*MessageAttachment) Reset

func (x *MessageAttachment) Reset()

func (*MessageAttachment) Sanitize

func (m *MessageAttachment) Sanitize() error

func (*MessageAttachment) String

func (x *MessageAttachment) String() string

type MessageAttachmentDocument

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

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

Deprecated: Use MessageAttachmentDocument.ProtoReflect.Descriptor instead.

func (*MessageAttachmentDocument) GetId

func (x *MessageAttachmentDocument) GetId() uint64

func (*MessageAttachmentDocument) GetTitle

func (x *MessageAttachmentDocument) GetTitle() string

func (*MessageAttachmentDocument) ProtoMessage

func (*MessageAttachmentDocument) ProtoMessage()

func (*MessageAttachmentDocument) ProtoReflect

func (*MessageAttachmentDocument) Reset

func (x *MessageAttachmentDocument) Reset()

func (*MessageAttachmentDocument) Sanitize

func (m *MessageAttachmentDocument) Sanitize() error

func (*MessageAttachmentDocument) String

func (x *MessageAttachmentDocument) String() string

type MessageAttachment_Document

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

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

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

Value marshals the MessageData value into driver.Valuer.

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

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

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"`
	// @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"`
	// 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

type ThreadRecipientEmail

type ThreadRecipientEmail struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id" sql:"primary_key"`
	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"`
	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

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

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

Jump to

Keyboard shortcuts

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