event

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 5 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"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldDeploymentStatusID holds the string denoting the deployment_status_id field in the database.
	FieldDeploymentStatusID = "deployment_status_id"
	// FieldReviewID holds the string denoting the review_id field in the database.
	FieldReviewID = "review_id"
	// FieldDeletedID holds the string denoting the deleted_id field in the database.
	FieldDeletedID = "deleted_id"
	// EdgeDeploymentStatus holds the string denoting the deployment_status edge name in mutations.
	EdgeDeploymentStatus = "deployment_status"
	// EdgeReview holds the string denoting the review edge name in mutations.
	EdgeReview = "review"
	// EdgeNotificationRecord holds the string denoting the notification_record edge name in mutations.
	EdgeNotificationRecord = "notification_record"
	// Table holds the table name of the event in the database.
	Table = "events"
	// DeploymentStatusTable is the table that holds the deployment_status relation/edge.
	DeploymentStatusTable = "events"
	// DeploymentStatusInverseTable is the table name for the DeploymentStatus entity.
	// It exists in this package in order to avoid circular dependency with the "deploymentstatus" package.
	DeploymentStatusInverseTable = "deployment_status"
	// DeploymentStatusColumn is the table column denoting the deployment_status relation/edge.
	DeploymentStatusColumn = "deployment_status_id"
	// ReviewTable is the table that holds the review relation/edge.
	ReviewTable = "events"
	// ReviewInverseTable is the table name for the Review entity.
	// It exists in this package in order to avoid circular dependency with the "review" package.
	ReviewInverseTable = "reviews"
	// ReviewColumn is the table column denoting the review relation/edge.
	ReviewColumn = "review_id"
	// NotificationRecordTable is the table that holds the notification_record relation/edge.
	NotificationRecordTable = "notification_records"
	// NotificationRecordInverseTable is the table name for the NotificationRecord entity.
	// It exists in this package in order to avoid circular dependency with the "notificationrecord" package.
	NotificationRecordInverseTable = "notification_records"
	// NotificationRecordColumn is the table column denoting the notification_record relation/edge.
	NotificationRecordColumn = "event_id"
)

Variables

Columns holds all SQL columns for event fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

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 DeletedID

func DeletedID(v int) predicate.Event

DeletedID applies equality check predicate on the "deleted_id" field. It's identical to DeletedIDEQ.

func DeletedIDEQ

func DeletedIDEQ(v int) predicate.Event

DeletedIDEQ applies the EQ predicate on the "deleted_id" field.

func DeletedIDGT

func DeletedIDGT(v int) predicate.Event

DeletedIDGT applies the GT predicate on the "deleted_id" field.

func DeletedIDGTE

func DeletedIDGTE(v int) predicate.Event

DeletedIDGTE applies the GTE predicate on the "deleted_id" field.

func DeletedIDIn

func DeletedIDIn(vs ...int) predicate.Event

DeletedIDIn applies the In predicate on the "deleted_id" field.

func DeletedIDIsNil

func DeletedIDIsNil() predicate.Event

DeletedIDIsNil applies the IsNil predicate on the "deleted_id" field.

func DeletedIDLT

func DeletedIDLT(v int) predicate.Event

DeletedIDLT applies the LT predicate on the "deleted_id" field.

func DeletedIDLTE

func DeletedIDLTE(v int) predicate.Event

DeletedIDLTE applies the LTE predicate on the "deleted_id" field.

func DeletedIDNEQ

func DeletedIDNEQ(v int) predicate.Event

DeletedIDNEQ applies the NEQ predicate on the "deleted_id" field.

func DeletedIDNotIn

func DeletedIDNotIn(vs ...int) predicate.Event

DeletedIDNotIn applies the NotIn predicate on the "deleted_id" field.

func DeletedIDNotNil

func DeletedIDNotNil() predicate.Event

DeletedIDNotNil applies the NotNil predicate on the "deleted_id" field.

func DeploymentStatusID

func DeploymentStatusID(v int) predicate.Event

DeploymentStatusID applies equality check predicate on the "deployment_status_id" field. It's identical to DeploymentStatusIDEQ.

func DeploymentStatusIDEQ

func DeploymentStatusIDEQ(v int) predicate.Event

DeploymentStatusIDEQ applies the EQ predicate on the "deployment_status_id" field.

func DeploymentStatusIDIn

func DeploymentStatusIDIn(vs ...int) predicate.Event

DeploymentStatusIDIn applies the In predicate on the "deployment_status_id" field.

func DeploymentStatusIDIsNil

func DeploymentStatusIDIsNil() predicate.Event

DeploymentStatusIDIsNil applies the IsNil predicate on the "deployment_status_id" field.

func DeploymentStatusIDNEQ

func DeploymentStatusIDNEQ(v int) predicate.Event

DeploymentStatusIDNEQ applies the NEQ predicate on the "deployment_status_id" field.

func DeploymentStatusIDNotIn

func DeploymentStatusIDNotIn(vs ...int) predicate.Event

DeploymentStatusIDNotIn applies the NotIn predicate on the "deployment_status_id" field.

func DeploymentStatusIDNotNil

func DeploymentStatusIDNotNil() predicate.Event

DeploymentStatusIDNotNil applies the NotNil predicate on the "deployment_status_id" field.

func HasDeploymentStatus

func HasDeploymentStatus() predicate.Event

HasDeploymentStatus applies the HasEdge predicate on the "deployment_status" edge.

func HasDeploymentStatusWith

func HasDeploymentStatusWith(preds ...predicate.DeploymentStatus) predicate.Event

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

func HasNotificationRecord

func HasNotificationRecord() predicate.Event

HasNotificationRecord applies the HasEdge predicate on the "notification_record" edge.

func HasNotificationRecordWith

func HasNotificationRecordWith(preds ...predicate.NotificationRecord) predicate.Event

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

func HasReview

func HasReview() predicate.Event

HasReview applies the HasEdge predicate on the "review" edge.

func HasReviewWith

func HasReviewWith(preds ...predicate.Review) predicate.Event

HasReviewWith applies the HasEdge predicate on the "review" 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 KindEQ

func KindEQ(v Kind) predicate.Event

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.Event

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.Event

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.Event

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.

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 ReviewID

func ReviewID(v int) predicate.Event

ReviewID applies equality check predicate on the "review_id" field. It's identical to ReviewIDEQ.

func ReviewIDEQ

func ReviewIDEQ(v int) predicate.Event

ReviewIDEQ applies the EQ predicate on the "review_id" field.

func ReviewIDIn

func ReviewIDIn(vs ...int) predicate.Event

ReviewIDIn applies the In predicate on the "review_id" field.

func ReviewIDIsNil

func ReviewIDIsNil() predicate.Event

ReviewIDIsNil applies the IsNil predicate on the "review_id" field.

func ReviewIDNEQ

func ReviewIDNEQ(v int) predicate.Event

ReviewIDNEQ applies the NEQ predicate on the "review_id" field.

func ReviewIDNotIn

func ReviewIDNotIn(vs ...int) predicate.Event

ReviewIDNotIn applies the NotIn predicate on the "review_id" field.

func ReviewIDNotNil

func ReviewIDNotNil() predicate.Event

ReviewIDNotNil applies the NotNil predicate on the "review_id" field.

func TypeEQ

func TypeEQ(v Type) predicate.Event

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Event

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Event

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Event

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindDeploymentStatus Kind = "deployment_status"
	KindReview           Kind = "review"
)

Kind values.

func (Kind) String

func (k Kind) String() string

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeCreated Type = "created"
	TypeUpdated Type = "updated"
	TypeDeleted Type = "deleted"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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