event

package
v0.0.0-...-7f4b9de Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

View Source
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
)

Columns holds all SQL columns for event fields.

View Source
var ForeignKeys = []string{
	"event_user",
	"event_clientserver",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Event type.

Functions

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Event

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Event

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Event

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Event

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Event

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Event

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Event

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

func CreatedAtNotIn

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

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

func Event

func Event(v string) predicate.Event

Event applies equality check predicate on the "event" field. It's identical to EventEQ.

func EventContains

func EventContains(v string) predicate.Event

EventContains applies the Contains predicate on the "event" field.

func EventContainsFold

func EventContainsFold(v string) predicate.Event

EventContainsFold applies the ContainsFold predicate on the "event" field.

func EventEQ

func EventEQ(v string) predicate.Event

EventEQ applies the EQ predicate on the "event" field.

func EventEqualFold

func EventEqualFold(v string) predicate.Event

EventEqualFold applies the EqualFold predicate on the "event" field.

func EventGT

func EventGT(v string) predicate.Event

EventGT applies the GT predicate on the "event" field.

func EventGTE

func EventGTE(v string) predicate.Event

EventGTE applies the GTE predicate on the "event" field.

func EventHasPrefix

func EventHasPrefix(v string) predicate.Event

EventHasPrefix applies the HasPrefix predicate on the "event" field.

func EventHasSuffix

func EventHasSuffix(v string) predicate.Event

EventHasSuffix applies the HasSuffix predicate on the "event" field.

func EventIn

func EventIn(vs ...string) predicate.Event

EventIn applies the In predicate on the "event" field.

func EventLT

func EventLT(v string) predicate.Event

EventLT applies the LT predicate on the "event" field.

func EventLTE

func EventLTE(v string) predicate.Event

EventLTE applies the LTE predicate on the "event" field.

func EventNEQ

func EventNEQ(v string) predicate.Event

EventNEQ applies the NEQ predicate on the "event" field.

func EventNotIn

func EventNotIn(vs ...string) predicate.Event

EventNotIn applies the NotIn predicate on the "event" field.

func HasClientserver

func HasClientserver() predicate.Event

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 HasUser

func HasUser() predicate.Event

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Event

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

func ID

func ID(id int) predicate.Event

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.Event

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.Event

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.Event

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.Event

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.Event

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.Event

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.Event

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Event

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Event

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.Event

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.Event

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.Event

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.Event

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.Event

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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