Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Broadcast) predicate.Broadcast
- func Body(v string) predicate.Broadcast
- func BodyContains(v string) predicate.Broadcast
- func BodyContainsFold(v string) predicate.Broadcast
- func BodyEQ(v string) predicate.Broadcast
- func BodyEqualFold(v string) predicate.Broadcast
- func BodyGT(v string) predicate.Broadcast
- func BodyGTE(v string) predicate.Broadcast
- func BodyHasPrefix(v string) predicate.Broadcast
- func BodyHasSuffix(v string) predicate.Broadcast
- func BodyIn(vs ...string) predicate.Broadcast
- func BodyLT(v string) predicate.Broadcast
- func BodyLTE(v string) predicate.Broadcast
- func BodyNEQ(v string) predicate.Broadcast
- func BodyNotIn(vs ...string) predicate.Broadcast
- func CreatedAt(v time.Time) predicate.Broadcast
- func CreatedAtEQ(v time.Time) predicate.Broadcast
- func CreatedAtGT(v time.Time) predicate.Broadcast
- func CreatedAtGTE(v time.Time) predicate.Broadcast
- func CreatedAtIn(vs ...time.Time) predicate.Broadcast
- func CreatedAtLT(v time.Time) predicate.Broadcast
- func CreatedAtLTE(v time.Time) predicate.Broadcast
- func CreatedAtNEQ(v time.Time) predicate.Broadcast
- func CreatedAtNotIn(vs ...time.Time) predicate.Broadcast
- func DiscardedAt(v time.Time) predicate.Broadcast
- func DiscardedAtEQ(v time.Time) predicate.Broadcast
- func DiscardedAtGT(v time.Time) predicate.Broadcast
- func DiscardedAtGTE(v time.Time) predicate.Broadcast
- func DiscardedAtIn(vs ...time.Time) predicate.Broadcast
- func DiscardedAtIsNil() predicate.Broadcast
- func DiscardedAtLT(v time.Time) predicate.Broadcast
- func DiscardedAtLTE(v time.Time) predicate.Broadcast
- func DiscardedAtNEQ(v time.Time) predicate.Broadcast
- func DiscardedAtNotIn(vs ...time.Time) predicate.Broadcast
- func DiscardedAtNotNil() predicate.Broadcast
- func DocIsNil() predicate.Broadcast
- func DocNotNil() predicate.Broadcast
- func EditorVersion(v string) predicate.Broadcast
- func EditorVersionContains(v string) predicate.Broadcast
- func EditorVersionContainsFold(v string) predicate.Broadcast
- func EditorVersionEQ(v string) predicate.Broadcast
- func EditorVersionEqualFold(v string) predicate.Broadcast
- func EditorVersionGT(v string) predicate.Broadcast
- func EditorVersionGTE(v string) predicate.Broadcast
- func EditorVersionHasPrefix(v string) predicate.Broadcast
- func EditorVersionHasSuffix(v string) predicate.Broadcast
- func EditorVersionIn(vs ...string) predicate.Broadcast
- func EditorVersionIsNil() predicate.Broadcast
- func EditorVersionLT(v string) predicate.Broadcast
- func EditorVersionLTE(v string) predicate.Broadcast
- func EditorVersionNEQ(v string) predicate.Broadcast
- func EditorVersionNotIn(vs ...string) predicate.Broadcast
- func EditorVersionNotNil() predicate.Broadcast
- func FromEmail(v string) predicate.Broadcast
- func FromEmailContains(v string) predicate.Broadcast
- func FromEmailContainsFold(v string) predicate.Broadcast
- func FromEmailEQ(v string) predicate.Broadcast
- func FromEmailEqualFold(v string) predicate.Broadcast
- func FromEmailGT(v string) predicate.Broadcast
- func FromEmailGTE(v string) predicate.Broadcast
- func FromEmailHasPrefix(v string) predicate.Broadcast
- func FromEmailHasSuffix(v string) predicate.Broadcast
- func FromEmailIn(vs ...string) predicate.Broadcast
- func FromEmailIsNil() predicate.Broadcast
- func FromEmailLT(v string) predicate.Broadcast
- func FromEmailLTE(v string) predicate.Broadcast
- func FromEmailNEQ(v string) predicate.Broadcast
- func FromEmailNotIn(vs ...string) predicate.Broadcast
- func FromEmailNotNil() predicate.Broadcast
- func FromName(v string) predicate.Broadcast
- func FromNameContains(v string) predicate.Broadcast
- func FromNameContainsFold(v string) predicate.Broadcast
- func FromNameEQ(v string) predicate.Broadcast
- func FromNameEqualFold(v string) predicate.Broadcast
- func FromNameGT(v string) predicate.Broadcast
- func FromNameGTE(v string) predicate.Broadcast
- func FromNameHasPrefix(v string) predicate.Broadcast
- func FromNameHasSuffix(v string) predicate.Broadcast
- func FromNameIn(vs ...string) predicate.Broadcast
- func FromNameIsNil() predicate.Broadcast
- func FromNameLT(v string) predicate.Broadcast
- func FromNameLTE(v string) predicate.Broadcast
- func FromNameNEQ(v string) predicate.Broadcast
- func FromNameNotIn(vs ...string) predicate.Broadcast
- func FromNameNotNil() predicate.Broadcast
- func HasIntegration() predicate.Broadcast
- func HasIntegrationWith(preds ...predicate.Integration) predicate.Broadcast
- func HasRecipients() predicate.Broadcast
- func HasRecipientsWith(preds ...predicate.BroadcastRecipient) predicate.Broadcast
- func HasSegment() predicate.Broadcast
- func HasSegmentWith(preds ...predicate.Segment) predicate.Broadcast
- func HasWorkspace() predicate.Broadcast
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Broadcast
- func HoldReason(v string) predicate.Broadcast
- func HoldReasonContains(v string) predicate.Broadcast
- func HoldReasonContainsFold(v string) predicate.Broadcast
- func HoldReasonEQ(v string) predicate.Broadcast
- func HoldReasonEqualFold(v string) predicate.Broadcast
- func HoldReasonGT(v string) predicate.Broadcast
- func HoldReasonGTE(v string) predicate.Broadcast
- func HoldReasonHasPrefix(v string) predicate.Broadcast
- func HoldReasonHasSuffix(v string) predicate.Broadcast
- func HoldReasonIn(vs ...string) predicate.Broadcast
- func HoldReasonIsNil() predicate.Broadcast
- func HoldReasonLT(v string) predicate.Broadcast
- func HoldReasonLTE(v string) predicate.Broadcast
- func HoldReasonNEQ(v string) predicate.Broadcast
- func HoldReasonNotIn(vs ...string) predicate.Broadcast
- func HoldReasonNotNil() predicate.Broadcast
- func ID(id int64) predicate.Broadcast
- func IDEQ(id int64) predicate.Broadcast
- func IDGT(id int64) predicate.Broadcast
- func IDGTE(id int64) predicate.Broadcast
- func IDIn(ids ...int64) predicate.Broadcast
- func IDLT(id int64) predicate.Broadcast
- func IDLTE(id int64) predicate.Broadcast
- func IDNEQ(id int64) predicate.Broadcast
- func IDNotIn(ids ...int64) predicate.Broadcast
- func IntegrationID(v int64) predicate.Broadcast
- func IntegrationIDEQ(v int64) predicate.Broadcast
- func IntegrationIDIn(vs ...int64) predicate.Broadcast
- func IntegrationIDIsNil() predicate.Broadcast
- func IntegrationIDNEQ(v int64) predicate.Broadcast
- func IntegrationIDNotIn(vs ...int64) predicate.Broadcast
- func IntegrationIDNotNil() predicate.Broadcast
- func LastScheduledAt(v time.Time) predicate.Broadcast
- func LastScheduledAtEQ(v time.Time) predicate.Broadcast
- func LastScheduledAtGT(v time.Time) predicate.Broadcast
- func LastScheduledAtGTE(v time.Time) predicate.Broadcast
- func LastScheduledAtIn(vs ...time.Time) predicate.Broadcast
- func LastScheduledAtIsNil() predicate.Broadcast
- func LastScheduledAtLT(v time.Time) predicate.Broadcast
- func LastScheduledAtLTE(v time.Time) predicate.Broadcast
- func LastScheduledAtNEQ(v time.Time) predicate.Broadcast
- func LastScheduledAtNotIn(vs ...time.Time) predicate.Broadcast
- func LastScheduledAtNotNil() predicate.Broadcast
- func Name(v string) predicate.Broadcast
- func NameContains(v string) predicate.Broadcast
- func NameContainsFold(v string) predicate.Broadcast
- func NameEQ(v string) predicate.Broadcast
- func NameEqualFold(v string) predicate.Broadcast
- func NameGT(v string) predicate.Broadcast
- func NameGTE(v string) predicate.Broadcast
- func NameHasPrefix(v string) predicate.Broadcast
- func NameHasSuffix(v string) predicate.Broadcast
- func NameIn(vs ...string) predicate.Broadcast
- func NameLT(v string) predicate.Broadcast
- func NameLTE(v string) predicate.Broadcast
- func NameNEQ(v string) predicate.Broadcast
- func NameNotIn(vs ...string) predicate.Broadcast
- func Not(p predicate.Broadcast) predicate.Broadcast
- func Or(predicates ...predicate.Broadcast) predicate.Broadcast
- func ScheduledAt(v time.Time) predicate.Broadcast
- func ScheduledAtEQ(v time.Time) predicate.Broadcast
- func ScheduledAtGT(v time.Time) predicate.Broadcast
- func ScheduledAtGTE(v time.Time) predicate.Broadcast
- func ScheduledAtIn(vs ...time.Time) predicate.Broadcast
- func ScheduledAtIsNil() predicate.Broadcast
- func ScheduledAtLT(v time.Time) predicate.Broadcast
- func ScheduledAtLTE(v time.Time) predicate.Broadcast
- func ScheduledAtNEQ(v time.Time) predicate.Broadcast
- func ScheduledAtNotIn(vs ...time.Time) predicate.Broadcast
- func ScheduledAtNotNil() predicate.Broadcast
- func SegmentID(v int64) predicate.Broadcast
- func SegmentIDEQ(v int64) predicate.Broadcast
- func SegmentIDIn(vs ...int64) predicate.Broadcast
- func SegmentIDIsNil() predicate.Broadcast
- func SegmentIDNEQ(v int64) predicate.Broadcast
- func SegmentIDNotIn(vs ...int64) predicate.Broadcast
- func SegmentIDNotNil() predicate.Broadcast
- func SentAt(v time.Time) predicate.Broadcast
- func SentAtEQ(v time.Time) predicate.Broadcast
- func SentAtGT(v time.Time) predicate.Broadcast
- func SentAtGTE(v time.Time) predicate.Broadcast
- func SentAtIn(vs ...time.Time) predicate.Broadcast
- func SentAtIsNil() predicate.Broadcast
- func SentAtLT(v time.Time) predicate.Broadcast
- func SentAtLTE(v time.Time) predicate.Broadcast
- func SentAtNEQ(v time.Time) predicate.Broadcast
- func SentAtNotIn(vs ...time.Time) predicate.Broadcast
- func SentAtNotNil() predicate.Broadcast
- func StatusEQ(v Status) predicate.Broadcast
- func StatusIn(vs ...Status) predicate.Broadcast
- func StatusNEQ(v Status) predicate.Broadcast
- func StatusNotIn(vs ...Status) predicate.Broadcast
- func StatusValidator(s Status) error
- func Subject(v string) predicate.Broadcast
- func SubjectContains(v string) predicate.Broadcast
- func SubjectContainsFold(v string) predicate.Broadcast
- func SubjectEQ(v string) predicate.Broadcast
- func SubjectEqualFold(v string) predicate.Broadcast
- func SubjectGT(v string) predicate.Broadcast
- func SubjectGTE(v string) predicate.Broadcast
- func SubjectHasPrefix(v string) predicate.Broadcast
- func SubjectHasSuffix(v string) predicate.Broadcast
- func SubjectIn(vs ...string) predicate.Broadcast
- func SubjectLT(v string) predicate.Broadcast
- func SubjectLTE(v string) predicate.Broadcast
- func SubjectNEQ(v string) predicate.Broadcast
- func SubjectNotIn(vs ...string) predicate.Broadcast
- func UpdatedAt(v time.Time) predicate.Broadcast
- func UpdatedAtEQ(v time.Time) predicate.Broadcast
- func UpdatedAtGT(v time.Time) predicate.Broadcast
- func UpdatedAtGTE(v time.Time) predicate.Broadcast
- func UpdatedAtIn(vs ...time.Time) predicate.Broadcast
- func UpdatedAtLT(v time.Time) predicate.Broadcast
- func UpdatedAtLTE(v time.Time) predicate.Broadcast
- func UpdatedAtNEQ(v time.Time) predicate.Broadcast
- func UpdatedAtNotIn(vs ...time.Time) predicate.Broadcast
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.Broadcast
- func WorkspaceIDEQ(v int64) predicate.Broadcast
- func WorkspaceIDIn(vs ...int64) predicate.Broadcast
- func WorkspaceIDNEQ(v int64) predicate.Broadcast
- func WorkspaceIDNotIn(vs ...int64) predicate.Broadcast
- type OrderOption
- func ByBody(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDiscardedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEditorVersion(opts ...sql.OrderTermOption) OrderOption
- func ByFromEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFromName(opts ...sql.OrderTermOption) OrderOption
- func ByHoldReason(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIntegrationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByIntegrationID(opts ...sql.OrderTermOption) OrderOption
- func ByLastScheduledAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRecipients(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRecipientsCount(opts ...sql.OrderTermOption) OrderOption
- func ByScheduledAt(opts ...sql.OrderTermOption) OrderOption
- func BySegmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySegmentID(opts ...sql.OrderTermOption) OrderOption
- func BySentAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubject(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the broadcast type in the database. Label = "broadcast" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldWorkspaceID holds the string denoting the workspace_id field in the database. FieldWorkspaceID = "workspace_id" // FieldDiscardedAt holds the string denoting the discarded_at field in the database. FieldDiscardedAt = "discarded_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSubject holds the string denoting the subject field in the database. FieldSubject = "subject" // FieldFromName holds the string denoting the from_name field in the database. FieldFromName = "from_name" // FieldFromEmail holds the string denoting the from_email field in the database. FieldFromEmail = "from_email" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldDoc holds the string denoting the doc field in the database. FieldDoc = "doc" // FieldEditorVersion holds the string denoting the editor_version field in the database. FieldEditorVersion = "editor_version" // FieldSegmentID holds the string denoting the segment_id field in the database. FieldSegmentID = "segment_id" // FieldIntegrationID holds the string denoting the integration_id field in the database. FieldIntegrationID = "integration_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldScheduledAt holds the string denoting the scheduled_at field in the database. FieldScheduledAt = "scheduled_at" // FieldSentAt holds the string denoting the sent_at field in the database. FieldSentAt = "sent_at" // FieldHoldReason holds the string denoting the hold_reason field in the database. FieldHoldReason = "hold_reason" // FieldLastScheduledAt holds the string denoting the last_scheduled_at field in the database. FieldLastScheduledAt = "last_scheduled_at" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeRecipients holds the string denoting the recipients edge name in mutations. EdgeRecipients = "recipients" // EdgeSegment holds the string denoting the segment edge name in mutations. EdgeSegment = "segment" // EdgeIntegration holds the string denoting the integration edge name in mutations. EdgeIntegration = "integration" // Table holds the table name of the broadcast in the database. Table = "broadcasts" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "broadcasts" // WorkspaceInverseTable is the table name for the Workspace entity. // It exists in this package in order to avoid circular dependency with the "workspace" package. WorkspaceInverseTable = "workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "workspace_id" // RecipientsTable is the table that holds the recipients relation/edge. RecipientsTable = "broadcast_recipients" // RecipientsInverseTable is the table name for the BroadcastRecipient entity. // It exists in this package in order to avoid circular dependency with the "broadcastrecipient" package. RecipientsInverseTable = "broadcast_recipients" // RecipientsColumn is the table column denoting the recipients relation/edge. RecipientsColumn = "broadcast_id" // SegmentTable is the table that holds the segment relation/edge. SegmentTable = "broadcasts" // SegmentInverseTable is the table name for the Segment entity. // It exists in this package in order to avoid circular dependency with the "segment" package. SegmentInverseTable = "segments" // SegmentColumn is the table column denoting the segment relation/edge. SegmentColumn = "segment_id" // IntegrationTable is the table that holds the integration relation/edge. IntegrationTable = "broadcasts" // IntegrationInverseTable is the table name for the Integration entity. // It exists in this package in order to avoid circular dependency with the "integration" package. IntegrationInverseTable = "integrations" // IntegrationColumn is the table column denoting the integration relation/edge. IntegrationColumn = "integration_id" )
const DefaultStatus = StatusDraft
StatusDraft is the default value of the Status enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultSubject holds the default value on creation for the "subject" field. DefaultSubject string // DefaultBody holds the default value on creation for the "body" field. DefaultBody string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldDiscardedAt, FieldName, FieldSubject, FieldFromName, FieldFromEmail, FieldBody, FieldDoc, FieldEditorVersion, FieldSegmentID, FieldIntegrationID, FieldStatus, FieldScheduledAt, FieldSentAt, FieldHoldReason, FieldLastScheduledAt, }
Columns holds all SQL columns for broadcast fields.
Functions ¶
func BodyContains ¶
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEqualFold ¶
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyHasPrefix ¶
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DiscardedAt ¶
DiscardedAt applies equality check predicate on the "discarded_at" field. It's identical to DiscardedAtEQ.
func DiscardedAtEQ ¶
DiscardedAtEQ applies the EQ predicate on the "discarded_at" field.
func DiscardedAtGT ¶
DiscardedAtGT applies the GT predicate on the "discarded_at" field.
func DiscardedAtGTE ¶
DiscardedAtGTE applies the GTE predicate on the "discarded_at" field.
func DiscardedAtIn ¶
DiscardedAtIn applies the In predicate on the "discarded_at" field.
func DiscardedAtIsNil ¶
DiscardedAtIsNil applies the IsNil predicate on the "discarded_at" field.
func DiscardedAtLT ¶
DiscardedAtLT applies the LT predicate on the "discarded_at" field.
func DiscardedAtLTE ¶
DiscardedAtLTE applies the LTE predicate on the "discarded_at" field.
func DiscardedAtNEQ ¶
DiscardedAtNEQ applies the NEQ predicate on the "discarded_at" field.
func DiscardedAtNotIn ¶
DiscardedAtNotIn applies the NotIn predicate on the "discarded_at" field.
func DiscardedAtNotNil ¶
DiscardedAtNotNil applies the NotNil predicate on the "discarded_at" field.
func EditorVersion ¶
EditorVersion applies equality check predicate on the "editor_version" field. It's identical to EditorVersionEQ.
func EditorVersionContains ¶
EditorVersionContains applies the Contains predicate on the "editor_version" field.
func EditorVersionContainsFold ¶
EditorVersionContainsFold applies the ContainsFold predicate on the "editor_version" field.
func EditorVersionEQ ¶
EditorVersionEQ applies the EQ predicate on the "editor_version" field.
func EditorVersionEqualFold ¶
EditorVersionEqualFold applies the EqualFold predicate on the "editor_version" field.
func EditorVersionGT ¶
EditorVersionGT applies the GT predicate on the "editor_version" field.
func EditorVersionGTE ¶
EditorVersionGTE applies the GTE predicate on the "editor_version" field.
func EditorVersionHasPrefix ¶
EditorVersionHasPrefix applies the HasPrefix predicate on the "editor_version" field.
func EditorVersionHasSuffix ¶
EditorVersionHasSuffix applies the HasSuffix predicate on the "editor_version" field.
func EditorVersionIn ¶
EditorVersionIn applies the In predicate on the "editor_version" field.
func EditorVersionIsNil ¶
EditorVersionIsNil applies the IsNil predicate on the "editor_version" field.
func EditorVersionLT ¶
EditorVersionLT applies the LT predicate on the "editor_version" field.
func EditorVersionLTE ¶
EditorVersionLTE applies the LTE predicate on the "editor_version" field.
func EditorVersionNEQ ¶
EditorVersionNEQ applies the NEQ predicate on the "editor_version" field.
func EditorVersionNotIn ¶
EditorVersionNotIn applies the NotIn predicate on the "editor_version" field.
func EditorVersionNotNil ¶
EditorVersionNotNil applies the NotNil predicate on the "editor_version" field.
func FromEmail ¶
FromEmail applies equality check predicate on the "from_email" field. It's identical to FromEmailEQ.
func FromEmailContains ¶
FromEmailContains applies the Contains predicate on the "from_email" field.
func FromEmailContainsFold ¶
FromEmailContainsFold applies the ContainsFold predicate on the "from_email" field.
func FromEmailEQ ¶
FromEmailEQ applies the EQ predicate on the "from_email" field.
func FromEmailEqualFold ¶
FromEmailEqualFold applies the EqualFold predicate on the "from_email" field.
func FromEmailGT ¶
FromEmailGT applies the GT predicate on the "from_email" field.
func FromEmailGTE ¶
FromEmailGTE applies the GTE predicate on the "from_email" field.
func FromEmailHasPrefix ¶
FromEmailHasPrefix applies the HasPrefix predicate on the "from_email" field.
func FromEmailHasSuffix ¶
FromEmailHasSuffix applies the HasSuffix predicate on the "from_email" field.
func FromEmailIn ¶
FromEmailIn applies the In predicate on the "from_email" field.
func FromEmailIsNil ¶
FromEmailIsNil applies the IsNil predicate on the "from_email" field.
func FromEmailLT ¶
FromEmailLT applies the LT predicate on the "from_email" field.
func FromEmailLTE ¶
FromEmailLTE applies the LTE predicate on the "from_email" field.
func FromEmailNEQ ¶
FromEmailNEQ applies the NEQ predicate on the "from_email" field.
func FromEmailNotIn ¶
FromEmailNotIn applies the NotIn predicate on the "from_email" field.
func FromEmailNotNil ¶
FromEmailNotNil applies the NotNil predicate on the "from_email" field.
func FromName ¶
FromName applies equality check predicate on the "from_name" field. It's identical to FromNameEQ.
func FromNameContains ¶
FromNameContains applies the Contains predicate on the "from_name" field.
func FromNameContainsFold ¶
FromNameContainsFold applies the ContainsFold predicate on the "from_name" field.
func FromNameEQ ¶
FromNameEQ applies the EQ predicate on the "from_name" field.
func FromNameEqualFold ¶
FromNameEqualFold applies the EqualFold predicate on the "from_name" field.
func FromNameGT ¶
FromNameGT applies the GT predicate on the "from_name" field.
func FromNameGTE ¶
FromNameGTE applies the GTE predicate on the "from_name" field.
func FromNameHasPrefix ¶
FromNameHasPrefix applies the HasPrefix predicate on the "from_name" field.
func FromNameHasSuffix ¶
FromNameHasSuffix applies the HasSuffix predicate on the "from_name" field.
func FromNameIn ¶
FromNameIn applies the In predicate on the "from_name" field.
func FromNameIsNil ¶
FromNameIsNil applies the IsNil predicate on the "from_name" field.
func FromNameLT ¶
FromNameLT applies the LT predicate on the "from_name" field.
func FromNameLTE ¶
FromNameLTE applies the LTE predicate on the "from_name" field.
func FromNameNEQ ¶
FromNameNEQ applies the NEQ predicate on the "from_name" field.
func FromNameNotIn ¶
FromNameNotIn applies the NotIn predicate on the "from_name" field.
func FromNameNotNil ¶
FromNameNotNil applies the NotNil predicate on the "from_name" field.
func HasIntegration ¶
HasIntegration applies the HasEdge predicate on the "integration" edge.
func HasIntegrationWith ¶
func HasIntegrationWith(preds ...predicate.Integration) predicate.Broadcast
HasIntegrationWith applies the HasEdge predicate on the "integration" edge with a given conditions (other predicates).
func HasRecipients ¶
HasRecipients applies the HasEdge predicate on the "recipients" edge.
func HasRecipientsWith ¶
func HasRecipientsWith(preds ...predicate.BroadcastRecipient) predicate.Broadcast
HasRecipientsWith applies the HasEdge predicate on the "recipients" edge with a given conditions (other predicates).
func HasSegment ¶
HasSegment applies the HasEdge predicate on the "segment" edge.
func HasSegmentWith ¶
HasSegmentWith applies the HasEdge predicate on the "segment" edge with a given conditions (other predicates).
func HasWorkspace ¶
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func HoldReason ¶
HoldReason applies equality check predicate on the "hold_reason" field. It's identical to HoldReasonEQ.
func HoldReasonContains ¶
HoldReasonContains applies the Contains predicate on the "hold_reason" field.
func HoldReasonContainsFold ¶
HoldReasonContainsFold applies the ContainsFold predicate on the "hold_reason" field.
func HoldReasonEQ ¶
HoldReasonEQ applies the EQ predicate on the "hold_reason" field.
func HoldReasonEqualFold ¶
HoldReasonEqualFold applies the EqualFold predicate on the "hold_reason" field.
func HoldReasonGT ¶
HoldReasonGT applies the GT predicate on the "hold_reason" field.
func HoldReasonGTE ¶
HoldReasonGTE applies the GTE predicate on the "hold_reason" field.
func HoldReasonHasPrefix ¶
HoldReasonHasPrefix applies the HasPrefix predicate on the "hold_reason" field.
func HoldReasonHasSuffix ¶
HoldReasonHasSuffix applies the HasSuffix predicate on the "hold_reason" field.
func HoldReasonIn ¶
HoldReasonIn applies the In predicate on the "hold_reason" field.
func HoldReasonIsNil ¶
HoldReasonIsNil applies the IsNil predicate on the "hold_reason" field.
func HoldReasonLT ¶
HoldReasonLT applies the LT predicate on the "hold_reason" field.
func HoldReasonLTE ¶
HoldReasonLTE applies the LTE predicate on the "hold_reason" field.
func HoldReasonNEQ ¶
HoldReasonNEQ applies the NEQ predicate on the "hold_reason" field.
func HoldReasonNotIn ¶
HoldReasonNotIn applies the NotIn predicate on the "hold_reason" field.
func HoldReasonNotNil ¶
HoldReasonNotNil applies the NotNil predicate on the "hold_reason" field.
func IntegrationID ¶
IntegrationID applies equality check predicate on the "integration_id" field. It's identical to IntegrationIDEQ.
func IntegrationIDEQ ¶
IntegrationIDEQ applies the EQ predicate on the "integration_id" field.
func IntegrationIDIn ¶
IntegrationIDIn applies the In predicate on the "integration_id" field.
func IntegrationIDIsNil ¶
IntegrationIDIsNil applies the IsNil predicate on the "integration_id" field.
func IntegrationIDNEQ ¶
IntegrationIDNEQ applies the NEQ predicate on the "integration_id" field.
func IntegrationIDNotIn ¶
IntegrationIDNotIn applies the NotIn predicate on the "integration_id" field.
func IntegrationIDNotNil ¶
IntegrationIDNotNil applies the NotNil predicate on the "integration_id" field.
func LastScheduledAt ¶
LastScheduledAt applies equality check predicate on the "last_scheduled_at" field. It's identical to LastScheduledAtEQ.
func LastScheduledAtEQ ¶
LastScheduledAtEQ applies the EQ predicate on the "last_scheduled_at" field.
func LastScheduledAtGT ¶
LastScheduledAtGT applies the GT predicate on the "last_scheduled_at" field.
func LastScheduledAtGTE ¶
LastScheduledAtGTE applies the GTE predicate on the "last_scheduled_at" field.
func LastScheduledAtIn ¶
LastScheduledAtIn applies the In predicate on the "last_scheduled_at" field.
func LastScheduledAtIsNil ¶
LastScheduledAtIsNil applies the IsNil predicate on the "last_scheduled_at" field.
func LastScheduledAtLT ¶
LastScheduledAtLT applies the LT predicate on the "last_scheduled_at" field.
func LastScheduledAtLTE ¶
LastScheduledAtLTE applies the LTE predicate on the "last_scheduled_at" field.
func LastScheduledAtNEQ ¶
LastScheduledAtNEQ applies the NEQ predicate on the "last_scheduled_at" field.
func LastScheduledAtNotIn ¶
LastScheduledAtNotIn applies the NotIn predicate on the "last_scheduled_at" field.
func LastScheduledAtNotNil ¶
LastScheduledAtNotNil applies the NotNil predicate on the "last_scheduled_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ScheduledAt ¶
ScheduledAt applies equality check predicate on the "scheduled_at" field. It's identical to ScheduledAtEQ.
func ScheduledAtEQ ¶
ScheduledAtEQ applies the EQ predicate on the "scheduled_at" field.
func ScheduledAtGT ¶
ScheduledAtGT applies the GT predicate on the "scheduled_at" field.
func ScheduledAtGTE ¶
ScheduledAtGTE applies the GTE predicate on the "scheduled_at" field.
func ScheduledAtIn ¶
ScheduledAtIn applies the In predicate on the "scheduled_at" field.
func ScheduledAtIsNil ¶
ScheduledAtIsNil applies the IsNil predicate on the "scheduled_at" field.
func ScheduledAtLT ¶
ScheduledAtLT applies the LT predicate on the "scheduled_at" field.
func ScheduledAtLTE ¶
ScheduledAtLTE applies the LTE predicate on the "scheduled_at" field.
func ScheduledAtNEQ ¶
ScheduledAtNEQ applies the NEQ predicate on the "scheduled_at" field.
func ScheduledAtNotIn ¶
ScheduledAtNotIn applies the NotIn predicate on the "scheduled_at" field.
func ScheduledAtNotNil ¶
ScheduledAtNotNil applies the NotNil predicate on the "scheduled_at" field.
func SegmentID ¶
SegmentID applies equality check predicate on the "segment_id" field. It's identical to SegmentIDEQ.
func SegmentIDEQ ¶
SegmentIDEQ applies the EQ predicate on the "segment_id" field.
func SegmentIDIn ¶
SegmentIDIn applies the In predicate on the "segment_id" field.
func SegmentIDIsNil ¶
SegmentIDIsNil applies the IsNil predicate on the "segment_id" field.
func SegmentIDNEQ ¶
SegmentIDNEQ applies the NEQ predicate on the "segment_id" field.
func SegmentIDNotIn ¶
SegmentIDNotIn applies the NotIn predicate on the "segment_id" field.
func SegmentIDNotNil ¶
SegmentIDNotNil applies the NotNil predicate on the "segment_id" field.
func SentAt ¶
SentAt applies equality check predicate on the "sent_at" field. It's identical to SentAtEQ.
func SentAtIsNil ¶
SentAtIsNil applies the IsNil predicate on the "sent_at" field.
func SentAtNotIn ¶
SentAtNotIn applies the NotIn predicate on the "sent_at" field.
func SentAtNotNil ¶
SentAtNotNil applies the NotNil predicate on the "sent_at" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Subject ¶
Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.
func SubjectContains ¶
SubjectContains applies the Contains predicate on the "subject" field.
func SubjectContainsFold ¶
SubjectContainsFold applies the ContainsFold predicate on the "subject" field.
func SubjectEqualFold ¶
SubjectEqualFold applies the EqualFold predicate on the "subject" field.
func SubjectGTE ¶
SubjectGTE applies the GTE predicate on the "subject" field.
func SubjectHasPrefix ¶
SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.
func SubjectHasSuffix ¶
SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.
func SubjectLTE ¶
SubjectLTE applies the LTE predicate on the "subject" field.
func SubjectNEQ ¶
SubjectNEQ applies the NEQ predicate on the "subject" field.
func SubjectNotIn ¶
SubjectNotIn applies the NotIn predicate on the "subject" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkspaceID ¶
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Broadcast queries.
func ByBody ¶
func ByBody(opts ...sql.OrderTermOption) OrderOption
ByBody orders the results by the body field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDiscardedAt ¶
func ByDiscardedAt(opts ...sql.OrderTermOption) OrderOption
ByDiscardedAt orders the results by the discarded_at field.
func ByEditorVersion ¶
func ByEditorVersion(opts ...sql.OrderTermOption) OrderOption
ByEditorVersion orders the results by the editor_version field.
func ByFromEmail ¶
func ByFromEmail(opts ...sql.OrderTermOption) OrderOption
ByFromEmail orders the results by the from_email field.
func ByFromName ¶
func ByFromName(opts ...sql.OrderTermOption) OrderOption
ByFromName orders the results by the from_name field.
func ByHoldReason ¶
func ByHoldReason(opts ...sql.OrderTermOption) OrderOption
ByHoldReason orders the results by the hold_reason field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIntegrationField ¶
func ByIntegrationField(field string, opts ...sql.OrderTermOption) OrderOption
ByIntegrationField orders the results by integration field.
func ByIntegrationID ¶
func ByIntegrationID(opts ...sql.OrderTermOption) OrderOption
ByIntegrationID orders the results by the integration_id field.
func ByLastScheduledAt ¶
func ByLastScheduledAt(opts ...sql.OrderTermOption) OrderOption
ByLastScheduledAt orders the results by the last_scheduled_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRecipients ¶
func ByRecipients(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRecipients orders the results by recipients terms.
func ByRecipientsCount ¶
func ByRecipientsCount(opts ...sql.OrderTermOption) OrderOption
ByRecipientsCount orders the results by recipients count.
func ByScheduledAt ¶
func ByScheduledAt(opts ...sql.OrderTermOption) OrderOption
ByScheduledAt orders the results by the scheduled_at field.
func BySegmentField ¶
func BySegmentField(field string, opts ...sql.OrderTermOption) OrderOption
BySegmentField orders the results by segment field.
func BySegmentID ¶
func BySegmentID(opts ...sql.OrderTermOption) OrderOption
BySegmentID orders the results by the segment_id field.
func BySentAt ¶
func BySentAt(opts ...sql.OrderTermOption) OrderOption
BySentAt orders the results by the sent_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func BySubject ¶
func BySubject(opts ...sql.OrderTermOption) OrderOption
BySubject orders the results by the subject field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.
func ByWorkspaceID ¶
func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
ByWorkspaceID orders the results by the workspace_id field.