notifytarget

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 notifytarget type in the database.
	Label = "notify_target"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// 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"
	// FieldDestination holds the string denoting the destination field in the database.
	FieldDestination = "destination"
	// 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"
	// EdgeNotifyFlow holds the string denoting the notify_flow edge name in mutations.
	EdgeNotifyFlow = "notify_flow"
	// EdgeNotifyFlowTarget holds the string denoting the notify_flow_target edge name in mutations.
	EdgeNotifyFlowTarget = "notify_flow_target"
	// Table holds the table name of the notifytarget in the database.
	Table = "notify_targets"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "notify_targets"
	// 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_target"
	// NotifyFlowTable is the table that holds the notify_flow relation/edge. The primary key declared below.
	NotifyFlowTable = "notify_flow_targets"
	// NotifyFlowInverseTable is the table name for the NotifyFlow entity.
	// It exists in this package in order to avoid circular dependency with the "notifyflow" package.
	NotifyFlowInverseTable = "notify_flows"
	// 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_target_id"
)

Variables

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 notifytarget fields.

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

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

View Source
var (
	// NotifyFlowPrimaryKey and NotifyFlowColumn2 are the table columns denoting the
	// primary key for the notify_flow relation (M2M).
	NotifyFlowPrimaryKey = []string{"notify_flow_id", "notify_target_id"}
)

Functions

func And

func And(predicates ...predicate.NotifyTarget) predicate.NotifyTarget

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.NotifyTarget

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.NotifyTarget

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.NotifyTarget

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.NotifyTarget

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.NotifyTarget

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.NotifyTarget

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.NotifyTarget

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.NotifyTarget

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

func DescriptionContains

func DescriptionContains(v string) predicate.NotifyTarget

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.NotifyTarget

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.NotifyTarget

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.NotifyTarget

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

func DescriptionGT

func DescriptionGT(v string) predicate.NotifyTarget

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.NotifyTarget

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.NotifyTarget

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.NotifyTarget

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.NotifyTarget

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.NotifyTarget

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.NotifyTarget

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

func DescriptionNotIn

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

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

func Destination added in v0.2.0

func Destination(v string) predicate.NotifyTarget

Destination applies equality check predicate on the "destination" field. It's identical to DestinationEQ.

func DestinationContains added in v0.2.0

func DestinationContains(v string) predicate.NotifyTarget

DestinationContains applies the Contains predicate on the "destination" field.

func DestinationContainsFold added in v0.2.0

func DestinationContainsFold(v string) predicate.NotifyTarget

DestinationContainsFold applies the ContainsFold predicate on the "destination" field.

func DestinationEQ added in v0.2.0

func DestinationEQ(v string) predicate.NotifyTarget

DestinationEQ applies the EQ predicate on the "destination" field.

func DestinationEqualFold added in v0.2.0

func DestinationEqualFold(v string) predicate.NotifyTarget

DestinationEqualFold applies the EqualFold predicate on the "destination" field.

func DestinationGT added in v0.2.0

func DestinationGT(v string) predicate.NotifyTarget

DestinationGT applies the GT predicate on the "destination" field.

func DestinationGTE added in v0.2.0

func DestinationGTE(v string) predicate.NotifyTarget

DestinationGTE applies the GTE predicate on the "destination" field.

func DestinationHasPrefix added in v0.2.0

func DestinationHasPrefix(v string) predicate.NotifyTarget

DestinationHasPrefix applies the HasPrefix predicate on the "destination" field.

func DestinationHasSuffix added in v0.2.0

func DestinationHasSuffix(v string) predicate.NotifyTarget

DestinationHasSuffix applies the HasSuffix predicate on the "destination" field.

func DestinationIn added in v0.2.0

func DestinationIn(vs ...string) predicate.NotifyTarget

DestinationIn applies the In predicate on the "destination" field.

func DestinationLT added in v0.2.0

func DestinationLT(v string) predicate.NotifyTarget

DestinationLT applies the LT predicate on the "destination" field.

func DestinationLTE added in v0.2.0

func DestinationLTE(v string) predicate.NotifyTarget

DestinationLTE applies the LTE predicate on the "destination" field.

func DestinationNEQ added in v0.2.0

func DestinationNEQ(v string) predicate.NotifyTarget

DestinationNEQ applies the NEQ predicate on the "destination" field.

func DestinationNotIn added in v0.2.0

func DestinationNotIn(vs ...string) predicate.NotifyTarget

DestinationNotIn applies the NotIn predicate on the "destination" field.

func HasNotifyFlow

func HasNotifyFlow() predicate.NotifyTarget

HasNotifyFlow applies the HasEdge predicate on the "notify_flow" edge.

func HasNotifyFlowTarget

func HasNotifyFlowTarget() predicate.NotifyTarget

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

func HasNotifyFlowTargetWith

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

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

func HasNotifyFlowWith

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

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

func HasOwner

func HasOwner() predicate.NotifyTarget

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

func HasOwnerWith

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

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

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.NotifyTarget

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

func NameContainsFold

func NameContainsFold(v string) predicate.NotifyTarget

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

func NameEQ

func NameEQ(v string) predicate.NotifyTarget

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

func NameEqualFold

func NameEqualFold(v string) predicate.NotifyTarget

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

func NameGT

func NameGT(v string) predicate.NotifyTarget

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

func NameGTE

func NameGTE(v string) predicate.NotifyTarget

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.NotifyTarget

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.NotifyTarget

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.NotifyTarget

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

func NameLTE

func NameLTE(v string) predicate.NotifyTarget

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

func NameNEQ

func NameNEQ(v string) predicate.NotifyTarget

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func StatusEQ

func StatusEQ(v Status) predicate.NotifyTarget

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.NotifyTarget

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

func StatusNotIn

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

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 Token

func Token(v string) predicate.NotifyTarget

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.NotifyTarget

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.NotifyTarget

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.NotifyTarget

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.NotifyTarget

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.NotifyTarget

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.NotifyTarget

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.NotifyTarget

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.NotifyTarget

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.NotifyTarget

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.NotifyTarget

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.NotifyTarget

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.NotifyTarget

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.NotifyTarget

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.NotifyTarget

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.NotifyTarget

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.NotifyTarget

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.NotifyTarget

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.NotifyTarget

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.NotifyTarget

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.NotifyTarget

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

func UpdatedAtNotIn

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

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 NotifyTarget 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 ByDestination added in v0.2.0

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

ByDestination orders the results by the destination field.

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 ByNotifyFlow added in v0.1.4

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

ByNotifyFlow orders the results by notify_flow terms.

func ByNotifyFlowCount added in v0.1.4

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

ByNotifyFlowCount orders the results by notify_flow 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 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 ByToken added in v0.1.4

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

ByToken orders the results by the token 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