Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MsgEvent) predicate.MsgEvent
- func Comments(v string) predicate.MsgEvent
- func CommentsContains(v string) predicate.MsgEvent
- func CommentsContainsFold(v string) predicate.MsgEvent
- func CommentsEQ(v string) predicate.MsgEvent
- func CommentsEqualFold(v string) predicate.MsgEvent
- func CommentsGT(v string) predicate.MsgEvent
- func CommentsGTE(v string) predicate.MsgEvent
- func CommentsHasPrefix(v string) predicate.MsgEvent
- func CommentsHasSuffix(v string) predicate.MsgEvent
- func CommentsIn(vs ...string) predicate.MsgEvent
- func CommentsIsNil() predicate.MsgEvent
- func CommentsLT(v string) predicate.MsgEvent
- func CommentsLTE(v string) predicate.MsgEvent
- func CommentsNEQ(v string) predicate.MsgEvent
- func CommentsNotIn(vs ...string) predicate.MsgEvent
- func CommentsNotNil() predicate.MsgEvent
- func CreatedAt(v time.Time) predicate.MsgEvent
- func CreatedAtEQ(v time.Time) predicate.MsgEvent
- func CreatedAtGT(v time.Time) predicate.MsgEvent
- func CreatedAtGTE(v time.Time) predicate.MsgEvent
- func CreatedAtIn(vs ...time.Time) predicate.MsgEvent
- func CreatedAtLT(v time.Time) predicate.MsgEvent
- func CreatedAtLTE(v time.Time) predicate.MsgEvent
- func CreatedAtNEQ(v time.Time) predicate.MsgEvent
- func CreatedAtNotIn(vs ...time.Time) predicate.MsgEvent
- func CreatedBy(v int) predicate.MsgEvent
- func CreatedByEQ(v int) predicate.MsgEvent
- func CreatedByGT(v int) predicate.MsgEvent
- func CreatedByGTE(v int) predicate.MsgEvent
- func CreatedByIn(vs ...int) predicate.MsgEvent
- func CreatedByLT(v int) predicate.MsgEvent
- func CreatedByLTE(v int) predicate.MsgEvent
- func CreatedByNEQ(v int) predicate.MsgEvent
- func CreatedByNotIn(vs ...int) predicate.MsgEvent
- func HasCustomerTemplate() predicate.MsgEvent
- func HasCustomerTemplateWith(preds ...predicate.MsgTemplate) predicate.MsgEvent
- func HasMsgType() predicate.MsgEvent
- func HasMsgTypeWith(preds ...predicate.MsgType) predicate.MsgEvent
- func ID(id int) predicate.MsgEvent
- func IDEQ(id int) predicate.MsgEvent
- func IDGT(id int) predicate.MsgEvent
- func IDGTE(id int) predicate.MsgEvent
- func IDIn(ids ...int) predicate.MsgEvent
- func IDLT(id int) predicate.MsgEvent
- func IDLTE(id int) predicate.MsgEvent
- func IDNEQ(id int) predicate.MsgEvent
- func IDNotIn(ids ...int) predicate.MsgEvent
- func Modes(v string) predicate.MsgEvent
- func ModesContains(v string) predicate.MsgEvent
- func ModesContainsFold(v string) predicate.MsgEvent
- func ModesEQ(v string) predicate.MsgEvent
- func ModesEqualFold(v string) predicate.MsgEvent
- func ModesGT(v string) predicate.MsgEvent
- func ModesGTE(v string) predicate.MsgEvent
- func ModesHasPrefix(v string) predicate.MsgEvent
- func ModesHasSuffix(v string) predicate.MsgEvent
- func ModesIn(vs ...string) predicate.MsgEvent
- func ModesLT(v string) predicate.MsgEvent
- func ModesLTE(v string) predicate.MsgEvent
- func ModesNEQ(v string) predicate.MsgEvent
- func ModesNotIn(vs ...string) predicate.MsgEvent
- func MsgTypeID(v int) predicate.MsgEvent
- func MsgTypeIDEQ(v int) predicate.MsgEvent
- func MsgTypeIDIn(vs ...int) predicate.MsgEvent
- func MsgTypeIDNEQ(v int) predicate.MsgEvent
- func MsgTypeIDNotIn(vs ...int) predicate.MsgEvent
- func Name(v string) predicate.MsgEvent
- func NameContains(v string) predicate.MsgEvent
- func NameContainsFold(v string) predicate.MsgEvent
- func NameEQ(v string) predicate.MsgEvent
- func NameEqualFold(v string) predicate.MsgEvent
- func NameGT(v string) predicate.MsgEvent
- func NameGTE(v string) predicate.MsgEvent
- func NameHasPrefix(v string) predicate.MsgEvent
- func NameHasSuffix(v string) predicate.MsgEvent
- func NameIn(vs ...string) predicate.MsgEvent
- func NameLT(v string) predicate.MsgEvent
- func NameLTE(v string) predicate.MsgEvent
- func NameNEQ(v string) predicate.MsgEvent
- func NameNotIn(vs ...string) predicate.MsgEvent
- func Not(p predicate.MsgEvent) predicate.MsgEvent
- func Or(predicates ...predicate.MsgEvent) predicate.MsgEvent
- func RouteIsNil() predicate.MsgEvent
- func RouteNotNil() predicate.MsgEvent
- func StatusEQ(v typex.SimpleStatus) predicate.MsgEvent
- func StatusIn(vs ...typex.SimpleStatus) predicate.MsgEvent
- func StatusIsNil() predicate.MsgEvent
- func StatusNEQ(v typex.SimpleStatus) predicate.MsgEvent
- func StatusNotIn(vs ...typex.SimpleStatus) predicate.MsgEvent
- func StatusNotNil() predicate.MsgEvent
- func StatusValidator(s typex.SimpleStatus) error
- func UpdatedAt(v time.Time) predicate.MsgEvent
- func UpdatedAtEQ(v time.Time) predicate.MsgEvent
- func UpdatedAtGT(v time.Time) predicate.MsgEvent
- func UpdatedAtGTE(v time.Time) predicate.MsgEvent
- func UpdatedAtIn(vs ...time.Time) predicate.MsgEvent
- func UpdatedAtIsNil() predicate.MsgEvent
- func UpdatedAtLT(v time.Time) predicate.MsgEvent
- func UpdatedAtLTE(v time.Time) predicate.MsgEvent
- func UpdatedAtNEQ(v time.Time) predicate.MsgEvent
- func UpdatedAtNotIn(vs ...time.Time) predicate.MsgEvent
- func UpdatedAtNotNil() predicate.MsgEvent
- func UpdatedBy(v int) predicate.MsgEvent
- func UpdatedByEQ(v int) predicate.MsgEvent
- func UpdatedByGT(v int) predicate.MsgEvent
- func UpdatedByGTE(v int) predicate.MsgEvent
- func UpdatedByIn(vs ...int) predicate.MsgEvent
- func UpdatedByIsNil() predicate.MsgEvent
- func UpdatedByLT(v int) predicate.MsgEvent
- func UpdatedByLTE(v int) predicate.MsgEvent
- func UpdatedByNEQ(v int) predicate.MsgEvent
- func UpdatedByNotIn(vs ...int) predicate.MsgEvent
- func UpdatedByNotNil() predicate.MsgEvent
- func ValidColumn(column string) bool
- type OrderOption
- func ByComments(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCustomerTemplate(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCustomerTemplateCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModes(opts ...sql.OrderTermOption) OrderOption
- func ByMsgTypeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMsgTypeID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultStatus typex.SimpleStatus = "inactive"
Variables ¶
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"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldMsgTypeID, FieldName, FieldStatus, FieldComments, FieldRoute, FieldModes, }
Columns holds all SQL columns for msgevent fields.
Functions ¶
func Comments ¶
Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func CommentsContains ¶
CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContainsFold ¶
CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsEQ ¶
CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEqualFold ¶
CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsGT ¶
CommentsGT applies the GT predicate on the "comments" field.
func CommentsGTE ¶
CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsHasPrefix ¶
CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasSuffix ¶
CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsIn ¶
CommentsIn applies the In predicate on the "comments" field.
func CommentsIsNil ¶
CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsLT ¶
CommentsLT applies the LT predicate on the "comments" field.
func CommentsLTE ¶
CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsNEQ ¶
CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNotIn ¶
CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotNil ¶
CommentsNotNil applies the NotNil predicate on the "comments" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasCustomerTemplate ¶
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 ¶
HasMsgType applies the HasEdge predicate on the "msg_type" edge.
func HasMsgTypeWith ¶
HasMsgTypeWith applies the HasEdge predicate on the "msg_type" edge with a given conditions (other predicates).
func Modes ¶
Modes applies equality check predicate on the "modes" field. It's identical to ModesEQ.
func ModesContains ¶
ModesContains applies the Contains predicate on the "modes" field.
func ModesContainsFold ¶
ModesContainsFold applies the ContainsFold predicate on the "modes" field.
func ModesEqualFold ¶
ModesEqualFold applies the EqualFold predicate on the "modes" field.
func ModesHasPrefix ¶
ModesHasPrefix applies the HasPrefix predicate on the "modes" field.
func ModesHasSuffix ¶
ModesHasSuffix applies the HasSuffix predicate on the "modes" field.
func ModesNotIn ¶
ModesNotIn applies the NotIn predicate on the "modes" field.
func MsgTypeID ¶
MsgTypeID applies equality check predicate on the "msg_type_id" field. It's identical to MsgTypeIDEQ.
func MsgTypeIDEQ ¶
MsgTypeIDEQ applies the EQ predicate on the "msg_type_id" field.
func MsgTypeIDIn ¶
MsgTypeIDIn applies the In predicate on the "msg_type_id" field.
func MsgTypeIDNEQ ¶
MsgTypeIDNEQ applies the NEQ predicate on the "msg_type_id" field.
func MsgTypeIDNotIn ¶
MsgTypeIDNotIn applies the NotIn predicate on the "msg_type_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func RouteIsNil ¶
RouteIsNil applies the IsNil predicate on the "route" field.
func RouteNotNil ¶
RouteNotNil applies the NotNil predicate on the "route" field.
func StatusEQ ¶
func StatusEQ(v typex.SimpleStatus) predicate.MsgEvent
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 ¶
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 ¶
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 ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.