event

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 7 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"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// EdgeRelease holds the string denoting the release edge name in mutations.
	EdgeRelease = "release"
	// EdgeRepo holds the string denoting the repo edge name in mutations.
	EdgeRepo = "repo"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// Table holds the table name of the event in the database.
	Table = "event"
	// ReleaseTable is the table that holds the release relation/edge.
	ReleaseTable = "event"
	// ReleaseInverseTable is the table name for the Release entity.
	// It exists in this package in order to avoid circular dependency with the "release" package.
	ReleaseInverseTable = "release"
	// ReleaseColumn is the table column denoting the release relation/edge.
	ReleaseColumn = "event_release"
	// RepoTable is the table that holds the repo relation/edge.
	RepoTable = "event"
	// RepoInverseTable is the table name for the Repo entity.
	// It exists in this package in order to avoid circular dependency with the "repo" package.
	RepoInverseTable = "repo"
	// RepoColumn is the table column denoting the repo relation/edge.
	RepoColumn = "event_repo"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "event"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "project"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "event_project"
)
View Source
const DefaultStatus = StatusOk

StatusOk is the default value of the Status enum.

Variables

View Source
var (
	// DefaultMessage holds the default value on creation for the "message" field.
	DefaultMessage string
	// DefaultTime holds the default value on creation for the "time" field.
	DefaultTime func() time.Time
)

Columns holds all SQL columns for event fields.

View Source
var ForeignKeys = []string{
	"event_release",
	"event_repo",
	"event_project",
}

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

Functions

func And

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

And groups predicates with the AND operator between them.

func HasProject

func HasProject() predicate.Event

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Event

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

func HasRelease

func HasRelease() predicate.Event

HasRelease applies the HasEdge predicate on the "release" edge.

func HasReleaseWith

func HasReleaseWith(preds ...predicate.Release) predicate.Event

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

func HasRepo

func HasRepo() predicate.Event

HasRepo applies the HasEdge predicate on the "repo" edge.

func HasRepoWith

func HasRepoWith(preds ...predicate.Repo) predicate.Event

HasRepoWith applies the HasEdge predicate on the "repo" 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 StatusEQ

func StatusEQ(v Status) predicate.Event

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Event

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Event

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Event

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func Time

func Time(v time.Time) predicate.Event

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v time.Time) predicate.Event

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v time.Time) predicate.Event

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v time.Time) predicate.Event

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

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

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v time.Time) predicate.Event

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v time.Time) predicate.Event

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v time.Time) predicate.Event

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

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

TimeNotIn applies the NotIn predicate on the "time" 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 Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusOk    Status = "ok"
	StatusError Status = "error"
)

Status values.

func (Status) MarshalGQL

func (s Status) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalGQL

func (s *Status) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Type

type Type string

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

const (
	TypeEvaluateRelease Type = "evaluate_release"
	TypeMonitor         Type = "monitor"
)

Type values.

func (Type) MarshalGQL

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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