failure

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the failure type in the database.
	Label = "failure"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// FieldIdx holds the string denoting the idx field in the database.
	FieldIdx = "idx"
	// Table holds the table name of the failure in the database.
	Table = "failures"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldError,
	FieldIdx,
}

Columns holds all SQL columns for failure fields.

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

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

Functions

func And

func And(predicates ...predicate.Failure) predicate.Failure

And groups predicates with the AND operator between them.

func Error

func Error(v string) predicate.Failure

Error applies equality check predicate on the "Error" field. It's identical to ErrorEQ.

func ErrorContains

func ErrorContains(v string) predicate.Failure

ErrorContains applies the Contains predicate on the "Error" field.

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Failure

ErrorContainsFold applies the ContainsFold predicate on the "Error" field.

func ErrorEQ

func ErrorEQ(v string) predicate.Failure

ErrorEQ applies the EQ predicate on the "Error" field.

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Failure

ErrorEqualFold applies the EqualFold predicate on the "Error" field.

func ErrorGT

func ErrorGT(v string) predicate.Failure

ErrorGT applies the GT predicate on the "Error" field.

func ErrorGTE

func ErrorGTE(v string) predicate.Failure

ErrorGTE applies the GTE predicate on the "Error" field.

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Failure

ErrorHasPrefix applies the HasPrefix predicate on the "Error" field.

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Failure

ErrorHasSuffix applies the HasSuffix predicate on the "Error" field.

func ErrorIn

func ErrorIn(vs ...string) predicate.Failure

ErrorIn applies the In predicate on the "Error" field.

func ErrorLT

func ErrorLT(v string) predicate.Failure

ErrorLT applies the LT predicate on the "Error" field.

func ErrorLTE

func ErrorLTE(v string) predicate.Failure

ErrorLTE applies the LTE predicate on the "Error" field.

func ErrorNEQ

func ErrorNEQ(v string) predicate.Failure

ErrorNEQ applies the NEQ predicate on the "Error" field.

func ErrorNotIn

func ErrorNotIn(vs ...string) predicate.Failure

ErrorNotIn applies the NotIn predicate on the "Error" field.

func ID

func ID(id int) predicate.Failure

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Failure

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Failure

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Failure

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Failure

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Failure

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Failure

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Failure

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Failure

IDNotIn applies the NotIn predicate on the ID field.

func Idx

func Idx(v int) predicate.Failure

Idx applies equality check predicate on the "Idx" field. It's identical to IdxEQ.

func IdxEQ

func IdxEQ(v int) predicate.Failure

IdxEQ applies the EQ predicate on the "Idx" field.

func IdxGT

func IdxGT(v int) predicate.Failure

IdxGT applies the GT predicate on the "Idx" field.

func IdxGTE

func IdxGTE(v int) predicate.Failure

IdxGTE applies the GTE predicate on the "Idx" field.

func IdxIn

func IdxIn(vs ...int) predicate.Failure

IdxIn applies the In predicate on the "Idx" field.

func IdxLT

func IdxLT(v int) predicate.Failure

IdxLT applies the LT predicate on the "Idx" field.

func IdxLTE

func IdxLTE(v int) predicate.Failure

IdxLTE applies the LTE predicate on the "Idx" field.

func IdxNEQ

func IdxNEQ(v int) predicate.Failure

IdxNEQ applies the NEQ predicate on the "Idx" field.

func IdxNotIn

func IdxNotIn(vs ...int) predicate.Failure

IdxNotIn applies the NotIn predicate on the "Idx" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Failure) predicate.Failure

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption added in v0.14.0

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Failure queries.

func ByError added in v0.14.0

func ByError(opts ...sql.OrderTermOption) OrderOption

ByError orders the results by the Error field.

func ByID added in v0.14.0

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIdx added in v0.14.0

func ByIdx(opts ...sql.OrderTermOption) OrderOption

ByIdx orders the results by the Idx field.

Jump to

Keyboard shortcuts

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