nlog

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

View Source
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"
View Source
var (
	// AlertsPrimaryKey and AlertsColumn2 are the table columns denoting the
	// primary key for the alerts relation (M2M).
	AlertsPrimaryKey = []string{"nlog_id", "alert_id"}
)

Columns holds all SQL columns for nlog fields.

Functions

func And

func And(predicates ...predicate.Nlog) predicate.Nlog

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Nlog

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Nlog

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Nlog

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Nlog

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Nlog

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Nlog

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Nlog

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

func CreatedAtNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Nlog

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Nlog

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Nlog

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Nlog

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Nlog

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Nlog

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Nlog

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Nlog

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Nlog

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func GroupKey

func GroupKey(v string) predicate.Nlog

GroupKey applies equality check predicate on the "group_key" field. It's identical to GroupKeyEQ.

func GroupKeyContains

func GroupKeyContains(v string) predicate.Nlog

GroupKeyContains applies the Contains predicate on the "group_key" field.

func GroupKeyContainsFold

func GroupKeyContainsFold(v string) predicate.Nlog

GroupKeyContainsFold applies the ContainsFold predicate on the "group_key" field.

func GroupKeyEQ

func GroupKeyEQ(v string) predicate.Nlog

GroupKeyEQ applies the EQ predicate on the "group_key" field.

func GroupKeyEqualFold

func GroupKeyEqualFold(v string) predicate.Nlog

GroupKeyEqualFold applies the EqualFold predicate on the "group_key" field.

func GroupKeyGT

func GroupKeyGT(v string) predicate.Nlog

GroupKeyGT applies the GT predicate on the "group_key" field.

func GroupKeyGTE

func GroupKeyGTE(v string) predicate.Nlog

GroupKeyGTE applies the GTE predicate on the "group_key" field.

func GroupKeyHasPrefix

func GroupKeyHasPrefix(v string) predicate.Nlog

GroupKeyHasPrefix applies the HasPrefix predicate on the "group_key" field.

func GroupKeyHasSuffix

func GroupKeyHasSuffix(v string) predicate.Nlog

GroupKeyHasSuffix applies the HasSuffix predicate on the "group_key" field.

func GroupKeyIn

func GroupKeyIn(vs ...string) predicate.Nlog

GroupKeyIn applies the In predicate on the "group_key" field.

func GroupKeyLT

func GroupKeyLT(v string) predicate.Nlog

GroupKeyLT applies the LT predicate on the "group_key" field.

func GroupKeyLTE

func GroupKeyLTE(v string) predicate.Nlog

GroupKeyLTE applies the LTE predicate on the "group_key" field.

func GroupKeyNEQ

func GroupKeyNEQ(v string) predicate.Nlog

GroupKeyNEQ applies the NEQ predicate on the "group_key" field.

func GroupKeyNotIn

func GroupKeyNotIn(vs ...string) predicate.Nlog

GroupKeyNotIn applies the NotIn predicate on the "group_key" field.

func HasAlerts

func HasAlerts() predicate.Nlog

HasAlerts applies the HasEdge predicate on the "alerts" edge.

func HasAlertsWith

func HasAlertsWith(preds ...predicate.MsgAlert) predicate.Nlog

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

func HasNlogAlert

func HasNlogAlert() predicate.Nlog

HasNlogAlert applies the HasEdge predicate on the "nlog_alert" edge.

func HasNlogAlertWith

func HasNlogAlertWith(preds ...predicate.NlogAlert) predicate.Nlog

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

func ID

func ID(id int) predicate.Nlog

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Nlog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Nlog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Nlog

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Nlog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Nlog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Nlog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Idx

func Idx(v int) predicate.Nlog

Idx applies equality check predicate on the "idx" field. It's identical to IdxEQ.

func IdxEQ

func IdxEQ(v int) predicate.Nlog

IdxEQ applies the EQ predicate on the "idx" field.

func IdxGT

func IdxGT(v int) predicate.Nlog

IdxGT applies the GT predicate on the "idx" field.

func IdxGTE

func IdxGTE(v int) predicate.Nlog

IdxGTE applies the GTE predicate on the "idx" field.

func IdxIn

func IdxIn(vs ...int) predicate.Nlog

IdxIn applies the In predicate on the "idx" field.

func IdxLT

func IdxLT(v int) predicate.Nlog

IdxLT applies the LT predicate on the "idx" field.

func IdxLTE

func IdxLTE(v int) predicate.Nlog

IdxLTE applies the LTE predicate on the "idx" field.

func IdxNEQ

func IdxNEQ(v int) predicate.Nlog

IdxNEQ applies the NEQ predicate on the "idx" field.

func IdxNotIn

func IdxNotIn(vs ...int) predicate.Nlog

IdxNotIn applies the NotIn predicate on the "idx" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Nlog) predicate.Nlog

Or groups predicates with the OR operator between them.

func Receiver

func Receiver(v string) predicate.Nlog

Receiver applies equality check predicate on the "receiver" field. It's identical to ReceiverEQ.

func ReceiverContains

func ReceiverContains(v string) predicate.Nlog

ReceiverContains applies the Contains predicate on the "receiver" field.

func ReceiverContainsFold

func ReceiverContainsFold(v string) predicate.Nlog

ReceiverContainsFold applies the ContainsFold predicate on the "receiver" field.

func ReceiverEQ

func ReceiverEQ(v string) predicate.Nlog

ReceiverEQ applies the EQ predicate on the "receiver" field.

func ReceiverEqualFold

func ReceiverEqualFold(v string) predicate.Nlog

ReceiverEqualFold applies the EqualFold predicate on the "receiver" field.

func ReceiverGT

func ReceiverGT(v string) predicate.Nlog

ReceiverGT applies the GT predicate on the "receiver" field.

func ReceiverGTE

func ReceiverGTE(v string) predicate.Nlog

ReceiverGTE applies the GTE predicate on the "receiver" field.

func ReceiverHasPrefix

func ReceiverHasPrefix(v string) predicate.Nlog

ReceiverHasPrefix applies the HasPrefix predicate on the "receiver" field.

func ReceiverHasSuffix

func ReceiverHasSuffix(v string) predicate.Nlog

ReceiverHasSuffix applies the HasSuffix predicate on the "receiver" field.

func ReceiverIn

func ReceiverIn(vs ...string) predicate.Nlog

ReceiverIn applies the In predicate on the "receiver" field.

func ReceiverLT

func ReceiverLT(v string) predicate.Nlog

ReceiverLT applies the LT predicate on the "receiver" field.

func ReceiverLTE

func ReceiverLTE(v string) predicate.Nlog

ReceiverLTE applies the LTE predicate on the "receiver" field.

func ReceiverNEQ

func ReceiverNEQ(v string) predicate.Nlog

ReceiverNEQ applies the NEQ predicate on the "receiver" field.

func ReceiverNotIn

func ReceiverNotIn(vs ...string) predicate.Nlog

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

func SendAt(v time.Time) predicate.Nlog

SendAt applies equality check predicate on the "send_at" field. It's identical to SendAtEQ.

func SendAtEQ

func SendAtEQ(v time.Time) predicate.Nlog

SendAtEQ applies the EQ predicate on the "send_at" field.

func SendAtGT

func SendAtGT(v time.Time) predicate.Nlog

SendAtGT applies the GT predicate on the "send_at" field.

func SendAtGTE

func SendAtGTE(v time.Time) predicate.Nlog

SendAtGTE applies the GTE predicate on the "send_at" field.

func SendAtIn

func SendAtIn(vs ...time.Time) predicate.Nlog

SendAtIn applies the In predicate on the "send_at" field.

func SendAtLT

func SendAtLT(v time.Time) predicate.Nlog

SendAtLT applies the LT predicate on the "send_at" field.

func SendAtLTE

func SendAtLTE(v time.Time) predicate.Nlog

SendAtLTE applies the LTE predicate on the "send_at" field.

func SendAtNEQ

func SendAtNEQ(v time.Time) predicate.Nlog

SendAtNEQ applies the NEQ predicate on the "send_at" field.

func SendAtNotIn

func SendAtNotIn(vs ...time.Time) predicate.Nlog

SendAtNotIn applies the NotIn predicate on the "send_at" field.

func TenantID

func TenantID(v int) predicate.Nlog

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDEQ

func TenantIDEQ(v int) predicate.Nlog

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v int) predicate.Nlog

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v int) predicate.Nlog

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDIn

func TenantIDIn(vs ...int) predicate.Nlog

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v int) predicate.Nlog

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v int) predicate.Nlog

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v int) predicate.Nlog

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

func TenantIDNotIn(vs ...int) predicate.Nlog

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Nlog

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Nlog

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Nlog

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Nlog

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Nlog

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Nlog

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Nlog

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Nlog

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Nlog

UpdatedAtNotNil applies the NotNil 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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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