events

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the events type in the database.
	Label = "events"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldEvents holds the string denoting the events field in the database.
	FieldEvents = "events"
	// FieldCorrelations holds the string denoting the correlations field in the database.
	FieldCorrelations = "correlations"
	// FieldSignature holds the string denoting the signature field in the database.
	FieldSignature = "signature"
	// FieldCount holds the string denoting the count field in the database.
	FieldCount = "count"
	// 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"
	// EdgeWorkflow holds the string denoting the workflow edge name in mutations.
	EdgeWorkflow = "workflow"
	// EdgeWfeventswait holds the string denoting the wfeventswait edge name in mutations.
	EdgeWfeventswait = "wfeventswait"
	// EdgeInstance holds the string denoting the instance edge name in mutations.
	EdgeInstance = "instance"
	// EdgeNamespace holds the string denoting the namespace edge name in mutations.
	EdgeNamespace = "namespace"
	// Table holds the table name of the events in the database.
	Table = "events"
	// WorkflowTable is the table that holds the workflow relation/edge.
	WorkflowTable = "events"
	// WorkflowInverseTable is the table name for the Workflow entity.
	// It exists in this package in order to avoid circular dependency with the "workflow" package.
	WorkflowInverseTable = "workflows"
	// WorkflowColumn is the table column denoting the workflow relation/edge.
	WorkflowColumn = "workflow_wfevents"
	// WfeventswaitTable is the table that holds the wfeventswait relation/edge.
	WfeventswaitTable = "events_waits"
	// WfeventswaitInverseTable is the table name for the EventsWait entity.
	// It exists in this package in order to avoid circular dependency with the "eventswait" package.
	WfeventswaitInverseTable = "events_waits"
	// WfeventswaitColumn is the table column denoting the wfeventswait relation/edge.
	WfeventswaitColumn = "events_wfeventswait"
	// InstanceTable is the table that holds the instance relation/edge.
	InstanceTable = "events"
	// InstanceInverseTable is the table name for the Instance entity.
	// It exists in this package in order to avoid circular dependency with the "instance" package.
	InstanceInverseTable = "instances"
	// InstanceColumn is the table column denoting the instance relation/edge.
	InstanceColumn = "instance_eventlisteners"
	// NamespaceTable is the table that holds the namespace relation/edge.
	NamespaceTable = "events"
	// NamespaceInverseTable is the table name for the Namespace entity.
	// It exists in this package in order to avoid circular dependency with the "namespace" package.
	NamespaceInverseTable = "namespaces"
	// NamespaceColumn is the table column denoting the namespace relation/edge.
	NamespaceColumn = "namespace_namespacelisteners"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for events fields.

View Source
var ForeignKeys = []string{
	"instance_eventlisteners",
	"namespace_namespacelisteners",
	"workflow_wfevents",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "events" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Events) predicate.Events

And groups predicates with the AND operator between them.

func Count

func Count(v int) predicate.Events

Count applies equality check predicate on the "count" field. It's identical to CountEQ.

func CountEQ

func CountEQ(v int) predicate.Events

CountEQ applies the EQ predicate on the "count" field.

func CountGT

func CountGT(v int) predicate.Events

CountGT applies the GT predicate on the "count" field.

func CountGTE

func CountGTE(v int) predicate.Events

CountGTE applies the GTE predicate on the "count" field.

func CountIn

func CountIn(vs ...int) predicate.Events

CountIn applies the In predicate on the "count" field.

func CountLT

func CountLT(v int) predicate.Events

CountLT applies the LT predicate on the "count" field.

func CountLTE

func CountLTE(v int) predicate.Events

CountLTE applies the LTE predicate on the "count" field.

func CountNEQ

func CountNEQ(v int) predicate.Events

CountNEQ applies the NEQ predicate on the "count" field.

func CountNotIn

func CountNotIn(vs ...int) predicate.Events

CountNotIn applies the NotIn predicate on the "count" field.

func CreatedAt added in v0.6.0

func CreatedAt(v time.Time) predicate.Events

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

func CreatedAtEQ added in v0.6.0

func CreatedAtEQ(v time.Time) predicate.Events

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

func CreatedAtGT added in v0.6.0

func CreatedAtGT(v time.Time) predicate.Events

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

func CreatedAtGTE added in v0.6.0

func CreatedAtGTE(v time.Time) predicate.Events

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

func CreatedAtIn added in v0.6.0

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

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

func CreatedAtLT added in v0.6.0

func CreatedAtLT(v time.Time) predicate.Events

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

func CreatedAtLTE added in v0.6.0

func CreatedAtLTE(v time.Time) predicate.Events

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

func CreatedAtNEQ added in v0.6.0

func CreatedAtNEQ(v time.Time) predicate.Events

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

func CreatedAtNotIn added in v0.6.0

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

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

func HasInstance

func HasInstance() predicate.Events

HasInstance applies the HasEdge predicate on the "instance" edge.

func HasInstanceWith

func HasInstanceWith(preds ...predicate.Instance) predicate.Events

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

func HasNamespace added in v0.6.0

func HasNamespace() predicate.Events

HasNamespace applies the HasEdge predicate on the "namespace" edge.

func HasNamespaceWith added in v0.6.0

func HasNamespaceWith(preds ...predicate.Namespace) predicate.Events

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

func HasWfeventswait

func HasWfeventswait() predicate.Events

HasWfeventswait applies the HasEdge predicate on the "wfeventswait" edge.

func HasWfeventswaitWith

func HasWfeventswaitWith(preds ...predicate.EventsWait) predicate.Events

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

func HasWorkflow

func HasWorkflow() predicate.Events

HasWorkflow applies the HasEdge predicate on the "workflow" edge.

func HasWorkflowWith

func HasWorkflowWith(preds ...predicate.Workflow) predicate.Events

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

func ID

func ID(id uuid.UUID) predicate.Events

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Events

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Events

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Events

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Events

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Events

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Events

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Events

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Events

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Events) predicate.Events

Or groups predicates with the OR operator between them.

func Signature

func Signature(v []byte) predicate.Events

Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.

func SignatureEQ

func SignatureEQ(v []byte) predicate.Events

SignatureEQ applies the EQ predicate on the "signature" field.

func SignatureGT

func SignatureGT(v []byte) predicate.Events

SignatureGT applies the GT predicate on the "signature" field.

func SignatureGTE

func SignatureGTE(v []byte) predicate.Events

SignatureGTE applies the GTE predicate on the "signature" field.

func SignatureIn

func SignatureIn(vs ...[]byte) predicate.Events

SignatureIn applies the In predicate on the "signature" field.

func SignatureIsNil

func SignatureIsNil() predicate.Events

SignatureIsNil applies the IsNil predicate on the "signature" field.

func SignatureLT

func SignatureLT(v []byte) predicate.Events

SignatureLT applies the LT predicate on the "signature" field.

func SignatureLTE

func SignatureLTE(v []byte) predicate.Events

SignatureLTE applies the LTE predicate on the "signature" field.

func SignatureNEQ

func SignatureNEQ(v []byte) predicate.Events

SignatureNEQ applies the NEQ predicate on the "signature" field.

func SignatureNotIn

func SignatureNotIn(vs ...[]byte) predicate.Events

SignatureNotIn applies the NotIn predicate on the "signature" field.

func SignatureNotNil

func SignatureNotNil() predicate.Events

SignatureNotNil applies the NotNil predicate on the "signature" field.

func UpdatedAt added in v0.6.0

func UpdatedAt(v time.Time) predicate.Events

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

func UpdatedAtEQ added in v0.6.0

func UpdatedAtEQ(v time.Time) predicate.Events

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

func UpdatedAtGT added in v0.6.0

func UpdatedAtGT(v time.Time) predicate.Events

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

func UpdatedAtGTE added in v0.6.0

func UpdatedAtGTE(v time.Time) predicate.Events

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

func UpdatedAtIn added in v0.6.0

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

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

func UpdatedAtLT added in v0.6.0

func UpdatedAtLT(v time.Time) predicate.Events

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

func UpdatedAtLTE added in v0.6.0

func UpdatedAtLTE(v time.Time) predicate.Events

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

func UpdatedAtNEQ added in v0.6.0

func UpdatedAtNEQ(v time.Time) predicate.Events

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

func UpdatedAtNotIn added in v0.6.0

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

UpdatedAtNotIn applies the NotIn 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

This section is empty.

Jump to

Keyboard shortcuts

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