Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Nlog) predicate.Nlog
- func CreatedAt(v time.Time) predicate.Nlog
- func CreatedAtEQ(v time.Time) predicate.Nlog
- func CreatedAtGT(v time.Time) predicate.Nlog
- func CreatedAtGTE(v time.Time) predicate.Nlog
- func CreatedAtIn(vs ...time.Time) predicate.Nlog
- func CreatedAtLT(v time.Time) predicate.Nlog
- func CreatedAtLTE(v time.Time) predicate.Nlog
- func CreatedAtNEQ(v time.Time) predicate.Nlog
- func CreatedAtNotIn(vs ...time.Time) predicate.Nlog
- func ExpiresAt(v time.Time) predicate.Nlog
- func ExpiresAtEQ(v time.Time) predicate.Nlog
- func ExpiresAtGT(v time.Time) predicate.Nlog
- func ExpiresAtGTE(v time.Time) predicate.Nlog
- func ExpiresAtIn(vs ...time.Time) predicate.Nlog
- func ExpiresAtLT(v time.Time) predicate.Nlog
- func ExpiresAtLTE(v time.Time) predicate.Nlog
- func ExpiresAtNEQ(v time.Time) predicate.Nlog
- func ExpiresAtNotIn(vs ...time.Time) predicate.Nlog
- func GroupKey(v string) predicate.Nlog
- func GroupKeyContains(v string) predicate.Nlog
- func GroupKeyContainsFold(v string) predicate.Nlog
- func GroupKeyEQ(v string) predicate.Nlog
- func GroupKeyEqualFold(v string) predicate.Nlog
- func GroupKeyGT(v string) predicate.Nlog
- func GroupKeyGTE(v string) predicate.Nlog
- func GroupKeyHasPrefix(v string) predicate.Nlog
- func GroupKeyHasSuffix(v string) predicate.Nlog
- func GroupKeyIn(vs ...string) predicate.Nlog
- func GroupKeyLT(v string) predicate.Nlog
- func GroupKeyLTE(v string) predicate.Nlog
- func GroupKeyNEQ(v string) predicate.Nlog
- func GroupKeyNotIn(vs ...string) predicate.Nlog
- func HasAlerts() predicate.Nlog
- func HasAlertsWith(preds ...predicate.MsgAlert) predicate.Nlog
- func HasNlogAlert() predicate.Nlog
- func HasNlogAlertWith(preds ...predicate.NlogAlert) predicate.Nlog
- func ID(id int) predicate.Nlog
- func IDEQ(id int) predicate.Nlog
- func IDGT(id int) predicate.Nlog
- func IDGTE(id int) predicate.Nlog
- func IDIn(ids ...int) predicate.Nlog
- func IDLT(id int) predicate.Nlog
- func IDLTE(id int) predicate.Nlog
- func IDNEQ(id int) predicate.Nlog
- func IDNotIn(ids ...int) predicate.Nlog
- func Idx(v int) predicate.Nlog
- func IdxEQ(v int) predicate.Nlog
- func IdxGT(v int) predicate.Nlog
- func IdxGTE(v int) predicate.Nlog
- func IdxIn(vs ...int) predicate.Nlog
- func IdxLT(v int) predicate.Nlog
- func IdxLTE(v int) predicate.Nlog
- func IdxNEQ(v int) predicate.Nlog
- func IdxNotIn(vs ...int) predicate.Nlog
- func Not(p predicate.Nlog) predicate.Nlog
- func Or(predicates ...predicate.Nlog) predicate.Nlog
- func Receiver(v string) predicate.Nlog
- func ReceiverContains(v string) predicate.Nlog
- func ReceiverContainsFold(v string) predicate.Nlog
- func ReceiverEQ(v string) predicate.Nlog
- func ReceiverEqualFold(v string) predicate.Nlog
- func ReceiverGT(v string) predicate.Nlog
- func ReceiverGTE(v string) predicate.Nlog
- func ReceiverHasPrefix(v string) predicate.Nlog
- func ReceiverHasSuffix(v string) predicate.Nlog
- func ReceiverIn(vs ...string) predicate.Nlog
- func ReceiverLT(v string) predicate.Nlog
- func ReceiverLTE(v string) predicate.Nlog
- func ReceiverNEQ(v string) predicate.Nlog
- func ReceiverNotIn(vs ...string) predicate.Nlog
- func ReceiverTypeEQ(v profile.ReceiverType) predicate.Nlog
- func ReceiverTypeIn(vs ...profile.ReceiverType) predicate.Nlog
- func ReceiverTypeNEQ(v profile.ReceiverType) predicate.Nlog
- func ReceiverTypeNotIn(vs ...profile.ReceiverType) predicate.Nlog
- func ReceiverTypeValidator(rt profile.ReceiverType) error
- func SendAt(v time.Time) predicate.Nlog
- func SendAtEQ(v time.Time) predicate.Nlog
- func SendAtGT(v time.Time) predicate.Nlog
- func SendAtGTE(v time.Time) predicate.Nlog
- func SendAtIn(vs ...time.Time) predicate.Nlog
- func SendAtLT(v time.Time) predicate.Nlog
- func SendAtLTE(v time.Time) predicate.Nlog
- func SendAtNEQ(v time.Time) predicate.Nlog
- func SendAtNotIn(vs ...time.Time) predicate.Nlog
- func TenantID(v int) predicate.Nlog
- func TenantIDEQ(v int) predicate.Nlog
- func TenantIDGT(v int) predicate.Nlog
- func TenantIDGTE(v int) predicate.Nlog
- func TenantIDIn(vs ...int) predicate.Nlog
- func TenantIDLT(v int) predicate.Nlog
- func TenantIDLTE(v int) predicate.Nlog
- func TenantIDNEQ(v int) predicate.Nlog
- func TenantIDNotIn(vs ...int) predicate.Nlog
- func UpdatedAt(v time.Time) predicate.Nlog
- func UpdatedAtEQ(v time.Time) predicate.Nlog
- func UpdatedAtGT(v time.Time) predicate.Nlog
- func UpdatedAtGTE(v time.Time) predicate.Nlog
- func UpdatedAtIn(vs ...time.Time) predicate.Nlog
- func UpdatedAtIsNil() predicate.Nlog
- func UpdatedAtLT(v time.Time) predicate.Nlog
- func UpdatedAtLTE(v time.Time) predicate.Nlog
- func UpdatedAtNEQ(v time.Time) predicate.Nlog
- func UpdatedAtNotIn(vs ...time.Time) predicate.Nlog
- func UpdatedAtNotNil() predicate.Nlog
- func ValidColumn(column string) bool
- type OrderOption
- func ByAlerts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAlertsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroupKey(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIdx(opts ...sql.OrderTermOption) OrderOption
- func ByNlogAlert(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNlogAlertCount(opts ...sql.OrderTermOption) OrderOption
- func ByReceiver(opts ...sql.OrderTermOption) OrderOption
- func ByReceiverType(opts ...sql.OrderTermOption) OrderOption
- func BySendAt(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the nlog type in the database. Label = "nlog" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldGroupKey holds the string denoting the group_key field in the database. FieldGroupKey = "group_key" // FieldReceiver holds the string denoting the receiver field in the database. FieldReceiver = "receiver" // FieldReceiverType holds the string denoting the receiver_type field in the database. FieldReceiverType = "receiver_type" // FieldIdx holds the string denoting the idx field in the database. FieldIdx = "idx" // FieldSendAt holds the string denoting the send_at field in the database. FieldSendAt = "send_at" // 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" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeAlerts holds the string denoting the alerts edge name in mutations. EdgeAlerts = "alerts" // EdgeNlogAlert holds the string denoting the nlog_alert edge name in mutations. EdgeNlogAlert = "nlog_alert" // Table holds the table name of the nlog in the database. Table = "msg_nlog" // AlertsTable is the table that holds the alerts relation/edge. The primary key declared below. AlertsTable = "msg_nlog_alert" // AlertsInverseTable is the table name for the MsgAlert entity. // It exists in this package in order to avoid circular dependency with the "msgalert" package. AlertsInverseTable = "msg_alert" // NlogAlertTable is the table that holds the nlog_alert relation/edge. NlogAlertTable = "msg_nlog_alert" // NlogAlertInverseTable is the table name for the NlogAlert entity. // It exists in this package in order to avoid circular dependency with the "nlogalert" package. NlogAlertInverseTable = "msg_nlog_alert" // NlogAlertColumn is the table column denoting the nlog_alert relation/edge. NlogAlertColumn = "nlog_id" )
Variables ¶
var ( Hooks [2]ent.Hook Interceptors [1]ent.Interceptor // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
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 ( // AlertsPrimaryKey and AlertsColumn2 are the table columns denoting the // primary key for the alerts relation (M2M). AlertsPrimaryKey = []string{"nlog_id", "alert_id"} )
var Columns = []string{ FieldID, FieldTenantID, FieldGroupKey, FieldReceiver, FieldReceiverType, FieldIdx, FieldSendAt, FieldCreatedAt, FieldUpdatedAt, FieldExpiresAt, }
Columns holds all SQL columns for nlog fields.
Functions ¶
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 ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func GroupKey ¶
GroupKey applies equality check predicate on the "group_key" field. It's identical to GroupKeyEQ.
func GroupKeyContains ¶
GroupKeyContains applies the Contains predicate on the "group_key" field.
func GroupKeyContainsFold ¶
GroupKeyContainsFold applies the ContainsFold predicate on the "group_key" field.
func GroupKeyEQ ¶
GroupKeyEQ applies the EQ predicate on the "group_key" field.
func GroupKeyEqualFold ¶
GroupKeyEqualFold applies the EqualFold predicate on the "group_key" field.
func GroupKeyGT ¶
GroupKeyGT applies the GT predicate on the "group_key" field.
func GroupKeyGTE ¶
GroupKeyGTE applies the GTE predicate on the "group_key" field.
func GroupKeyHasPrefix ¶
GroupKeyHasPrefix applies the HasPrefix predicate on the "group_key" field.
func GroupKeyHasSuffix ¶
GroupKeyHasSuffix applies the HasSuffix predicate on the "group_key" field.
func GroupKeyIn ¶
GroupKeyIn applies the In predicate on the "group_key" field.
func GroupKeyLT ¶
GroupKeyLT applies the LT predicate on the "group_key" field.
func GroupKeyLTE ¶
GroupKeyLTE applies the LTE predicate on the "group_key" field.
func GroupKeyNEQ ¶
GroupKeyNEQ applies the NEQ predicate on the "group_key" field.
func GroupKeyNotIn ¶
GroupKeyNotIn applies the NotIn predicate on the "group_key" field.
func HasAlertsWith ¶
HasAlertsWith applies the HasEdge predicate on the "alerts" edge with a given conditions (other predicates).
func HasNlogAlert ¶
HasNlogAlert applies the HasEdge predicate on the "nlog_alert" edge.
func HasNlogAlertWith ¶
HasNlogAlertWith applies the HasEdge predicate on the "nlog_alert" edge with a given conditions (other predicates).
func Receiver ¶
Receiver applies equality check predicate on the "receiver" field. It's identical to ReceiverEQ.
func ReceiverContains ¶
ReceiverContains applies the Contains predicate on the "receiver" field.
func ReceiverContainsFold ¶
ReceiverContainsFold applies the ContainsFold predicate on the "receiver" field.
func ReceiverEQ ¶
ReceiverEQ applies the EQ predicate on the "receiver" field.
func ReceiverEqualFold ¶
ReceiverEqualFold applies the EqualFold predicate on the "receiver" field.
func ReceiverGT ¶
ReceiverGT applies the GT predicate on the "receiver" field.
func ReceiverGTE ¶
ReceiverGTE applies the GTE predicate on the "receiver" field.
func ReceiverHasPrefix ¶
ReceiverHasPrefix applies the HasPrefix predicate on the "receiver" field.
func ReceiverHasSuffix ¶
ReceiverHasSuffix applies the HasSuffix predicate on the "receiver" field.
func ReceiverIn ¶
ReceiverIn applies the In predicate on the "receiver" field.
func ReceiverLT ¶
ReceiverLT applies the LT predicate on the "receiver" field.
func ReceiverLTE ¶
ReceiverLTE applies the LTE predicate on the "receiver" field.
func ReceiverNEQ ¶
ReceiverNEQ applies the NEQ predicate on the "receiver" field.
func ReceiverNotIn ¶
ReceiverNotIn applies the NotIn predicate on the "receiver" field.
func ReceiverTypeEQ ¶
func ReceiverTypeEQ(v profile.ReceiverType) predicate.Nlog
ReceiverTypeEQ applies the EQ predicate on the "receiver_type" field.
func ReceiverTypeIn ¶
func ReceiverTypeIn(vs ...profile.ReceiverType) predicate.Nlog
ReceiverTypeIn applies the In predicate on the "receiver_type" field.
func ReceiverTypeNEQ ¶
func ReceiverTypeNEQ(v profile.ReceiverType) predicate.Nlog
ReceiverTypeNEQ applies the NEQ predicate on the "receiver_type" field.
func ReceiverTypeNotIn ¶
func ReceiverTypeNotIn(vs ...profile.ReceiverType) predicate.Nlog
ReceiverTypeNotIn applies the NotIn predicate on the "receiver_type" field.
func ReceiverTypeValidator ¶
func ReceiverTypeValidator(rt profile.ReceiverType) error
ReceiverTypeValidator is a validator for the "receiver_type" field enum values. It is called by the builders before save.
func SendAt ¶
SendAt applies equality check predicate on the "send_at" field. It's identical to SendAtEQ.
func SendAtNotIn ¶
SendAtNotIn applies the NotIn predicate on the "send_at" field.
func TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDGT ¶
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Nlog queries.
func ByAlerts ¶
func ByAlerts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAlerts orders the results by alerts terms.
func ByAlertsCount ¶
func ByAlertsCount(opts ...sql.OrderTermOption) OrderOption
ByAlertsCount orders the results by alerts count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByGroupKey ¶
func ByGroupKey(opts ...sql.OrderTermOption) OrderOption
ByGroupKey orders the results by the group_key field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIdx ¶
func ByIdx(opts ...sql.OrderTermOption) OrderOption
ByIdx orders the results by the idx field.
func ByNlogAlert ¶
func ByNlogAlert(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNlogAlert orders the results by nlog_alert terms.
func ByNlogAlertCount ¶
func ByNlogAlertCount(opts ...sql.OrderTermOption) OrderOption
ByNlogAlertCount orders the results by nlog_alert count.
func ByReceiver ¶
func ByReceiver(opts ...sql.OrderTermOption) OrderOption
ByReceiver orders the results by the receiver field.
func ByReceiverType ¶
func ByReceiverType(opts ...sql.OrderTermOption) OrderOption
ByReceiverType orders the results by the receiver_type field.
func BySendAt ¶
func BySendAt(opts ...sql.OrderTermOption) OrderOption
BySendAt orders the results by the send_at field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.