cloudevents

package
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: 3 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 = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// 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"
	// Table holds the table name of the cloudevents in the database.
	Table = "cloud_events"
)

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator 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
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for cloudevents fields.

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

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.CloudEvents

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.CloudEvents

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.CloudEvents

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.CloudEvents

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.CloudEvents

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.CloudEvents

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.CloudEvents

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.CloudEvents

IDNotIn applies the NotIn predicate on the ID field.

func Namespace

func Namespace(v string) predicate.CloudEvents

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.CloudEvents

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.CloudEvents

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.CloudEvents

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.CloudEvents

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.CloudEvents

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.CloudEvents

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.CloudEvents

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.CloudEvents

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

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

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.CloudEvents

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.CloudEvents

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.CloudEvents

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

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

NamespaceNotIn applies the NotIn predicate on the "namespace" 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