notifyflow

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the notifyflow type in the database.
	Label = "notify_flow"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeNotifyTarget holds the string denoting the notify_target edge name in mutations.
	EdgeNotifyTarget = "notify_target"
	// EdgeFeedConfig holds the string denoting the feed_config edge name in mutations.
	EdgeFeedConfig = "feed_config"
	// EdgeNotifyFlowTarget holds the string denoting the notify_flow_target edge name in mutations.
	EdgeNotifyFlowTarget = "notify_flow_target"
	// EdgeNotifyFlowSource holds the string denoting the notify_flow_source edge name in mutations.
	EdgeNotifyFlowSource = "notify_flow_source"
	// Table holds the table name of the notifyflow in the database.
	Table = "notify_flows"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "notify_flows"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_notify_flow"
	// NotifyTargetTable is the table that holds the notify_target relation/edge. The primary key declared below.
	NotifyTargetTable = "notify_flow_targets"
	// NotifyTargetInverseTable is the table name for the NotifyTarget entity.
	// It exists in this package in order to avoid circular dependency with the "notifytarget" package.
	NotifyTargetInverseTable = "notify_targets"
	// FeedConfigTable is the table that holds the feed_config relation/edge. The primary key declared below.
	FeedConfigTable = "notify_flow_sources"
	// FeedConfigInverseTable is the table name for the FeedConfig entity.
	// It exists in this package in order to avoid circular dependency with the "feedconfig" package.
	FeedConfigInverseTable = "feed_configs"
	// NotifyFlowTargetTable is the table that holds the notify_flow_target relation/edge.
	NotifyFlowTargetTable = "notify_flow_targets"
	// NotifyFlowTargetInverseTable is the table name for the NotifyFlowTarget entity.
	// It exists in this package in order to avoid circular dependency with the "notifyflowtarget" package.
	NotifyFlowTargetInverseTable = "notify_flow_targets"
	// NotifyFlowTargetColumn is the table column denoting the notify_flow_target relation/edge.
	NotifyFlowTargetColumn = "notify_flow_id"
	// NotifyFlowSourceTable is the table that holds the notify_flow_source relation/edge.
	NotifyFlowSourceTable = "notify_flow_sources"
	// NotifyFlowSourceInverseTable is the table name for the NotifyFlowSource entity.
	// It exists in this package in order to avoid circular dependency with the "notifyflowsource" package.
	NotifyFlowSourceInverseTable = "notify_flow_sources"
	// NotifyFlowSourceColumn is the table column denoting the notify_flow_source relation/edge.
	NotifyFlowSourceColumn = "notify_flow_id"
)

Variables

View Source
var (
	// NotifyTargetPrimaryKey and NotifyTargetColumn2 are the table columns denoting the
	// primary key for the notify_target relation (M2M).
	NotifyTargetPrimaryKey = []string{"notify_flow_id", "notify_target_id"}
	// FeedConfigPrimaryKey and FeedConfigColumn2 are the table columns denoting the
	// primary key for the feed_config relation (M2M).
	FeedConfigPrimaryKey = []string{"notify_source_id", "notify_flow_id"}
)
View Source
var (
	// 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for notifyflow fields.

View Source
var ForeignKeys = []string{
	"user_notify_flow",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "notify_flows" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.NotifyFlow) predicate.NotifyFlow

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.NotifyFlow

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.NotifyFlow

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.NotifyFlow

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.NotifyFlow

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.NotifyFlow

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.NotifyFlow

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.NotifyFlow

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.NotifyFlow

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.NotifyFlow

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.NotifyFlow

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.NotifyFlow

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.NotifyFlow

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.NotifyFlow

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.NotifyFlow

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.NotifyFlow

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.NotifyFlow

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.NotifyFlow

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.NotifyFlow

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.NotifyFlow

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.NotifyFlow

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.NotifyFlow

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasFeedConfig

func HasFeedConfig() predicate.NotifyFlow

HasFeedConfig applies the HasEdge predicate on the "feed_config" edge.

func HasFeedConfigWith

func HasFeedConfigWith(preds ...predicate.FeedConfig) predicate.NotifyFlow

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

func HasNotifyFlowSource added in v0.1.15

func HasNotifyFlowSource() predicate.NotifyFlow

HasNotifyFlowSource applies the HasEdge predicate on the "notify_flow_source" edge.

func HasNotifyFlowSourceWith added in v0.1.15

func HasNotifyFlowSourceWith(preds ...predicate.NotifyFlowSource) predicate.NotifyFlow

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

func HasNotifyFlowTarget

func HasNotifyFlowTarget() predicate.NotifyFlow

HasNotifyFlowTarget applies the HasEdge predicate on the "notify_flow_target" edge.

func HasNotifyFlowTargetWith

func HasNotifyFlowTargetWith(preds ...predicate.NotifyFlowTarget) predicate.NotifyFlow

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

func HasNotifyTarget

func HasNotifyTarget() predicate.NotifyFlow

HasNotifyTarget applies the HasEdge predicate on the "notify_target" edge.

func HasNotifyTargetWith

func HasNotifyTargetWith(preds ...predicate.NotifyTarget) predicate.NotifyFlow

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

func HasOwner

func HasOwner() predicate.NotifyFlow

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.NotifyFlow

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...model.InternalID) predicate.NotifyFlow

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...model.InternalID) predicate.NotifyFlow

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.NotifyFlow

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

func NameContains

func NameContains(v string) predicate.NotifyFlow

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

func NameContainsFold

func NameContainsFold(v string) predicate.NotifyFlow

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

func NameEQ

func NameEQ(v string) predicate.NotifyFlow

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

func NameEqualFold

func NameEqualFold(v string) predicate.NotifyFlow

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

func NameGT

func NameGT(v string) predicate.NotifyFlow

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

func NameGTE

func NameGTE(v string) predicate.NotifyFlow

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.NotifyFlow

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.NotifyFlow

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.NotifyFlow

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

func NameLTE

func NameLTE(v string) predicate.NotifyFlow

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

func NameNEQ

func NameNEQ(v string) predicate.NotifyFlow

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

func NameNotIn

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

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.NotifyFlow) predicate.NotifyFlow

Or groups predicates with the OR operator between them.

func StatusEQ

func StatusEQ(v Status) predicate.NotifyFlow

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.NotifyFlow

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

func StatusNotIn

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

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 UpdatedAt

func UpdatedAt(v time.Time) predicate.NotifyFlow

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.NotifyFlow

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.NotifyFlow

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.NotifyFlow

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.NotifyFlow

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.NotifyFlow

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.NotifyFlow

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

func UpdatedAtNotIn

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

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

Types

type OrderOption added in v0.1.4

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the NotifyFlow queries.

func ByCreatedAt added in v0.1.4

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription added in v0.1.4

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByFeedConfig added in v0.1.4

func ByFeedConfig(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFeedConfig orders the results by feed_config terms.

func ByFeedConfigCount added in v0.1.4

func ByFeedConfigCount(opts ...sql.OrderTermOption) OrderOption

ByFeedConfigCount orders the results by feed_config count.

func ByID added in v0.1.4

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName added in v0.1.4

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByNotifyFlowSource added in v0.1.15

func ByNotifyFlowSource(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNotifyFlowSource orders the results by notify_flow_source terms.

func ByNotifyFlowSourceCount added in v0.1.15

func ByNotifyFlowSourceCount(opts ...sql.OrderTermOption) OrderOption

ByNotifyFlowSourceCount orders the results by notify_flow_source count.

func ByNotifyFlowTarget added in v0.1.4

func ByNotifyFlowTarget(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNotifyFlowTarget orders the results by notify_flow_target terms.

func ByNotifyFlowTargetCount added in v0.1.4

func ByNotifyFlowTargetCount(opts ...sql.OrderTermOption) OrderOption

ByNotifyFlowTargetCount orders the results by notify_flow_target count.

func ByNotifyTarget added in v0.1.4

func ByNotifyTarget(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNotifyTarget orders the results by notify_target terms.

func ByNotifyTargetCount added in v0.1.4

func ByNotifyTargetCount(opts ...sql.OrderTermOption) OrderOption

ByNotifyTargetCount orders the results by notify_target count.

func ByOwnerField added in v0.1.4

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByStatus added in v0.1.4

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdatedAt added in v0.1.4

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

type Status

type Status string

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

const (
	StatusActive  Status = "active"
	StatusSuspend Status = "suspend"
)

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