Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Event) predicate.Event
- func CreatedAt(v time.Time) predicate.Event
- func CreatedAtEQ(v time.Time) predicate.Event
- func CreatedAtGT(v time.Time) predicate.Event
- func CreatedAtGTE(v time.Time) predicate.Event
- func CreatedAtIn(vs ...time.Time) predicate.Event
- func CreatedAtLT(v time.Time) predicate.Event
- func CreatedAtLTE(v time.Time) predicate.Event
- func CreatedAtNEQ(v time.Time) predicate.Event
- func CreatedAtNotIn(vs ...time.Time) predicate.Event
- func Event(v string) predicate.Event
- func EventContains(v string) predicate.Event
- func EventContainsFold(v string) predicate.Event
- func EventEQ(v string) predicate.Event
- func EventEqualFold(v string) predicate.Event
- func EventGT(v string) predicate.Event
- func EventGTE(v string) predicate.Event
- func EventHasPrefix(v string) predicate.Event
- func EventHasSuffix(v string) predicate.Event
- func EventIn(vs ...string) predicate.Event
- func EventLT(v string) predicate.Event
- func EventLTE(v string) predicate.Event
- func EventNEQ(v string) predicate.Event
- func EventNotIn(vs ...string) predicate.Event
- func HasClientserver() predicate.Event
- func HasClientserverWith(preds ...predicate.ClientServer) predicate.Event
- func HasUser() predicate.Event
- func HasUserWith(preds ...predicate.User) predicate.Event
- func ID(id int) predicate.Event
- func IDEQ(id int) predicate.Event
- func IDGT(id int) predicate.Event
- func IDGTE(id int) predicate.Event
- func IDIn(ids ...int) predicate.Event
- func IDLT(id int) predicate.Event
- func IDLTE(id int) predicate.Event
- func IDNEQ(id int) predicate.Event
- func IDNotIn(ids ...int) predicate.Event
- func Message(v string) predicate.Event
- func MessageContains(v string) predicate.Event
- func MessageContainsFold(v string) predicate.Event
- func MessageEQ(v string) predicate.Event
- func MessageEqualFold(v string) predicate.Event
- func MessageGT(v string) predicate.Event
- func MessageGTE(v string) predicate.Event
- func MessageHasPrefix(v string) predicate.Event
- func MessageHasSuffix(v string) predicate.Event
- func MessageIn(vs ...string) predicate.Event
- func MessageLT(v string) predicate.Event
- func MessageLTE(v string) predicate.Event
- func MessageNEQ(v string) predicate.Event
- func MessageNotIn(vs ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the event type in the database. Label = "event" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEvent holds the string denoting the event field in the database. FieldEvent = "event" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeClientserver holds the string denoting the clientserver edge name in mutations. EdgeClientserver = "clientserver" // Table holds the table name of the event in the database. Table = "events" // UserTable is the table the holds the user relation/edge. UserTable = "events" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "event_user" // ClientserverTable is the table the holds the clientserver relation/edge. ClientserverTable = "events" // ClientserverInverseTable is the table name for the ClientServer entity. // It exists in this package in order to avoid circular dependency with the "clientserver" package. ClientserverInverseTable = "client_servers" // ClientserverColumn is the table column denoting the clientserver relation/edge. ClientserverColumn = "event_clientserver" )
Variables ¶
var ( // DefaultMessage holds the default value on creation for the "message" field. DefaultMessage string // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldEvent, FieldMessage, FieldCreatedAt, }
Columns holds all SQL columns for event fields.
var ForeignKeys = []string{
"event_user",
"event_clientserver",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Event type.
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 Event ¶
Event applies equality check predicate on the "event" field. It's identical to EventEQ.
func EventContains ¶
EventContains applies the Contains predicate on the "event" field.
func EventContainsFold ¶
EventContainsFold applies the ContainsFold predicate on the "event" field.
func EventEqualFold ¶
EventEqualFold applies the EqualFold predicate on the "event" field.
func EventHasPrefix ¶
EventHasPrefix applies the HasPrefix predicate on the "event" field.
func EventHasSuffix ¶
EventHasSuffix applies the HasSuffix predicate on the "event" field.
func EventNotIn ¶
EventNotIn applies the NotIn predicate on the "event" field.
func HasClientserver ¶
HasClientserver applies the HasEdge predicate on the "clientserver" edge.
func HasClientserverWith ¶
func HasClientserverWith(preds ...predicate.ClientServer) predicate.Event
HasClientserverWith applies the HasEdge predicate on the "clientserver" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.