cloudevents

package
Version: v0.5.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cloudevents type in the database.
	Label = "cloud_events"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldEventId holds the string denoting the eventid field in the database.
	FieldEventId = "event_id"
	// FieldEvent holds the string denoting the event field in the database.
	FieldEvent = "event"
	// FieldFire holds the string denoting the fire field in the database.
	FieldFire = "fire"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldProcessed holds the string denoting the processed field in the database.
	FieldProcessed = "processed"
	// EdgeNamespace holds the string denoting the namespace edge name in mutations.
	EdgeNamespace = "namespace"
	// Table holds the table name of the cloudevents in the database.
	Table = "cloud_events"
	// NamespaceTable is the table that holds the namespace relation/edge.
	NamespaceTable = "cloud_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_cloudevents"
)

Variables

View Source
var (
	// EventIdValidator is a validator for the "eventId" field. It is called by the builders before save.
	EventIdValidator func(string) error
	// DefaultFire holds the default value on creation for the "fire" field.
	DefaultFire func() time.Time
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for cloudevents fields.

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

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

Functions

func And

func And(predicates ...predicate.CloudEvents) predicate.CloudEvents

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.CloudEvents

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.CloudEvents

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.CloudEvents

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.CloudEvents

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.CloudEvents

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.CloudEvents

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.CloudEvents

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.CloudEvents

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.CloudEvents

CreatedNotIn applies the NotIn predicate on the "created" field.

func EventId

func EventId(v string) predicate.CloudEvents

EventId applies equality check predicate on the "eventId" field. It's identical to EventIdEQ.

func EventIdContains

func EventIdContains(v string) predicate.CloudEvents

EventIdContains applies the Contains predicate on the "eventId" field.

func EventIdContainsFold

func EventIdContainsFold(v string) predicate.CloudEvents

EventIdContainsFold applies the ContainsFold predicate on the "eventId" field.

func EventIdEQ

func EventIdEQ(v string) predicate.CloudEvents

EventIdEQ applies the EQ predicate on the "eventId" field.

func EventIdEqualFold

func EventIdEqualFold(v string) predicate.CloudEvents

EventIdEqualFold applies the EqualFold predicate on the "eventId" field.

func EventIdGT

func EventIdGT(v string) predicate.CloudEvents

EventIdGT applies the GT predicate on the "eventId" field.

func EventIdGTE

func EventIdGTE(v string) predicate.CloudEvents

EventIdGTE applies the GTE predicate on the "eventId" field.

func EventIdHasPrefix

func EventIdHasPrefix(v string) predicate.CloudEvents

EventIdHasPrefix applies the HasPrefix predicate on the "eventId" field.

func EventIdHasSuffix

func EventIdHasSuffix(v string) predicate.CloudEvents

EventIdHasSuffix applies the HasSuffix predicate on the "eventId" field.

func EventIdIn

func EventIdIn(vs ...string) predicate.CloudEvents

EventIdIn applies the In predicate on the "eventId" field.

func EventIdLT

func EventIdLT(v string) predicate.CloudEvents

EventIdLT applies the LT predicate on the "eventId" field.

func EventIdLTE

func EventIdLTE(v string) predicate.CloudEvents

EventIdLTE applies the LTE predicate on the "eventId" field.

func EventIdNEQ

func EventIdNEQ(v string) predicate.CloudEvents

EventIdNEQ applies the NEQ predicate on the "eventId" field.

func EventIdNotIn

func EventIdNotIn(vs ...string) predicate.CloudEvents

EventIdNotIn applies the NotIn predicate on the "eventId" field.

func Fire

Fire applies equality check predicate on the "fire" field. It's identical to FireEQ.

func FireEQ

func FireEQ(v time.Time) predicate.CloudEvents

FireEQ applies the EQ predicate on the "fire" field.

func FireGT

func FireGT(v time.Time) predicate.CloudEvents

FireGT applies the GT predicate on the "fire" field.

func FireGTE

func FireGTE(v time.Time) predicate.CloudEvents

FireGTE applies the GTE predicate on the "fire" field.

func FireIn

func FireIn(vs ...time.Time) predicate.CloudEvents

FireIn applies the In predicate on the "fire" field.

func FireLT

func FireLT(v time.Time) predicate.CloudEvents

FireLT applies the LT predicate on the "fire" field.

func FireLTE

func FireLTE(v time.Time) predicate.CloudEvents

FireLTE applies the LTE predicate on the "fire" field.

func FireNEQ

func FireNEQ(v time.Time) predicate.CloudEvents

FireNEQ applies the NEQ predicate on the "fire" field.

func FireNotIn

func FireNotIn(vs ...time.Time) predicate.CloudEvents

FireNotIn applies the NotIn predicate on the "fire" field.

func HasNamespace

func HasNamespace() predicate.CloudEvents

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

func HasNamespaceWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.CloudEvents

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.CloudEvents

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.CloudEvents

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.CloudEvents

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.CloudEvents

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.CloudEvents

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.CloudEvents) predicate.CloudEvents

Or groups predicates with the OR operator between them.

func Processed

func Processed(v bool) predicate.CloudEvents

Processed applies equality check predicate on the "processed" field. It's identical to ProcessedEQ.

func ProcessedEQ

func ProcessedEQ(v bool) predicate.CloudEvents

ProcessedEQ applies the EQ predicate on the "processed" field.

func ProcessedNEQ

func ProcessedNEQ(v bool) predicate.CloudEvents

ProcessedNEQ applies the NEQ predicate on the "processed" 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