Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Suppression) predicate.Suppression
- func ChannelEQ(v Channel) predicate.Suppression
- func ChannelIn(vs ...Channel) predicate.Suppression
- func ChannelNEQ(v Channel) predicate.Suppression
- func ChannelNotIn(vs ...Channel) predicate.Suppression
- func ChannelValidator(c Channel) error
- func ContactID(v int64) predicate.Suppression
- func ContactIDEQ(v int64) predicate.Suppression
- func ContactIDIn(vs ...int64) predicate.Suppression
- func ContactIDIsNil() predicate.Suppression
- func ContactIDNEQ(v int64) predicate.Suppression
- func ContactIDNotIn(vs ...int64) predicate.Suppression
- func ContactIDNotNil() predicate.Suppression
- func CreatedAt(v time.Time) predicate.Suppression
- func CreatedAtEQ(v time.Time) predicate.Suppression
- func CreatedAtGT(v time.Time) predicate.Suppression
- func CreatedAtGTE(v time.Time) predicate.Suppression
- func CreatedAtIn(vs ...time.Time) predicate.Suppression
- func CreatedAtLT(v time.Time) predicate.Suppression
- func CreatedAtLTE(v time.Time) predicate.Suppression
- func CreatedAtNEQ(v time.Time) predicate.Suppression
- func CreatedAtNotIn(vs ...time.Time) predicate.Suppression
- func Destination(v string) predicate.Suppression
- func DestinationContains(v string) predicate.Suppression
- func DestinationContainsFold(v string) predicate.Suppression
- func DestinationEQ(v string) predicate.Suppression
- func DestinationEqualFold(v string) predicate.Suppression
- func DestinationGT(v string) predicate.Suppression
- func DestinationGTE(v string) predicate.Suppression
- func DestinationHasPrefix(v string) predicate.Suppression
- func DestinationHasSuffix(v string) predicate.Suppression
- func DestinationIn(vs ...string) predicate.Suppression
- func DestinationLT(v string) predicate.Suppression
- func DestinationLTE(v string) predicate.Suppression
- func DestinationNEQ(v string) predicate.Suppression
- func DestinationNotIn(vs ...string) predicate.Suppression
- func HasContact() predicate.Suppression
- func HasContactWith(preds ...predicate.Contact) predicate.Suppression
- func HasWorkspace() predicate.Suppression
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Suppression
- func ID(id int64) predicate.Suppression
- func IDEQ(id int64) predicate.Suppression
- func IDGT(id int64) predicate.Suppression
- func IDGTE(id int64) predicate.Suppression
- func IDIn(ids ...int64) predicate.Suppression
- func IDLT(id int64) predicate.Suppression
- func IDLTE(id int64) predicate.Suppression
- func IDNEQ(id int64) predicate.Suppression
- func IDNotIn(ids ...int64) predicate.Suppression
- func LiftedAt(v time.Time) predicate.Suppression
- func LiftedAtEQ(v time.Time) predicate.Suppression
- func LiftedAtGT(v time.Time) predicate.Suppression
- func LiftedAtGTE(v time.Time) predicate.Suppression
- func LiftedAtIn(vs ...time.Time) predicate.Suppression
- func LiftedAtIsNil() predicate.Suppression
- func LiftedAtLT(v time.Time) predicate.Suppression
- func LiftedAtLTE(v time.Time) predicate.Suppression
- func LiftedAtNEQ(v time.Time) predicate.Suppression
- func LiftedAtNotIn(vs ...time.Time) predicate.Suppression
- func LiftedAtNotNil() predicate.Suppression
- func Not(p predicate.Suppression) predicate.Suppression
- func Or(predicates ...predicate.Suppression) predicate.Suppression
- func ReasonEQ(v Reason) predicate.Suppression
- func ReasonIn(vs ...Reason) predicate.Suppression
- func ReasonNEQ(v Reason) predicate.Suppression
- func ReasonNotIn(vs ...Reason) predicate.Suppression
- func ReasonValidator(r Reason) error
- func UpdatedAt(v time.Time) predicate.Suppression
- func UpdatedAtEQ(v time.Time) predicate.Suppression
- func UpdatedAtGT(v time.Time) predicate.Suppression
- func UpdatedAtGTE(v time.Time) predicate.Suppression
- func UpdatedAtIn(vs ...time.Time) predicate.Suppression
- func UpdatedAtLT(v time.Time) predicate.Suppression
- func UpdatedAtLTE(v time.Time) predicate.Suppression
- func UpdatedAtNEQ(v time.Time) predicate.Suppression
- func UpdatedAtNotIn(vs ...time.Time) predicate.Suppression
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.Suppression
- func WorkspaceIDEQ(v int64) predicate.Suppression
- func WorkspaceIDIn(vs ...int64) predicate.Suppression
- func WorkspaceIDNEQ(v int64) predicate.Suppression
- func WorkspaceIDNotIn(vs ...int64) predicate.Suppression
- type Channel
- type OrderOption
- func ByChannel(opts ...sql.OrderTermOption) OrderOption
- func ByContactField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByContactID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDestination(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLiftedAt(opts ...sql.OrderTermOption) OrderOption
- func ByReason(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 Reason
Constants ¶
const ( // Label holds the string label denoting the suppression type in the database. Label = "suppression" // 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" // FieldChannel holds the string denoting the channel field in the database. FieldChannel = "channel" // FieldDestination holds the string denoting the destination field in the database. FieldDestination = "destination" // FieldReason holds the string denoting the reason field in the database. FieldReason = "reason" // FieldContactID holds the string denoting the contact_id field in the database. FieldContactID = "contact_id" // FieldLiftedAt holds the string denoting the lifted_at field in the database. FieldLiftedAt = "lifted_at" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeContact holds the string denoting the contact edge name in mutations. EdgeContact = "contact" // Table holds the table name of the suppression in the database. Table = "suppressions" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "suppressions" // 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" // ContactTable is the table that holds the contact relation/edge. ContactTable = "suppressions" // ContactInverseTable is the table name for the Contact entity. // It exists in this package in order to avoid circular dependency with the "contact" package. ContactInverseTable = "contacts" // ContactColumn is the table column denoting the contact relation/edge. ContactColumn = "contact_id" )
const DefaultChannel = ChannelEmail
ChannelEmail is the default value of the Channel enum.
const DefaultReason = ReasonManual
ReasonManual is the default value of the Reason 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 // DestinationValidator is a validator for the "destination" field. It is called by the builders before save. DestinationValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldChannel, FieldDestination, FieldReason, FieldContactID, FieldLiftedAt, }
Columns holds all SQL columns for suppression fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Suppression) predicate.Suppression
And groups predicates with the AND operator between them.
func ChannelEQ ¶
func ChannelEQ(v Channel) predicate.Suppression
ChannelEQ applies the EQ predicate on the "channel" field.
func ChannelIn ¶
func ChannelIn(vs ...Channel) predicate.Suppression
ChannelIn applies the In predicate on the "channel" field.
func ChannelNEQ ¶
func ChannelNEQ(v Channel) predicate.Suppression
ChannelNEQ applies the NEQ predicate on the "channel" field.
func ChannelNotIn ¶
func ChannelNotIn(vs ...Channel) predicate.Suppression
ChannelNotIn applies the NotIn predicate on the "channel" field.
func ChannelValidator ¶
ChannelValidator is a validator for the "channel" field enum values. It is called by the builders before save.
func ContactID ¶
func ContactID(v int64) predicate.Suppression
ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ.
func ContactIDEQ ¶
func ContactIDEQ(v int64) predicate.Suppression
ContactIDEQ applies the EQ predicate on the "contact_id" field.
func ContactIDIn ¶
func ContactIDIn(vs ...int64) predicate.Suppression
ContactIDIn applies the In predicate on the "contact_id" field.
func ContactIDIsNil ¶
func ContactIDIsNil() predicate.Suppression
ContactIDIsNil applies the IsNil predicate on the "contact_id" field.
func ContactIDNEQ ¶
func ContactIDNEQ(v int64) predicate.Suppression
ContactIDNEQ applies the NEQ predicate on the "contact_id" field.
func ContactIDNotIn ¶
func ContactIDNotIn(vs ...int64) predicate.Suppression
ContactIDNotIn applies the NotIn predicate on the "contact_id" field.
func ContactIDNotNil ¶
func ContactIDNotNil() predicate.Suppression
ContactIDNotNil applies the NotNil predicate on the "contact_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Suppression
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Suppression
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Suppression
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Suppression
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Suppression
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Suppression
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Suppression
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Suppression
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Suppression
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Destination ¶
func Destination(v string) predicate.Suppression
Destination applies equality check predicate on the "destination" field. It's identical to DestinationEQ.
func DestinationContains ¶
func DestinationContains(v string) predicate.Suppression
DestinationContains applies the Contains predicate on the "destination" field.
func DestinationContainsFold ¶
func DestinationContainsFold(v string) predicate.Suppression
DestinationContainsFold applies the ContainsFold predicate on the "destination" field.
func DestinationEQ ¶
func DestinationEQ(v string) predicate.Suppression
DestinationEQ applies the EQ predicate on the "destination" field.
func DestinationEqualFold ¶
func DestinationEqualFold(v string) predicate.Suppression
DestinationEqualFold applies the EqualFold predicate on the "destination" field.
func DestinationGT ¶
func DestinationGT(v string) predicate.Suppression
DestinationGT applies the GT predicate on the "destination" field.
func DestinationGTE ¶
func DestinationGTE(v string) predicate.Suppression
DestinationGTE applies the GTE predicate on the "destination" field.
func DestinationHasPrefix ¶
func DestinationHasPrefix(v string) predicate.Suppression
DestinationHasPrefix applies the HasPrefix predicate on the "destination" field.
func DestinationHasSuffix ¶
func DestinationHasSuffix(v string) predicate.Suppression
DestinationHasSuffix applies the HasSuffix predicate on the "destination" field.
func DestinationIn ¶
func DestinationIn(vs ...string) predicate.Suppression
DestinationIn applies the In predicate on the "destination" field.
func DestinationLT ¶
func DestinationLT(v string) predicate.Suppression
DestinationLT applies the LT predicate on the "destination" field.
func DestinationLTE ¶
func DestinationLTE(v string) predicate.Suppression
DestinationLTE applies the LTE predicate on the "destination" field.
func DestinationNEQ ¶
func DestinationNEQ(v string) predicate.Suppression
DestinationNEQ applies the NEQ predicate on the "destination" field.
func DestinationNotIn ¶
func DestinationNotIn(vs ...string) predicate.Suppression
DestinationNotIn applies the NotIn predicate on the "destination" field.
func HasContact ¶
func HasContact() predicate.Suppression
HasContact applies the HasEdge predicate on the "contact" edge.
func HasContactWith ¶
func HasContactWith(preds ...predicate.Contact) predicate.Suppression
HasContactWith applies the HasEdge predicate on the "contact" edge with a given conditions (other predicates).
func HasWorkspace ¶
func HasWorkspace() predicate.Suppression
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Suppression
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.Suppression
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.Suppression
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.Suppression
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.Suppression
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.Suppression
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.Suppression
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.Suppression
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.Suppression
IDNotIn applies the NotIn predicate on the ID field.
func LiftedAt ¶
func LiftedAt(v time.Time) predicate.Suppression
LiftedAt applies equality check predicate on the "lifted_at" field. It's identical to LiftedAtEQ.
func LiftedAtEQ ¶
func LiftedAtEQ(v time.Time) predicate.Suppression
LiftedAtEQ applies the EQ predicate on the "lifted_at" field.
func LiftedAtGT ¶
func LiftedAtGT(v time.Time) predicate.Suppression
LiftedAtGT applies the GT predicate on the "lifted_at" field.
func LiftedAtGTE ¶
func LiftedAtGTE(v time.Time) predicate.Suppression
LiftedAtGTE applies the GTE predicate on the "lifted_at" field.
func LiftedAtIn ¶
func LiftedAtIn(vs ...time.Time) predicate.Suppression
LiftedAtIn applies the In predicate on the "lifted_at" field.
func LiftedAtIsNil ¶
func LiftedAtIsNil() predicate.Suppression
LiftedAtIsNil applies the IsNil predicate on the "lifted_at" field.
func LiftedAtLT ¶
func LiftedAtLT(v time.Time) predicate.Suppression
LiftedAtLT applies the LT predicate on the "lifted_at" field.
func LiftedAtLTE ¶
func LiftedAtLTE(v time.Time) predicate.Suppression
LiftedAtLTE applies the LTE predicate on the "lifted_at" field.
func LiftedAtNEQ ¶
func LiftedAtNEQ(v time.Time) predicate.Suppression
LiftedAtNEQ applies the NEQ predicate on the "lifted_at" field.
func LiftedAtNotIn ¶
func LiftedAtNotIn(vs ...time.Time) predicate.Suppression
LiftedAtNotIn applies the NotIn predicate on the "lifted_at" field.
func LiftedAtNotNil ¶
func LiftedAtNotNil() predicate.Suppression
LiftedAtNotNil applies the NotNil predicate on the "lifted_at" field.
func Not ¶
func Not(p predicate.Suppression) predicate.Suppression
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Suppression) predicate.Suppression
Or groups predicates with the OR operator between them.
func ReasonEQ ¶
func ReasonEQ(v Reason) predicate.Suppression
ReasonEQ applies the EQ predicate on the "reason" field.
func ReasonIn ¶
func ReasonIn(vs ...Reason) predicate.Suppression
ReasonIn applies the In predicate on the "reason" field.
func ReasonNEQ ¶
func ReasonNEQ(v Reason) predicate.Suppression
ReasonNEQ applies the NEQ predicate on the "reason" field.
func ReasonNotIn ¶
func ReasonNotIn(vs ...Reason) predicate.Suppression
ReasonNotIn applies the NotIn predicate on the "reason" field.
func ReasonValidator ¶
ReasonValidator is a validator for the "reason" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Suppression
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Suppression
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Suppression
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Suppression
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Suppression
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Suppression
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Suppression
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Suppression
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Suppression
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 ¶
func WorkspaceID(v int64) predicate.Suppression
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
func WorkspaceIDEQ(v int64) predicate.Suppression
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
func WorkspaceIDIn(vs ...int64) predicate.Suppression
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
func WorkspaceIDNEQ(v int64) predicate.Suppression
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
func WorkspaceIDNotIn(vs ...int64) predicate.Suppression
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type Channel ¶
type Channel string
Channel defines the type for the "channel" enum field.
const (
ChannelEmail Channel = "email"
)
Channel values.
type OrderOption ¶
OrderOption defines the ordering options for the Suppression queries.
func ByChannel ¶
func ByChannel(opts ...sql.OrderTermOption) OrderOption
ByChannel orders the results by the channel field.
func ByContactField ¶
func ByContactField(field string, opts ...sql.OrderTermOption) OrderOption
ByContactField orders the results by contact field.
func ByContactID ¶
func ByContactID(opts ...sql.OrderTermOption) OrderOption
ByContactID orders the results by the contact_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDestination ¶
func ByDestination(opts ...sql.OrderTermOption) OrderOption
ByDestination orders the results by the destination field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLiftedAt ¶
func ByLiftedAt(opts ...sql.OrderTermOption) OrderOption
ByLiftedAt orders the results by the lifted_at field.
func ByReason ¶
func ByReason(opts ...sql.OrderTermOption) OrderOption
ByReason orders the results by the reason 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.