msgevent

package
v0.0.0-...-ce64a08 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the msgevent type in the database.
	Label = "msg_event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldMsgTypeID holds the string denoting the msg_type_id field in the database.
	FieldMsgTypeID = "msg_type_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// FieldRoute holds the string denoting the route field in the database.
	FieldRoute = "route"
	// FieldModes holds the string denoting the modes field in the database.
	FieldModes = "modes"
	// EdgeMsgType holds the string denoting the msg_type edge name in mutations.
	EdgeMsgType = "msg_type"
	// EdgeCustomerTemplate holds the string denoting the customer_template edge name in mutations.
	EdgeCustomerTemplate = "customer_template"
	// Table holds the table name of the msgevent in the database.
	Table = "msg_event"
	// MsgTypeTable is the table that holds the msg_type relation/edge.
	MsgTypeTable = "msg_event"
	// MsgTypeInverseTable is the table name for the MsgType entity.
	// It exists in this package in order to avoid circular dependency with the "msgtype" package.
	MsgTypeInverseTable = "msg_type"
	// MsgTypeColumn is the table column denoting the msg_type relation/edge.
	MsgTypeColumn = "msg_type_id"
	// CustomerTemplateTable is the table that holds the customer_template relation/edge.
	CustomerTemplateTable = "msg_template"
	// CustomerTemplateInverseTable is the table name for the MsgTemplate entity.
	// It exists in this package in order to avoid circular dependency with the "msgtemplate" package.
	CustomerTemplateInverseTable = "msg_template"
	// CustomerTemplateColumn is the table column denoting the customer_template relation/edge.
	CustomerTemplateColumn = "msg_event_id"
)
View Source
const DefaultStatus typex.SimpleStatus = "inactive"

Variables

View Source
var (
	Hooks [5]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/msgcenter/ent/runtime"

Columns holds all SQL columns for msgevent fields.

Functions

func And

func And(predicates ...predicate.MsgEvent) predicate.MsgEvent

And groups predicates with the AND operator between them.

func Comments

func Comments(v string) predicate.MsgEvent

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.MsgEvent

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.MsgEvent

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.MsgEvent

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.MsgEvent

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.MsgEvent

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.MsgEvent

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.MsgEvent

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.MsgEvent

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.MsgEvent

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.MsgEvent

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.MsgEvent

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.MsgEvent

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.MsgEvent

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.MsgEvent

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.MsgEvent

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.MsgEvent

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MsgEvent

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MsgEvent

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MsgEvent

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MsgEvent

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MsgEvent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MsgEvent

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.MsgEvent

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.MsgEvent

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.MsgEvent

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.MsgEvent

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.MsgEvent

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.MsgEvent

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.MsgEvent

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.MsgEvent

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.MsgEvent

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func HasCustomerTemplate

func HasCustomerTemplate() predicate.MsgEvent

HasCustomerTemplate applies the HasEdge predicate on the "customer_template" edge.

func HasCustomerTemplateWith

func HasCustomerTemplateWith(preds ...predicate.MsgTemplate) predicate.MsgEvent

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

func HasMsgType

func HasMsgType() predicate.MsgEvent

HasMsgType applies the HasEdge predicate on the "msg_type" edge.

func HasMsgTypeWith

func HasMsgTypeWith(preds ...predicate.MsgType) predicate.MsgEvent

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

func ID

func ID(id int) predicate.MsgEvent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.MsgEvent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.MsgEvent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.MsgEvent

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.MsgEvent

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.MsgEvent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.MsgEvent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.MsgEvent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.MsgEvent

IDNotIn applies the NotIn predicate on the ID field.

func Modes

func Modes(v string) predicate.MsgEvent

Modes applies equality check predicate on the "modes" field. It's identical to ModesEQ.

func ModesContains

func ModesContains(v string) predicate.MsgEvent

ModesContains applies the Contains predicate on the "modes" field.

func ModesContainsFold

func ModesContainsFold(v string) predicate.MsgEvent

ModesContainsFold applies the ContainsFold predicate on the "modes" field.

func ModesEQ

func ModesEQ(v string) predicate.MsgEvent

ModesEQ applies the EQ predicate on the "modes" field.

func ModesEqualFold

func ModesEqualFold(v string) predicate.MsgEvent

ModesEqualFold applies the EqualFold predicate on the "modes" field.

func ModesGT

func ModesGT(v string) predicate.MsgEvent

ModesGT applies the GT predicate on the "modes" field.

func ModesGTE

func ModesGTE(v string) predicate.MsgEvent

ModesGTE applies the GTE predicate on the "modes" field.

func ModesHasPrefix

func ModesHasPrefix(v string) predicate.MsgEvent

ModesHasPrefix applies the HasPrefix predicate on the "modes" field.

func ModesHasSuffix

func ModesHasSuffix(v string) predicate.MsgEvent

ModesHasSuffix applies the HasSuffix predicate on the "modes" field.

func ModesIn

func ModesIn(vs ...string) predicate.MsgEvent

ModesIn applies the In predicate on the "modes" field.

func ModesLT

func ModesLT(v string) predicate.MsgEvent

ModesLT applies the LT predicate on the "modes" field.

func ModesLTE

func ModesLTE(v string) predicate.MsgEvent

ModesLTE applies the LTE predicate on the "modes" field.

func ModesNEQ

func ModesNEQ(v string) predicate.MsgEvent

ModesNEQ applies the NEQ predicate on the "modes" field.

func ModesNotIn

func ModesNotIn(vs ...string) predicate.MsgEvent

ModesNotIn applies the NotIn predicate on the "modes" field.

func MsgTypeID

func MsgTypeID(v int) predicate.MsgEvent

MsgTypeID applies equality check predicate on the "msg_type_id" field. It's identical to MsgTypeIDEQ.

func MsgTypeIDEQ

func MsgTypeIDEQ(v int) predicate.MsgEvent

MsgTypeIDEQ applies the EQ predicate on the "msg_type_id" field.

func MsgTypeIDIn

func MsgTypeIDIn(vs ...int) predicate.MsgEvent

MsgTypeIDIn applies the In predicate on the "msg_type_id" field.

func MsgTypeIDNEQ

func MsgTypeIDNEQ(v int) predicate.MsgEvent

MsgTypeIDNEQ applies the NEQ predicate on the "msg_type_id" field.

func MsgTypeIDNotIn

func MsgTypeIDNotIn(vs ...int) predicate.MsgEvent

MsgTypeIDNotIn applies the NotIn predicate on the "msg_type_id" field.

func Name

func Name(v string) predicate.MsgEvent

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

func NameContains

func NameContains(v string) predicate.MsgEvent

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

func NameContainsFold

func NameContainsFold(v string) predicate.MsgEvent

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

func NameEQ

func NameEQ(v string) predicate.MsgEvent

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

func NameEqualFold

func NameEqualFold(v string) predicate.MsgEvent

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

func NameGT

func NameGT(v string) predicate.MsgEvent

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

func NameGTE

func NameGTE(v string) predicate.MsgEvent

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.MsgEvent

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.MsgEvent

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.MsgEvent

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

func NameLTE

func NameLTE(v string) predicate.MsgEvent

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

func NameNEQ

func NameNEQ(v string) predicate.MsgEvent

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func RouteIsNil

func RouteIsNil() predicate.MsgEvent

RouteIsNil applies the IsNil predicate on the "route" field.

func RouteNotNil

func RouteNotNil() predicate.MsgEvent

RouteNotNil applies the NotNil predicate on the "route" field.

func StatusEQ

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

func StatusIn

func StatusIn(vs ...typex.SimpleStatus) predicate.MsgEvent

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

func StatusIsNil

func StatusIsNil() predicate.MsgEvent

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v typex.SimpleStatus) predicate.MsgEvent

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

func StatusNotIn

func StatusNotIn(vs ...typex.SimpleStatus) predicate.MsgEvent

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

func StatusNotNil

func StatusNotNil() predicate.MsgEvent

StatusNotNil applies the NotNil predicate on the "status" field.

func StatusValidator

func StatusValidator(s typex.SimpleStatus) 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.MsgEvent

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MsgEvent

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MsgEvent

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MsgEvent

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.MsgEvent

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MsgEvent

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MsgEvent

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MsgEvent

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.MsgEvent

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.MsgEvent

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.MsgEvent

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.MsgEvent

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.MsgEvent

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.MsgEvent

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.MsgEvent

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.MsgEvent

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.MsgEvent

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.MsgEvent

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.MsgEvent

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.MsgEvent

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the MsgEvent queries.

func ByComments

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

ByComments orders the results by the comments field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByCustomerTemplate

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

ByCustomerTemplate orders the results by customer_template terms.

func ByCustomerTemplateCount

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

ByCustomerTemplateCount orders the results by customer_template count.

func ByID

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

ByID orders the results by the id field.

func ByModes

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

ByModes orders the results by the modes field.

func ByMsgTypeField

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

ByMsgTypeField orders the results by msg_type field.

func ByMsgTypeID

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

ByMsgTypeID orders the results by the msg_type_id field.

func ByName

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

ByName orders the results by the name field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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