Documentation
¶
Index ¶
- Variables
- type Access
- func (*Access) Descriptor() ([]byte, []int)deprecated
- func (x *Access) GetJobs() []*JobAccess
- func (x *Access) GetQualifications() []*QualificationAccess
- func (x *Access) GetUsers() []*UserAccess
- func (x *Access) IsEmpty() bool
- func (*Access) ProtoMessage()
- func (x *Access) ProtoReflect() protoreflect.Message
- func (x *Access) Reset()
- func (m *Access) Sanitize() error
- func (x *Access) String() string
- type AccessLevel
- func (AccessLevel) Descriptor() protoreflect.EnumDescriptor
- func (x AccessLevel) Enum() *AccessLevel
- func (AccessLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccessLevel) Number() protoreflect.EnumNumber
- func (x AccessLevel) String() string
- func (AccessLevel) Type() protoreflect.EnumType
- type Email
- func (*Email) Descriptor() ([]byte, []int)deprecated
- func (x *Email) GetAccess() *Access
- func (x *Email) GetCreatedAt() *timestamp.Timestamp
- func (x *Email) GetDeactivated() bool
- func (x *Email) GetDeletedAt() *timestamp.Timestamp
- func (x *Email) GetEmail() string
- func (x *Email) GetEmailChanged() *timestamp.Timestamp
- func (x *Email) GetId() uint64
- func (x *Email) GetJob() string
- func (x *Email) GetJobGrade() int32
- func (x *Email) GetLabel() string
- func (x *Email) GetSettings() *EmailSettings
- func (x *Email) GetUpdatedAt() *timestamp.Timestamp
- func (x *Email) GetUser() *users.UserShort
- func (x *Email) GetUserId() int32
- func (*Email) ProtoMessage()
- func (x *Email) ProtoReflect() protoreflect.Message
- func (x *Email) Reset()
- func (m *Email) Sanitize() error
- func (x *Email) SetJob(job string)
- func (x *Email) SetJobGrade(grade int32)
- func (x *Email) SetJobGradeLabel(label string)
- func (x *Email) SetJobLabel(label string)
- func (x *Email) String() string
- type EmailSettings
- func (*EmailSettings) Descriptor() ([]byte, []int)deprecated
- func (x *EmailSettings) GetBlockedEmails() []string
- func (x *EmailSettings) GetEmailId() uint64
- func (x *EmailSettings) GetSignature() string
- func (*EmailSettings) ProtoMessage()
- func (x *EmailSettings) ProtoReflect() protoreflect.Message
- func (x *EmailSettings) Reset()
- func (m *EmailSettings) Sanitize() error
- func (x *EmailSettings) String() string
- type JobAccess
- func (*JobAccess) Descriptor() ([]byte, []int)deprecated
- func (x *JobAccess) GetAccess() AccessLevel
- func (x *JobAccess) GetCreatedAt() *timestamp.Timestamp
- func (x *JobAccess) GetId() uint64
- func (x *JobAccess) GetJob() string
- func (x *JobAccess) GetJobGradeLabel() string
- func (x *JobAccess) GetJobLabel() string
- func (x *JobAccess) GetMinimumGrade() int32
- func (x *JobAccess) GetTargetId() uint64
- func (*JobAccess) ProtoMessage()
- func (x *JobAccess) ProtoReflect() protoreflect.Message
- func (x *JobAccess) Reset()
- func (m *JobAccess) Sanitize() error
- func (x *JobAccess) SetAccess(access AccessLevel)
- func (x *JobAccess) SetJob(job string)
- func (x *JobAccess) SetMinimumGrade(grade int32)
- func (x *JobAccess) String() string
- type MailerEvent
- func (*MailerEvent) Descriptor() ([]byte, []int)deprecated
- func (x *MailerEvent) GetData() isMailerEvent_Data
- func (x *MailerEvent) GetEmailDelete() uint64
- func (x *MailerEvent) GetEmailSettingsUpdated() *EmailSettings
- func (x *MailerEvent) GetEmailUpdate() *Email
- func (x *MailerEvent) GetMessageDelete() uint64
- func (x *MailerEvent) GetMessageUpdate() *Message
- func (x *MailerEvent) GetThreadDelete() uint64
- func (x *MailerEvent) GetThreadStateUpdate() *ThreadState
- func (x *MailerEvent) GetThreadUpdate() *Thread
- func (*MailerEvent) ProtoMessage()
- func (x *MailerEvent) ProtoReflect() protoreflect.Message
- func (x *MailerEvent) Reset()
- func (m *MailerEvent) Sanitize() error
- func (x *MailerEvent) String() string
- type MailerEvent_EmailDelete
- type MailerEvent_EmailSettingsUpdated
- type MailerEvent_EmailUpdate
- type MailerEvent_MessageDelete
- type MailerEvent_MessageUpdate
- type MailerEvent_ThreadDelete
- type MailerEvent_ThreadStateUpdate
- type MailerEvent_ThreadUpdate
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetContent() *content.Content
- func (x *Message) GetCreatedAt() *timestamp.Timestamp
- func (x *Message) GetCreatorId() int32
- func (x *Message) GetCreatorJob() string
- func (x *Message) GetData() *MessageData
- func (x *Message) GetDeletedAt() *timestamp.Timestamp
- func (x *Message) GetId() uint64
- func (x *Message) GetSender() *Email
- func (x *Message) GetSenderId() uint64
- func (x *Message) GetThreadId() uint64
- func (x *Message) GetTitle() string
- func (x *Message) GetUpdatedAt() *timestamp.Timestamp
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (m *Message) Sanitize() error
- func (x *Message) String() string
- type MessageAttachment
- func (*MessageAttachment) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAttachment) GetData() isMessageAttachment_Data
- func (x *MessageAttachment) GetDocument() *MessageAttachmentDocument
- func (*MessageAttachment) ProtoMessage()
- func (x *MessageAttachment) ProtoReflect() protoreflect.Message
- func (x *MessageAttachment) Reset()
- func (m *MessageAttachment) Sanitize() error
- func (x *MessageAttachment) String() string
- type MessageAttachmentDocument
- func (*MessageAttachmentDocument) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAttachmentDocument) GetId() uint64
- func (x *MessageAttachmentDocument) GetTitle() string
- func (*MessageAttachmentDocument) ProtoMessage()
- func (x *MessageAttachmentDocument) ProtoReflect() protoreflect.Message
- func (x *MessageAttachmentDocument) Reset()
- func (m *MessageAttachmentDocument) Sanitize() error
- func (x *MessageAttachmentDocument) String() string
- type MessageAttachment_Document
- type MessageData
- func (*MessageData) Descriptor() ([]byte, []int)deprecated
- func (x *MessageData) GetAttachments() []*MessageAttachment
- func (*MessageData) ProtoMessage()
- func (x *MessageData) ProtoReflect() protoreflect.Message
- func (x *MessageData) Reset()
- func (m *MessageData) Sanitize() error
- func (x *MessageData) Scan(value any) error
- func (x *MessageData) String() string
- func (x *MessageData) Value() (driver.Value, error)
- type QualificationAccess
- func (*QualificationAccess) Descriptor() ([]byte, []int)deprecated
- func (x *QualificationAccess) GetAccess() AccessLevel
- func (x *QualificationAccess) GetCreatedAt() *timestamp.Timestamp
- func (x *QualificationAccess) GetId() uint64
- func (x *QualificationAccess) GetQualification() *qualifications.QualificationShort
- func (x *QualificationAccess) GetQualificationId() uint64
- func (x *QualificationAccess) GetTargetId() uint64
- func (*QualificationAccess) ProtoMessage()
- func (x *QualificationAccess) ProtoReflect() protoreflect.Message
- func (x *QualificationAccess) Reset()
- func (m *QualificationAccess) Sanitize() error
- func (x *QualificationAccess) SetAccess(access AccessLevel)
- func (x *QualificationAccess) SetQualificationId(id uint64)
- func (x *QualificationAccess) String() string
- type Template
- func (*Template) Descriptor() ([]byte, []int)deprecated
- func (x *Template) GetContent() string
- func (x *Template) GetCreatedAt() *timestamp.Timestamp
- func (x *Template) GetCreatorId() int32
- func (x *Template) GetCreatorJob() string
- func (x *Template) GetDeletedAt() *timestamp.Timestamp
- func (x *Template) GetEmailId() uint64
- func (x *Template) GetId() uint64
- func (x *Template) GetTitle() string
- func (x *Template) GetUpdatedAt() *timestamp.Timestamp
- func (*Template) ProtoMessage()
- func (x *Template) ProtoReflect() protoreflect.Message
- func (x *Template) Reset()
- func (m *Template) Sanitize() error
- func (x *Template) String() string
- type Thread
- func (*Thread) Descriptor() ([]byte, []int)deprecated
- func (x *Thread) GetCreatedAt() *timestamp.Timestamp
- func (x *Thread) GetCreator() *users.UserShort
- func (x *Thread) GetCreatorEmail() *Email
- func (x *Thread) GetCreatorEmailId() uint64
- func (x *Thread) GetCreatorId() int32
- func (x *Thread) GetDeletedAt() *timestamp.Timestamp
- func (x *Thread) GetId() uint64
- func (x *Thread) GetRecipients() []*ThreadRecipientEmail
- func (x *Thread) GetState() *ThreadState
- func (x *Thread) GetTitle() string
- func (x *Thread) GetUpdatedAt() *timestamp.Timestamp
- func (*Thread) ProtoMessage()
- func (x *Thread) ProtoReflect() protoreflect.Message
- func (x *Thread) Reset()
- func (m *Thread) Sanitize() error
- func (x *Thread) String() string
- type ThreadRecipientEmail
- func (*ThreadRecipientEmail) Descriptor() ([]byte, []int)deprecated
- func (x *ThreadRecipientEmail) GetCreatedAt() *timestamp.Timestamp
- func (x *ThreadRecipientEmail) GetEmail() *Email
- func (x *ThreadRecipientEmail) GetEmailId() uint64
- func (x *ThreadRecipientEmail) GetId() uint64
- func (x *ThreadRecipientEmail) GetTargetId() uint64
- func (*ThreadRecipientEmail) ProtoMessage()
- func (x *ThreadRecipientEmail) ProtoReflect() protoreflect.Message
- func (x *ThreadRecipientEmail) Reset()
- func (m *ThreadRecipientEmail) Sanitize() error
- func (x *ThreadRecipientEmail) String() string
- type ThreadState
- func (*ThreadState) Descriptor() ([]byte, []int)deprecated
- func (x *ThreadState) GetArchived() bool
- func (x *ThreadState) GetEmailId() uint64
- func (x *ThreadState) GetFavorite() bool
- func (x *ThreadState) GetImportant() bool
- func (x *ThreadState) GetLastRead() *timestamp.Timestamp
- func (x *ThreadState) GetMuted() bool
- func (x *ThreadState) GetThreadId() uint64
- func (x *ThreadState) GetUnread() bool
- func (*ThreadState) ProtoMessage()
- func (x *ThreadState) ProtoReflect() protoreflect.Message
- func (x *ThreadState) Reset()
- func (m *ThreadState) Sanitize() error
- func (x *ThreadState) String() string
- type UserAccess
- func (*UserAccess) Descriptor() ([]byte, []int)deprecated
- func (x *UserAccess) GetAccess() AccessLevel
- func (x *UserAccess) GetCreatedAt() *timestamp.Timestamp
- func (x *UserAccess) GetId() uint64
- func (x *UserAccess) GetTargetId() uint64
- func (x *UserAccess) GetUser() *users.UserShort
- func (x *UserAccess) GetUserId() int32
- func (*UserAccess) ProtoMessage()
- func (x *UserAccess) ProtoReflect() protoreflect.Message
- func (x *UserAccess) Reset()
- func (m *UserAccess) Sanitize() error
- func (x *UserAccess) SetAccess(access AccessLevel)
- func (x *UserAccess) SetUserId(id int32)
- func (x *UserAccess) String() string
Constants ¶
This section is empty.
Variables ¶
var ( AccessLevel_name = map[int32]string{ 0: "ACCESS_LEVEL_UNSPECIFIED", 1: "ACCESS_LEVEL_BLOCKED", 2: "ACCESS_LEVEL_READ", 3: "ACCESS_LEVEL_WRITE", 4: "ACCESS_LEVEL_MANAGE", } AccessLevel_value = map[string]int32{ "ACCESS_LEVEL_UNSPECIFIED": 0, "ACCESS_LEVEL_BLOCKED": 1, "ACCESS_LEVEL_READ": 2, "ACCESS_LEVEL_WRITE": 3, "ACCESS_LEVEL_MANAGE": 4, } )
Enum value maps for AccessLevel.
var File_resources_mailer_access_proto protoreflect.FileDescriptor
var File_resources_mailer_email_proto protoreflect.FileDescriptor
var File_resources_mailer_events_proto protoreflect.FileDescriptor
var File_resources_mailer_message_proto protoreflect.FileDescriptor
var File_resources_mailer_settings_proto protoreflect.FileDescriptor
var File_resources_mailer_template_proto protoreflect.FileDescriptor
var File_resources_mailer_thread_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct { Jobs []*JobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` 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) GetQualifications ¶
func (x *Access) GetQualifications() []*QualificationAccess
func (*Access) GetUsers ¶
func (x *Access) GetUsers() []*UserAccess
func (*Access) ProtoMessage ¶
func (*Access) ProtoMessage()
func (*Access) ProtoReflect ¶
func (x *Access) ProtoReflect() protoreflect.Message
type AccessLevel ¶
type AccessLevel int32
const ( AccessLevel_ACCESS_LEVEL_UNSPECIFIED AccessLevel = 0 AccessLevel_ACCESS_LEVEL_BLOCKED AccessLevel = 1 AccessLevel_ACCESS_LEVEL_READ AccessLevel = 2 AccessLevel_ACCESS_LEVEL_WRITE AccessLevel = 3 AccessLevel_ACCESS_LEVEL_MANAGE AccessLevel = 4 )
func (AccessLevel) Descriptor ¶
func (AccessLevel) Descriptor() protoreflect.EnumDescriptor
func (AccessLevel) Enum ¶
func (x AccessLevel) Enum() *AccessLevel
func (AccessLevel) EnumDescriptor
deprecated
func (AccessLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccessLevel.Descriptor instead.
func (AccessLevel) Number ¶
func (x AccessLevel) Number() protoreflect.EnumNumber
func (AccessLevel) String ¶
func (x AccessLevel) String() string
func (AccessLevel) Type ¶
func (AccessLevel) Type() protoreflect.EnumType
type 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) GetCreatedAt ¶
func (*Email) GetDeactivated ¶
func (*Email) GetDeletedAt ¶
func (*Email) GetEmailChanged ¶
func (*Email) GetJobGrade ¶
func (*Email) GetSettings ¶
func (x *Email) GetSettings() *EmailSettings
func (*Email) GetUpdatedAt ¶
func (*Email) ProtoMessage ¶
func (*Email) ProtoMessage()
func (*Email) ProtoReflect ¶
func (x *Email) ProtoReflect() protoreflect.Message
func (*Email) SetJobGrade ¶
func (*Email) SetJobGradeLabel ¶
func (*Email) SetJobLabel ¶
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) GetAccess ¶
func (x *JobAccess) GetAccess() AccessLevel
func (*JobAccess) GetCreatedAt ¶
func (*JobAccess) GetJobGradeLabel ¶
func (*JobAccess) GetJobLabel ¶
func (*JobAccess) GetMinimumGrade ¶
func (*JobAccess) GetTargetId ¶
func (*JobAccess) ProtoMessage ¶
func (*JobAccess) ProtoMessage()
func (*JobAccess) ProtoReflect ¶
func (x *JobAccess) ProtoReflect() protoreflect.Message
func (*JobAccess) SetAccess ¶
func (x *JobAccess) SetAccess(access AccessLevel)
func (*JobAccess) SetMinimumGrade ¶
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) GetContent ¶
func (*Message) GetCreatedAt ¶
func (*Message) GetCreatorId ¶
func (*Message) GetCreatorJob ¶
func (*Message) GetData ¶
func (x *Message) GetData() *MessageData
func (*Message) GetDeletedAt ¶
func (*Message) GetSenderId ¶
func (*Message) GetThreadId ¶
func (*Message) GetUpdatedAt ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
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 (x *MessageAttachmentDocument) ProtoReflect() protoreflect.Message
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
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) GetContent ¶
func (*Template) GetCreatedAt ¶
func (*Template) GetCreatorId ¶
func (*Template) GetCreatorJob ¶
func (*Template) GetDeletedAt ¶
func (*Template) GetEmailId ¶
func (*Template) GetUpdatedAt ¶
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
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) GetCreatedAt ¶
func (*Thread) GetCreator ¶
func (*Thread) GetCreatorEmail ¶
func (*Thread) GetCreatorEmailId ¶
func (*Thread) GetCreatorId ¶
func (*Thread) GetDeletedAt ¶
func (*Thread) GetRecipients ¶
func (x *Thread) GetRecipients() []*ThreadRecipientEmail
func (*Thread) GetState ¶
func (x *Thread) GetState() *ThreadState
func (*Thread) GetUpdatedAt ¶
func (*Thread) ProtoMessage ¶
func (*Thread) ProtoMessage()
func (*Thread) ProtoReflect ¶
func (x *Thread) ProtoReflect() protoreflect.Message
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