Help us shape the future of Go! Take the 2026 Go Developer Survey

broadcast

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultStatus = StatusDraft

StatusDraft is the default value of the Status enum.

Variables

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

Columns holds all SQL columns for broadcast fields.

Functions

func And

func And(predicates ...predicate.Broadcast) predicate.Broadcast

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.Broadcast

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.Broadcast

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.Broadcast

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

func BodyEQ(v string) predicate.Broadcast

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.Broadcast

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

func BodyGT(v string) predicate.Broadcast

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

func BodyGTE(v string) predicate.Broadcast

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.Broadcast

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.Broadcast

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

func BodyIn(vs ...string) predicate.Broadcast

BodyIn applies the In predicate on the "body" field.

func BodyLT

func BodyLT(v string) predicate.Broadcast

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

func BodyLTE(v string) predicate.Broadcast

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.Broadcast

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

func BodyNotIn(vs ...string) predicate.Broadcast

BodyNotIn applies the NotIn predicate on the "body" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Broadcast

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Broadcast

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Broadcast

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Broadcast

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Broadcast

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Broadcast

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Broadcast

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Broadcast

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Broadcast

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DiscardedAt

func DiscardedAt(v time.Time) predicate.Broadcast

DiscardedAt applies equality check predicate on the "discarded_at" field. It's identical to DiscardedAtEQ.

func DiscardedAtEQ

func DiscardedAtEQ(v time.Time) predicate.Broadcast

DiscardedAtEQ applies the EQ predicate on the "discarded_at" field.

func DiscardedAtGT

func DiscardedAtGT(v time.Time) predicate.Broadcast

DiscardedAtGT applies the GT predicate on the "discarded_at" field.

func DiscardedAtGTE

func DiscardedAtGTE(v time.Time) predicate.Broadcast

DiscardedAtGTE applies the GTE predicate on the "discarded_at" field.

func DiscardedAtIn

func DiscardedAtIn(vs ...time.Time) predicate.Broadcast

DiscardedAtIn applies the In predicate on the "discarded_at" field.

func DiscardedAtIsNil

func DiscardedAtIsNil() predicate.Broadcast

DiscardedAtIsNil applies the IsNil predicate on the "discarded_at" field.

func DiscardedAtLT

func DiscardedAtLT(v time.Time) predicate.Broadcast

DiscardedAtLT applies the LT predicate on the "discarded_at" field.

func DiscardedAtLTE

func DiscardedAtLTE(v time.Time) predicate.Broadcast

DiscardedAtLTE applies the LTE predicate on the "discarded_at" field.

func DiscardedAtNEQ

func DiscardedAtNEQ(v time.Time) predicate.Broadcast

DiscardedAtNEQ applies the NEQ predicate on the "discarded_at" field.

func DiscardedAtNotIn

func DiscardedAtNotIn(vs ...time.Time) predicate.Broadcast

DiscardedAtNotIn applies the NotIn predicate on the "discarded_at" field.

func DiscardedAtNotNil

func DiscardedAtNotNil() predicate.Broadcast

DiscardedAtNotNil applies the NotNil predicate on the "discarded_at" field.

func DocIsNil

func DocIsNil() predicate.Broadcast

DocIsNil applies the IsNil predicate on the "doc" field.

func DocNotNil

func DocNotNil() predicate.Broadcast

DocNotNil applies the NotNil predicate on the "doc" field.

func EditorVersion

func EditorVersion(v string) predicate.Broadcast

EditorVersion applies equality check predicate on the "editor_version" field. It's identical to EditorVersionEQ.

func EditorVersionContains

func EditorVersionContains(v string) predicate.Broadcast

EditorVersionContains applies the Contains predicate on the "editor_version" field.

func EditorVersionContainsFold

func EditorVersionContainsFold(v string) predicate.Broadcast

EditorVersionContainsFold applies the ContainsFold predicate on the "editor_version" field.

func EditorVersionEQ

func EditorVersionEQ(v string) predicate.Broadcast

EditorVersionEQ applies the EQ predicate on the "editor_version" field.

func EditorVersionEqualFold

func EditorVersionEqualFold(v string) predicate.Broadcast

EditorVersionEqualFold applies the EqualFold predicate on the "editor_version" field.

func EditorVersionGT

func EditorVersionGT(v string) predicate.Broadcast

EditorVersionGT applies the GT predicate on the "editor_version" field.

func EditorVersionGTE

func EditorVersionGTE(v string) predicate.Broadcast

EditorVersionGTE applies the GTE predicate on the "editor_version" field.

func EditorVersionHasPrefix

func EditorVersionHasPrefix(v string) predicate.Broadcast

EditorVersionHasPrefix applies the HasPrefix predicate on the "editor_version" field.

func EditorVersionHasSuffix

func EditorVersionHasSuffix(v string) predicate.Broadcast

EditorVersionHasSuffix applies the HasSuffix predicate on the "editor_version" field.

func EditorVersionIn

func EditorVersionIn(vs ...string) predicate.Broadcast

EditorVersionIn applies the In predicate on the "editor_version" field.

func EditorVersionIsNil

func EditorVersionIsNil() predicate.Broadcast

EditorVersionIsNil applies the IsNil predicate on the "editor_version" field.

func EditorVersionLT

func EditorVersionLT(v string) predicate.Broadcast

EditorVersionLT applies the LT predicate on the "editor_version" field.

func EditorVersionLTE

func EditorVersionLTE(v string) predicate.Broadcast

EditorVersionLTE applies the LTE predicate on the "editor_version" field.

func EditorVersionNEQ

func EditorVersionNEQ(v string) predicate.Broadcast

EditorVersionNEQ applies the NEQ predicate on the "editor_version" field.

func EditorVersionNotIn

func EditorVersionNotIn(vs ...string) predicate.Broadcast

EditorVersionNotIn applies the NotIn predicate on the "editor_version" field.

func EditorVersionNotNil

func EditorVersionNotNil() predicate.Broadcast

EditorVersionNotNil applies the NotNil predicate on the "editor_version" field.

func FromEmail

func FromEmail(v string) predicate.Broadcast

FromEmail applies equality check predicate on the "from_email" field. It's identical to FromEmailEQ.

func FromEmailContains

func FromEmailContains(v string) predicate.Broadcast

FromEmailContains applies the Contains predicate on the "from_email" field.

func FromEmailContainsFold

func FromEmailContainsFold(v string) predicate.Broadcast

FromEmailContainsFold applies the ContainsFold predicate on the "from_email" field.

func FromEmailEQ

func FromEmailEQ(v string) predicate.Broadcast

FromEmailEQ applies the EQ predicate on the "from_email" field.

func FromEmailEqualFold

func FromEmailEqualFold(v string) predicate.Broadcast

FromEmailEqualFold applies the EqualFold predicate on the "from_email" field.

func FromEmailGT

func FromEmailGT(v string) predicate.Broadcast

FromEmailGT applies the GT predicate on the "from_email" field.

func FromEmailGTE

func FromEmailGTE(v string) predicate.Broadcast

FromEmailGTE applies the GTE predicate on the "from_email" field.

func FromEmailHasPrefix

func FromEmailHasPrefix(v string) predicate.Broadcast

FromEmailHasPrefix applies the HasPrefix predicate on the "from_email" field.

func FromEmailHasSuffix

func FromEmailHasSuffix(v string) predicate.Broadcast

FromEmailHasSuffix applies the HasSuffix predicate on the "from_email" field.

func FromEmailIn

func FromEmailIn(vs ...string) predicate.Broadcast

FromEmailIn applies the In predicate on the "from_email" field.

func FromEmailIsNil

func FromEmailIsNil() predicate.Broadcast

FromEmailIsNil applies the IsNil predicate on the "from_email" field.

func FromEmailLT

func FromEmailLT(v string) predicate.Broadcast

FromEmailLT applies the LT predicate on the "from_email" field.

func FromEmailLTE

func FromEmailLTE(v string) predicate.Broadcast

FromEmailLTE applies the LTE predicate on the "from_email" field.

func FromEmailNEQ

func FromEmailNEQ(v string) predicate.Broadcast

FromEmailNEQ applies the NEQ predicate on the "from_email" field.

func FromEmailNotIn

func FromEmailNotIn(vs ...string) predicate.Broadcast

FromEmailNotIn applies the NotIn predicate on the "from_email" field.

func FromEmailNotNil

func FromEmailNotNil() predicate.Broadcast

FromEmailNotNil applies the NotNil predicate on the "from_email" field.

func FromName

func FromName(v string) predicate.Broadcast

FromName applies equality check predicate on the "from_name" field. It's identical to FromNameEQ.

func FromNameContains

func FromNameContains(v string) predicate.Broadcast

FromNameContains applies the Contains predicate on the "from_name" field.

func FromNameContainsFold

func FromNameContainsFold(v string) predicate.Broadcast

FromNameContainsFold applies the ContainsFold predicate on the "from_name" field.

func FromNameEQ

func FromNameEQ(v string) predicate.Broadcast

FromNameEQ applies the EQ predicate on the "from_name" field.

func FromNameEqualFold

func FromNameEqualFold(v string) predicate.Broadcast

FromNameEqualFold applies the EqualFold predicate on the "from_name" field.

func FromNameGT

func FromNameGT(v string) predicate.Broadcast

FromNameGT applies the GT predicate on the "from_name" field.

func FromNameGTE

func FromNameGTE(v string) predicate.Broadcast

FromNameGTE applies the GTE predicate on the "from_name" field.

func FromNameHasPrefix

func FromNameHasPrefix(v string) predicate.Broadcast

FromNameHasPrefix applies the HasPrefix predicate on the "from_name" field.

func FromNameHasSuffix

func FromNameHasSuffix(v string) predicate.Broadcast

FromNameHasSuffix applies the HasSuffix predicate on the "from_name" field.

func FromNameIn

func FromNameIn(vs ...string) predicate.Broadcast

FromNameIn applies the In predicate on the "from_name" field.

func FromNameIsNil

func FromNameIsNil() predicate.Broadcast

FromNameIsNil applies the IsNil predicate on the "from_name" field.

func FromNameLT

func FromNameLT(v string) predicate.Broadcast

FromNameLT applies the LT predicate on the "from_name" field.

func FromNameLTE

func FromNameLTE(v string) predicate.Broadcast

FromNameLTE applies the LTE predicate on the "from_name" field.

func FromNameNEQ

func FromNameNEQ(v string) predicate.Broadcast

FromNameNEQ applies the NEQ predicate on the "from_name" field.

func FromNameNotIn

func FromNameNotIn(vs ...string) predicate.Broadcast

FromNameNotIn applies the NotIn predicate on the "from_name" field.

func FromNameNotNil

func FromNameNotNil() predicate.Broadcast

FromNameNotNil applies the NotNil predicate on the "from_name" field.

func HasIntegration

func HasIntegration() predicate.Broadcast

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

func HasRecipients() predicate.Broadcast

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

func HasSegment() predicate.Broadcast

HasSegment applies the HasEdge predicate on the "segment" edge.

func HasSegmentWith

func HasSegmentWith(preds ...predicate.Segment) predicate.Broadcast

HasSegmentWith applies the HasEdge predicate on the "segment" edge with a given conditions (other predicates).

func HasWorkspace

func HasWorkspace() predicate.Broadcast

HasWorkspace applies the HasEdge predicate on the "workspace" edge.

func HasWorkspaceWith

func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Broadcast

HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).

func HoldReason

func HoldReason(v string) predicate.Broadcast

HoldReason applies equality check predicate on the "hold_reason" field. It's identical to HoldReasonEQ.

func HoldReasonContains

func HoldReasonContains(v string) predicate.Broadcast

HoldReasonContains applies the Contains predicate on the "hold_reason" field.

func HoldReasonContainsFold

func HoldReasonContainsFold(v string) predicate.Broadcast

HoldReasonContainsFold applies the ContainsFold predicate on the "hold_reason" field.

func HoldReasonEQ

func HoldReasonEQ(v string) predicate.Broadcast

HoldReasonEQ applies the EQ predicate on the "hold_reason" field.

func HoldReasonEqualFold

func HoldReasonEqualFold(v string) predicate.Broadcast

HoldReasonEqualFold applies the EqualFold predicate on the "hold_reason" field.

func HoldReasonGT

func HoldReasonGT(v string) predicate.Broadcast

HoldReasonGT applies the GT predicate on the "hold_reason" field.

func HoldReasonGTE

func HoldReasonGTE(v string) predicate.Broadcast

HoldReasonGTE applies the GTE predicate on the "hold_reason" field.

func HoldReasonHasPrefix

func HoldReasonHasPrefix(v string) predicate.Broadcast

HoldReasonHasPrefix applies the HasPrefix predicate on the "hold_reason" field.

func HoldReasonHasSuffix

func HoldReasonHasSuffix(v string) predicate.Broadcast

HoldReasonHasSuffix applies the HasSuffix predicate on the "hold_reason" field.

func HoldReasonIn

func HoldReasonIn(vs ...string) predicate.Broadcast

HoldReasonIn applies the In predicate on the "hold_reason" field.

func HoldReasonIsNil

func HoldReasonIsNil() predicate.Broadcast

HoldReasonIsNil applies the IsNil predicate on the "hold_reason" field.

func HoldReasonLT

func HoldReasonLT(v string) predicate.Broadcast

HoldReasonLT applies the LT predicate on the "hold_reason" field.

func HoldReasonLTE

func HoldReasonLTE(v string) predicate.Broadcast

HoldReasonLTE applies the LTE predicate on the "hold_reason" field.

func HoldReasonNEQ

func HoldReasonNEQ(v string) predicate.Broadcast

HoldReasonNEQ applies the NEQ predicate on the "hold_reason" field.

func HoldReasonNotIn

func HoldReasonNotIn(vs ...string) predicate.Broadcast

HoldReasonNotIn applies the NotIn predicate on the "hold_reason" field.

func HoldReasonNotNil

func HoldReasonNotNil() predicate.Broadcast

HoldReasonNotNil applies the NotNil predicate on the "hold_reason" field.

func ID

func ID(id int64) predicate.Broadcast

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Broadcast

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Broadcast

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Broadcast

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Broadcast

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Broadcast

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Broadcast

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Broadcast

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Broadcast

IDNotIn applies the NotIn predicate on the ID field.

func IntegrationID

func IntegrationID(v int64) predicate.Broadcast

IntegrationID applies equality check predicate on the "integration_id" field. It's identical to IntegrationIDEQ.

func IntegrationIDEQ

func IntegrationIDEQ(v int64) predicate.Broadcast

IntegrationIDEQ applies the EQ predicate on the "integration_id" field.

func IntegrationIDIn

func IntegrationIDIn(vs ...int64) predicate.Broadcast

IntegrationIDIn applies the In predicate on the "integration_id" field.

func IntegrationIDIsNil

func IntegrationIDIsNil() predicate.Broadcast

IntegrationIDIsNil applies the IsNil predicate on the "integration_id" field.

func IntegrationIDNEQ

func IntegrationIDNEQ(v int64) predicate.Broadcast

IntegrationIDNEQ applies the NEQ predicate on the "integration_id" field.

func IntegrationIDNotIn

func IntegrationIDNotIn(vs ...int64) predicate.Broadcast

IntegrationIDNotIn applies the NotIn predicate on the "integration_id" field.

func IntegrationIDNotNil

func IntegrationIDNotNil() predicate.Broadcast

IntegrationIDNotNil applies the NotNil predicate on the "integration_id" field.

func LastScheduledAt

func LastScheduledAt(v time.Time) predicate.Broadcast

LastScheduledAt applies equality check predicate on the "last_scheduled_at" field. It's identical to LastScheduledAtEQ.

func LastScheduledAtEQ

func LastScheduledAtEQ(v time.Time) predicate.Broadcast

LastScheduledAtEQ applies the EQ predicate on the "last_scheduled_at" field.

func LastScheduledAtGT

func LastScheduledAtGT(v time.Time) predicate.Broadcast

LastScheduledAtGT applies the GT predicate on the "last_scheduled_at" field.

func LastScheduledAtGTE

func LastScheduledAtGTE(v time.Time) predicate.Broadcast

LastScheduledAtGTE applies the GTE predicate on the "last_scheduled_at" field.

func LastScheduledAtIn

func LastScheduledAtIn(vs ...time.Time) predicate.Broadcast

LastScheduledAtIn applies the In predicate on the "last_scheduled_at" field.

func LastScheduledAtIsNil

func LastScheduledAtIsNil() predicate.Broadcast

LastScheduledAtIsNil applies the IsNil predicate on the "last_scheduled_at" field.

func LastScheduledAtLT

func LastScheduledAtLT(v time.Time) predicate.Broadcast

LastScheduledAtLT applies the LT predicate on the "last_scheduled_at" field.

func LastScheduledAtLTE

func LastScheduledAtLTE(v time.Time) predicate.Broadcast

LastScheduledAtLTE applies the LTE predicate on the "last_scheduled_at" field.

func LastScheduledAtNEQ

func LastScheduledAtNEQ(v time.Time) predicate.Broadcast

LastScheduledAtNEQ applies the NEQ predicate on the "last_scheduled_at" field.

func LastScheduledAtNotIn

func LastScheduledAtNotIn(vs ...time.Time) predicate.Broadcast

LastScheduledAtNotIn applies the NotIn predicate on the "last_scheduled_at" field.

func LastScheduledAtNotNil

func LastScheduledAtNotNil() predicate.Broadcast

LastScheduledAtNotNil applies the NotNil predicate on the "last_scheduled_at" field.

func Name

func Name(v string) predicate.Broadcast

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Broadcast

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Broadcast

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Broadcast

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Broadcast

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Broadcast

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Broadcast

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Broadcast

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Broadcast

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Broadcast

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Broadcast

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Broadcast

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Broadcast

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Broadcast

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Broadcast) predicate.Broadcast

Or groups predicates with the OR operator between them.

func ScheduledAt

func ScheduledAt(v time.Time) predicate.Broadcast

ScheduledAt applies equality check predicate on the "scheduled_at" field. It's identical to ScheduledAtEQ.

func ScheduledAtEQ

func ScheduledAtEQ(v time.Time) predicate.Broadcast

ScheduledAtEQ applies the EQ predicate on the "scheduled_at" field.

func ScheduledAtGT

func ScheduledAtGT(v time.Time) predicate.Broadcast

ScheduledAtGT applies the GT predicate on the "scheduled_at" field.

func ScheduledAtGTE

func ScheduledAtGTE(v time.Time) predicate.Broadcast

ScheduledAtGTE applies the GTE predicate on the "scheduled_at" field.

func ScheduledAtIn

func ScheduledAtIn(vs ...time.Time) predicate.Broadcast

ScheduledAtIn applies the In predicate on the "scheduled_at" field.

func ScheduledAtIsNil

func ScheduledAtIsNil() predicate.Broadcast

ScheduledAtIsNil applies the IsNil predicate on the "scheduled_at" field.

func ScheduledAtLT

func ScheduledAtLT(v time.Time) predicate.Broadcast

ScheduledAtLT applies the LT predicate on the "scheduled_at" field.

func ScheduledAtLTE

func ScheduledAtLTE(v time.Time) predicate.Broadcast

ScheduledAtLTE applies the LTE predicate on the "scheduled_at" field.

func ScheduledAtNEQ

func ScheduledAtNEQ(v time.Time) predicate.Broadcast

ScheduledAtNEQ applies the NEQ predicate on the "scheduled_at" field.

func ScheduledAtNotIn

func ScheduledAtNotIn(vs ...time.Time) predicate.Broadcast

ScheduledAtNotIn applies the NotIn predicate on the "scheduled_at" field.

func ScheduledAtNotNil

func ScheduledAtNotNil() predicate.Broadcast

ScheduledAtNotNil applies the NotNil predicate on the "scheduled_at" field.

func SegmentID

func SegmentID(v int64) predicate.Broadcast

SegmentID applies equality check predicate on the "segment_id" field. It's identical to SegmentIDEQ.

func SegmentIDEQ

func SegmentIDEQ(v int64) predicate.Broadcast

SegmentIDEQ applies the EQ predicate on the "segment_id" field.

func SegmentIDIn

func SegmentIDIn(vs ...int64) predicate.Broadcast

SegmentIDIn applies the In predicate on the "segment_id" field.

func SegmentIDIsNil

func SegmentIDIsNil() predicate.Broadcast

SegmentIDIsNil applies the IsNil predicate on the "segment_id" field.

func SegmentIDNEQ

func SegmentIDNEQ(v int64) predicate.Broadcast

SegmentIDNEQ applies the NEQ predicate on the "segment_id" field.

func SegmentIDNotIn

func SegmentIDNotIn(vs ...int64) predicate.Broadcast

SegmentIDNotIn applies the NotIn predicate on the "segment_id" field.

func SegmentIDNotNil

func SegmentIDNotNil() predicate.Broadcast

SegmentIDNotNil applies the NotNil predicate on the "segment_id" field.

func SentAt

func SentAt(v time.Time) predicate.Broadcast

SentAt applies equality check predicate on the "sent_at" field. It's identical to SentAtEQ.

func SentAtEQ

func SentAtEQ(v time.Time) predicate.Broadcast

SentAtEQ applies the EQ predicate on the "sent_at" field.

func SentAtGT

func SentAtGT(v time.Time) predicate.Broadcast

SentAtGT applies the GT predicate on the "sent_at" field.

func SentAtGTE

func SentAtGTE(v time.Time) predicate.Broadcast

SentAtGTE applies the GTE predicate on the "sent_at" field.

func SentAtIn

func SentAtIn(vs ...time.Time) predicate.Broadcast

SentAtIn applies the In predicate on the "sent_at" field.

func SentAtIsNil

func SentAtIsNil() predicate.Broadcast

SentAtIsNil applies the IsNil predicate on the "sent_at" field.

func SentAtLT

func SentAtLT(v time.Time) predicate.Broadcast

SentAtLT applies the LT predicate on the "sent_at" field.

func SentAtLTE

func SentAtLTE(v time.Time) predicate.Broadcast

SentAtLTE applies the LTE predicate on the "sent_at" field.

func SentAtNEQ

func SentAtNEQ(v time.Time) predicate.Broadcast

SentAtNEQ applies the NEQ predicate on the "sent_at" field.

func SentAtNotIn

func SentAtNotIn(vs ...time.Time) predicate.Broadcast

SentAtNotIn applies the NotIn predicate on the "sent_at" field.

func SentAtNotNil

func SentAtNotNil() predicate.Broadcast

SentAtNotNil applies the NotNil predicate on the "sent_at" field.

func StatusEQ

func StatusEQ(v Status) predicate.Broadcast

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Broadcast

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Broadcast

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Broadcast

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func Subject

func Subject(v string) predicate.Broadcast

Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.

func SubjectContains

func SubjectContains(v string) predicate.Broadcast

SubjectContains applies the Contains predicate on the "subject" field.

func SubjectContainsFold

func SubjectContainsFold(v string) predicate.Broadcast

SubjectContainsFold applies the ContainsFold predicate on the "subject" field.

func SubjectEQ

func SubjectEQ(v string) predicate.Broadcast

SubjectEQ applies the EQ predicate on the "subject" field.

func SubjectEqualFold

func SubjectEqualFold(v string) predicate.Broadcast

SubjectEqualFold applies the EqualFold predicate on the "subject" field.

func SubjectGT

func SubjectGT(v string) predicate.Broadcast

SubjectGT applies the GT predicate on the "subject" field.

func SubjectGTE

func SubjectGTE(v string) predicate.Broadcast

SubjectGTE applies the GTE predicate on the "subject" field.

func SubjectHasPrefix

func SubjectHasPrefix(v string) predicate.Broadcast

SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.

func SubjectHasSuffix

func SubjectHasSuffix(v string) predicate.Broadcast

SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.

func SubjectIn

func SubjectIn(vs ...string) predicate.Broadcast

SubjectIn applies the In predicate on the "subject" field.

func SubjectLT

func SubjectLT(v string) predicate.Broadcast

SubjectLT applies the LT predicate on the "subject" field.

func SubjectLTE

func SubjectLTE(v string) predicate.Broadcast

SubjectLTE applies the LTE predicate on the "subject" field.

func SubjectNEQ

func SubjectNEQ(v string) predicate.Broadcast

SubjectNEQ applies the NEQ predicate on the "subject" field.

func SubjectNotIn

func SubjectNotIn(vs ...string) predicate.Broadcast

SubjectNotIn applies the NotIn predicate on the "subject" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Broadcast

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Broadcast

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Broadcast

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Broadcast

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Broadcast

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Broadcast

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Broadcast

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Broadcast

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Broadcast

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WorkspaceID

func WorkspaceID(v int64) predicate.Broadcast

WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.

func WorkspaceIDEQ

func WorkspaceIDEQ(v int64) predicate.Broadcast

WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.

func WorkspaceIDIn

func WorkspaceIDIn(vs ...int64) predicate.Broadcast

WorkspaceIDIn applies the In predicate on the "workspace_id" field.

func WorkspaceIDNEQ

func WorkspaceIDNEQ(v int64) predicate.Broadcast

WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.

func WorkspaceIDNotIn

func WorkspaceIDNotIn(vs ...int64) predicate.Broadcast

WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusDraft     Status = "draft"
	StatusScheduled Status = "scheduled"
	StatusSending   Status = "sending"
	StatusSent      Status = "sent"
	StatusFailed    Status = "failed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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