incident

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the incident type in the database.
	Label = "incident"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// FieldIncidentID holds the string denoting the incidentid field in the database.
	FieldIncidentID = "incident_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// FieldIntLevel holds the string denoting the intlevel field in the database.
	FieldIntLevel = "level"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldRegion holds the string denoting the region field in the database.
	FieldRegion = "region"
	// FieldProbeOS holds the string denoting the probeos field in the database.
	FieldProbeOS = "probe_os"
	// FieldProbeHost holds the string denoting the probehost field in the database.
	FieldProbeHost = "probe_host"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// FieldStart holds the string denoting the start field in the database.
	FieldStart = "start"
	// FieldEnd holds the string denoting the end field in the database.
	FieldEnd = "end"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// EdgeCounters holds the string denoting the counters edge name in mutations.
	EdgeCounters = "Counters"
	// EdgeStati holds the string denoting the stati edge name in mutations.
	EdgeStati = "Stati"
	// EdgeFailures holds the string denoting the failures edge name in mutations.
	EdgeFailures = "Failures"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "Files"
	// Table holds the table name of the incident in the database.
	Table = "incidents"
	// CountersTable is the table that holds the Counters relation/edge.
	CountersTable = "counters"
	// CountersInverseTable is the table name for the Counter entity.
	// It exists in this package in order to avoid circular dependency with the "counter" package.
	CountersInverseTable = "counters"
	// CountersColumn is the table column denoting the Counters relation/edge.
	CountersColumn = "incident_counters"
	// StatiTable is the table that holds the Stati relation/edge.
	StatiTable = "status"
	// StatiInverseTable is the table name for the Status entity.
	// It exists in this package in order to avoid circular dependency with the "status" package.
	StatiInverseTable = "status"
	// StatiColumn is the table column denoting the Stati relation/edge.
	StatiColumn = "incident_stati"
	// FailuresTable is the table that holds the Failures relation/edge.
	FailuresTable = "failures"
	// FailuresInverseTable is the table name for the Failure entity.
	// It exists in this package in order to avoid circular dependency with the "failure" package.
	FailuresInverseTable = "failures"
	// FailuresColumn is the table column denoting the Failures relation/edge.
	FailuresColumn = "incident_failures"
	// FilesTable is the table that holds the Files relation/edge.
	FilesTable = "files"
	// FilesInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FilesInverseTable = "files"
	// FilesColumn is the table column denoting the Files relation/edge.
	FilesColumn = "incident_files"
)

Variables

Columns holds all SQL columns for incident fields.

Functions

func And

func And(predicates ...predicate.Incident) predicate.Incident

And groups predicates with the AND operator between them.

func End

func End(v time.Time) predicate.Incident

End applies equality check predicate on the "End" field. It's identical to EndEQ.

func EndEQ

func EndEQ(v time.Time) predicate.Incident

EndEQ applies the EQ predicate on the "End" field.

func EndGT

func EndGT(v time.Time) predicate.Incident

EndGT applies the GT predicate on the "End" field.

func EndGTE

func EndGTE(v time.Time) predicate.Incident

EndGTE applies the GTE predicate on the "End" field.

func EndIn

func EndIn(vs ...time.Time) predicate.Incident

EndIn applies the In predicate on the "End" field.

func EndIsNil added in v0.10.0

func EndIsNil() predicate.Incident

EndIsNil applies the IsNil predicate on the "End" field.

func EndLT

func EndLT(v time.Time) predicate.Incident

EndLT applies the LT predicate on the "End" field.

func EndLTE

func EndLTE(v time.Time) predicate.Incident

EndLTE applies the LTE predicate on the "End" field.

func EndNEQ

func EndNEQ(v time.Time) predicate.Incident

EndNEQ applies the NEQ predicate on the "End" field.

func EndNotIn

func EndNotIn(vs ...time.Time) predicate.Incident

EndNotIn applies the NotIn predicate on the "End" field.

func EndNotNil added in v0.10.0

func EndNotNil() predicate.Incident

EndNotNil applies the NotNil predicate on the "End" field.

func Error

func Error(v string) predicate.Incident

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

func ErrorContains

func ErrorContains(v string) predicate.Incident

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

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Incident

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

func ErrorEQ

func ErrorEQ(v string) predicate.Incident

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

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Incident

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

func ErrorGT

func ErrorGT(v string) predicate.Incident

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

func ErrorGTE

func ErrorGTE(v string) predicate.Incident

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

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Incident

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

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Incident

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

func ErrorIn

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

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

func ErrorIsNil

func ErrorIsNil() predicate.Incident

ErrorIsNil applies the IsNil predicate on the "Error" field.

func ErrorLT

func ErrorLT(v string) predicate.Incident

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

func ErrorLTE

func ErrorLTE(v string) predicate.Incident

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

func ErrorNEQ

func ErrorNEQ(v string) predicate.Incident

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

func ErrorNotIn

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

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

func ErrorNotNil

func ErrorNotNil() predicate.Incident

ErrorNotNil applies the NotNil predicate on the "Error" field.

func HasCounters

func HasCounters() predicate.Incident

HasCounters applies the HasEdge predicate on the "Counters" edge.

func HasCountersWith

func HasCountersWith(preds ...predicate.Counter) predicate.Incident

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

func HasFailures

func HasFailures() predicate.Incident

HasFailures applies the HasEdge predicate on the "Failures" edge.

func HasFailuresWith

func HasFailuresWith(preds ...predicate.Failure) predicate.Incident

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

func HasFiles

func HasFiles() predicate.Incident

HasFiles applies the HasEdge predicate on the "Files" edge.

func HasFilesWith

func HasFilesWith(preds ...predicate.File) predicate.Incident

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

func HasStati

func HasStati() predicate.Incident

HasStati applies the HasEdge predicate on the "Stati" edge.

func HasStatiWith

func HasStatiWith(preds ...predicate.Status) predicate.Incident

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

func ID

func ID(id int) predicate.Incident

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Incident

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Incident

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Incident

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Incident

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Incident

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Incident

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IncidentID

func IncidentID(v uuid.UUID) predicate.Incident

IncidentID applies equality check predicate on the "IncidentID" field. It's identical to IncidentIDEQ.

func IncidentIDEQ

func IncidentIDEQ(v uuid.UUID) predicate.Incident

IncidentIDEQ applies the EQ predicate on the "IncidentID" field.

func IncidentIDGT

func IncidentIDGT(v uuid.UUID) predicate.Incident

IncidentIDGT applies the GT predicate on the "IncidentID" field.

func IncidentIDGTE

func IncidentIDGTE(v uuid.UUID) predicate.Incident

IncidentIDGTE applies the GTE predicate on the "IncidentID" field.

func IncidentIDIn

func IncidentIDIn(vs ...uuid.UUID) predicate.Incident

IncidentIDIn applies the In predicate on the "IncidentID" field.

func IncidentIDIsNil

func IncidentIDIsNil() predicate.Incident

IncidentIDIsNil applies the IsNil predicate on the "IncidentID" field.

func IncidentIDLT

func IncidentIDLT(v uuid.UUID) predicate.Incident

IncidentIDLT applies the LT predicate on the "IncidentID" field.

func IncidentIDLTE

func IncidentIDLTE(v uuid.UUID) predicate.Incident

IncidentIDLTE applies the LTE predicate on the "IncidentID" field.

func IncidentIDNEQ

func IncidentIDNEQ(v uuid.UUID) predicate.Incident

IncidentIDNEQ applies the NEQ predicate on the "IncidentID" field.

func IncidentIDNotIn

func IncidentIDNotIn(vs ...uuid.UUID) predicate.Incident

IncidentIDNotIn applies the NotIn predicate on the "IncidentID" field.

func IncidentIDNotNil

func IncidentIDNotNil() predicate.Incident

IncidentIDNotNil applies the NotNil predicate on the "IncidentID" field.

func IntLevel

func IntLevel(v int) predicate.Incident

IntLevel applies equality check predicate on the "IntLevel" field. It's identical to IntLevelEQ.

func IntLevelEQ

func IntLevelEQ(v int) predicate.Incident

IntLevelEQ applies the EQ predicate on the "IntLevel" field.

func IntLevelGT

func IntLevelGT(v int) predicate.Incident

IntLevelGT applies the GT predicate on the "IntLevel" field.

func IntLevelGTE

func IntLevelGTE(v int) predicate.Incident

IntLevelGTE applies the GTE predicate on the "IntLevel" field.

func IntLevelIn

func IntLevelIn(vs ...int) predicate.Incident

IntLevelIn applies the In predicate on the "IntLevel" field.

func IntLevelLT

func IntLevelLT(v int) predicate.Incident

IntLevelLT applies the LT predicate on the "IntLevel" field.

func IntLevelLTE

func IntLevelLTE(v int) predicate.Incident

IntLevelLTE applies the LTE predicate on the "IntLevel" field.

func IntLevelNEQ

func IntLevelNEQ(v int) predicate.Incident

IntLevelNEQ applies the NEQ predicate on the "IntLevel" field.

func IntLevelNotIn

func IntLevelNotIn(vs ...int) predicate.Incident

IntLevelNotIn applies the NotIn predicate on the "IntLevel" field.

func Name

func Name(v string) predicate.Incident

Name applies equality check predicate on the "Name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Incident

NameContains applies the Contains predicate on the "Name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Incident

NameContainsFold applies the ContainsFold predicate on the "Name" field.

func NameEQ

func NameEQ(v string) predicate.Incident

NameEQ applies the EQ predicate on the "Name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Incident

NameEqualFold applies the EqualFold predicate on the "Name" field.

func NameGT

func NameGT(v string) predicate.Incident

NameGT applies the GT predicate on the "Name" field.

func NameGTE

func NameGTE(v string) predicate.Incident

NameGTE applies the GTE predicate on the "Name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Incident

NameHasPrefix applies the HasPrefix predicate on the "Name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Incident

NameHasSuffix applies the HasSuffix predicate on the "Name" field.

func NameIn

func NameIn(vs ...string) predicate.Incident

NameIn applies the In predicate on the "Name" field.

func NameLT

func NameLT(v string) predicate.Incident

NameLT applies the LT predicate on the "Name" field.

func NameLTE

func NameLTE(v string) predicate.Incident

NameLTE applies the LTE predicate on the "Name" field.

func NameNEQ

func NameNEQ(v string) predicate.Incident

NameNEQ applies the NEQ predicate on the "Name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Incident

NameNotIn applies the NotIn predicate on the "Name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Incident) predicate.Incident

Or groups predicates with the OR operator between them.

func ProbeHost

func ProbeHost(v string) predicate.Incident

ProbeHost applies equality check predicate on the "ProbeHost" field. It's identical to ProbeHostEQ.

func ProbeHostContains

func ProbeHostContains(v string) predicate.Incident

ProbeHostContains applies the Contains predicate on the "ProbeHost" field.

func ProbeHostContainsFold

func ProbeHostContainsFold(v string) predicate.Incident

ProbeHostContainsFold applies the ContainsFold predicate on the "ProbeHost" field.

func ProbeHostEQ

func ProbeHostEQ(v string) predicate.Incident

ProbeHostEQ applies the EQ predicate on the "ProbeHost" field.

func ProbeHostEqualFold

func ProbeHostEqualFold(v string) predicate.Incident

ProbeHostEqualFold applies the EqualFold predicate on the "ProbeHost" field.

func ProbeHostGT

func ProbeHostGT(v string) predicate.Incident

ProbeHostGT applies the GT predicate on the "ProbeHost" field.

func ProbeHostGTE

func ProbeHostGTE(v string) predicate.Incident

ProbeHostGTE applies the GTE predicate on the "ProbeHost" field.

func ProbeHostHasPrefix

func ProbeHostHasPrefix(v string) predicate.Incident

ProbeHostHasPrefix applies the HasPrefix predicate on the "ProbeHost" field.

func ProbeHostHasSuffix

func ProbeHostHasSuffix(v string) predicate.Incident

ProbeHostHasSuffix applies the HasSuffix predicate on the "ProbeHost" field.

func ProbeHostIn

func ProbeHostIn(vs ...string) predicate.Incident

ProbeHostIn applies the In predicate on the "ProbeHost" field.

func ProbeHostLT

func ProbeHostLT(v string) predicate.Incident

ProbeHostLT applies the LT predicate on the "ProbeHost" field.

func ProbeHostLTE

func ProbeHostLTE(v string) predicate.Incident

ProbeHostLTE applies the LTE predicate on the "ProbeHost" field.

func ProbeHostNEQ

func ProbeHostNEQ(v string) predicate.Incident

ProbeHostNEQ applies the NEQ predicate on the "ProbeHost" field.

func ProbeHostNotIn

func ProbeHostNotIn(vs ...string) predicate.Incident

ProbeHostNotIn applies the NotIn predicate on the "ProbeHost" field.

func ProbeOS

func ProbeOS(v string) predicate.Incident

ProbeOS applies equality check predicate on the "ProbeOS" field. It's identical to ProbeOSEQ.

func ProbeOSContains

func ProbeOSContains(v string) predicate.Incident

ProbeOSContains applies the Contains predicate on the "ProbeOS" field.

func ProbeOSContainsFold

func ProbeOSContainsFold(v string) predicate.Incident

ProbeOSContainsFold applies the ContainsFold predicate on the "ProbeOS" field.

func ProbeOSEQ

func ProbeOSEQ(v string) predicate.Incident

ProbeOSEQ applies the EQ predicate on the "ProbeOS" field.

func ProbeOSEqualFold

func ProbeOSEqualFold(v string) predicate.Incident

ProbeOSEqualFold applies the EqualFold predicate on the "ProbeOS" field.

func ProbeOSGT

func ProbeOSGT(v string) predicate.Incident

ProbeOSGT applies the GT predicate on the "ProbeOS" field.

func ProbeOSGTE

func ProbeOSGTE(v string) predicate.Incident

ProbeOSGTE applies the GTE predicate on the "ProbeOS" field.

func ProbeOSHasPrefix

func ProbeOSHasPrefix(v string) predicate.Incident

ProbeOSHasPrefix applies the HasPrefix predicate on the "ProbeOS" field.

func ProbeOSHasSuffix

func ProbeOSHasSuffix(v string) predicate.Incident

ProbeOSHasSuffix applies the HasSuffix predicate on the "ProbeOS" field.

func ProbeOSIn

func ProbeOSIn(vs ...string) predicate.Incident

ProbeOSIn applies the In predicate on the "ProbeOS" field.

func ProbeOSLT

func ProbeOSLT(v string) predicate.Incident

ProbeOSLT applies the LT predicate on the "ProbeOS" field.

func ProbeOSLTE

func ProbeOSLTE(v string) predicate.Incident

ProbeOSLTE applies the LTE predicate on the "ProbeOS" field.

func ProbeOSNEQ

func ProbeOSNEQ(v string) predicate.Incident

ProbeOSNEQ applies the NEQ predicate on the "ProbeOS" field.

func ProbeOSNotIn

func ProbeOSNotIn(vs ...string) predicate.Incident

ProbeOSNotIn applies the NotIn predicate on the "ProbeOS" field.

func Region

func Region(v string) predicate.Incident

Region applies equality check predicate on the "Region" field. It's identical to RegionEQ.

func RegionContains

func RegionContains(v string) predicate.Incident

RegionContains applies the Contains predicate on the "Region" field.

func RegionContainsFold

func RegionContainsFold(v string) predicate.Incident

RegionContainsFold applies the ContainsFold predicate on the "Region" field.

func RegionEQ

func RegionEQ(v string) predicate.Incident

RegionEQ applies the EQ predicate on the "Region" field.

func RegionEqualFold

func RegionEqualFold(v string) predicate.Incident

RegionEqualFold applies the EqualFold predicate on the "Region" field.

func RegionGT

func RegionGT(v string) predicate.Incident

RegionGT applies the GT predicate on the "Region" field.

func RegionGTE

func RegionGTE(v string) predicate.Incident

RegionGTE applies the GTE predicate on the "Region" field.

func RegionHasPrefix

func RegionHasPrefix(v string) predicate.Incident

RegionHasPrefix applies the HasPrefix predicate on the "Region" field.

func RegionHasSuffix

func RegionHasSuffix(v string) predicate.Incident

RegionHasSuffix applies the HasSuffix predicate on the "Region" field.

func RegionIn

func RegionIn(vs ...string) predicate.Incident

RegionIn applies the In predicate on the "Region" field.

func RegionLT

func RegionLT(v string) predicate.Incident

RegionLT applies the LT predicate on the "Region" field.

func RegionLTE

func RegionLTE(v string) predicate.Incident

RegionLTE applies the LTE predicate on the "Region" field.

func RegionNEQ

func RegionNEQ(v string) predicate.Incident

RegionNEQ applies the NEQ predicate on the "Region" field.

func RegionNotIn

func RegionNotIn(vs ...string) predicate.Incident

RegionNotIn applies the NotIn predicate on the "Region" field.

func Start

func Start(v time.Time) predicate.Incident

Start applies equality check predicate on the "Start" field. It's identical to StartEQ.

func StartEQ

func StartEQ(v time.Time) predicate.Incident

StartEQ applies the EQ predicate on the "Start" field.

func StartGT

func StartGT(v time.Time) predicate.Incident

StartGT applies the GT predicate on the "Start" field.

func StartGTE

func StartGTE(v time.Time) predicate.Incident

StartGTE applies the GTE predicate on the "Start" field.

func StartIn

func StartIn(vs ...time.Time) predicate.Incident

StartIn applies the In predicate on the "Start" field.

func StartLT

func StartLT(v time.Time) predicate.Incident

StartLT applies the LT predicate on the "Start" field.

func StartLTE

func StartLTE(v time.Time) predicate.Incident

StartLTE applies the LTE predicate on the "Start" field.

func StartNEQ

func StartNEQ(v time.Time) predicate.Incident

StartNEQ applies the NEQ predicate on the "Start" field.

func StartNotIn

func StartNotIn(vs ...time.Time) predicate.Incident

StartNotIn applies the NotIn predicate on the "Start" field.

func State

func State(v []byte) predicate.Incident

State applies equality check predicate on the "State" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v []byte) predicate.Incident

StateEQ applies the EQ predicate on the "State" field.

func StateGT

func StateGT(v []byte) predicate.Incident

StateGT applies the GT predicate on the "State" field.

func StateGTE

func StateGTE(v []byte) predicate.Incident

StateGTE applies the GTE predicate on the "State" field.

func StateIn

func StateIn(vs ...[]byte) predicate.Incident

StateIn applies the In predicate on the "State" field.

func StateLT

func StateLT(v []byte) predicate.Incident

StateLT applies the LT predicate on the "State" field.

func StateLTE

func StateLTE(v []byte) predicate.Incident

StateLTE applies the LTE predicate on the "State" field.

func StateNEQ

func StateNEQ(v []byte) predicate.Incident

StateNEQ applies the NEQ predicate on the "State" field.

func StateNotIn

func StateNotIn(vs ...[]byte) predicate.Incident

StateNotIn applies the NotIn predicate on the "State" field.

func Time

func Time(v time.Time) predicate.Incident

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

func TimeEQ

func TimeEQ(v time.Time) predicate.Incident

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

func TimeGT

func TimeGT(v time.Time) predicate.Incident

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

func TimeGTE

func TimeGTE(v time.Time) predicate.Incident

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

func TimeIn

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

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

func TimeLT

func TimeLT(v time.Time) predicate.Incident

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

func TimeLTE

func TimeLTE(v time.Time) predicate.Incident

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

func TimeNEQ

func TimeNEQ(v time.Time) predicate.Incident

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

func TimeNotIn

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

TimeNotIn applies the NotIn predicate on the "Time" field.

func UUID

func UUID(v uuid.UUID) predicate.Incident

UUID applies equality check predicate on the "UUID" field. It's identical to UUIDEQ.

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.Incident

UUIDEQ applies the EQ predicate on the "UUID" field.

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.Incident

UUIDGT applies the GT predicate on the "UUID" field.

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.Incident

UUIDGTE applies the GTE predicate on the "UUID" field.

func UUIDIn

func UUIDIn(vs ...uuid.UUID) predicate.Incident

UUIDIn applies the In predicate on the "UUID" field.

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.Incident

UUIDLT applies the LT predicate on the "UUID" field.

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.Incident

UUIDLTE applies the LTE predicate on the "UUID" field.

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.Incident

UUIDNEQ applies the NEQ predicate on the "UUID" field.

func UUIDNotIn

func UUIDNotIn(vs ...uuid.UUID) predicate.Incident

UUIDNotIn applies the NotIn predicate on the "UUID" field.

func Username

func Username(v string) predicate.Incident

Username applies equality check predicate on the "Username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.Incident

UsernameContains applies the Contains predicate on the "Username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Incident

UsernameContainsFold applies the ContainsFold predicate on the "Username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.Incident

UsernameEQ applies the EQ predicate on the "Username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Incident

UsernameEqualFold applies the EqualFold predicate on the "Username" field.

func UsernameGT

func UsernameGT(v string) predicate.Incident

UsernameGT applies the GT predicate on the "Username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.Incident

UsernameGTE applies the GTE predicate on the "Username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Incident

UsernameHasPrefix applies the HasPrefix predicate on the "Username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Incident

UsernameHasSuffix applies the HasSuffix predicate on the "Username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.Incident

UsernameIn applies the In predicate on the "Username" field.

func UsernameLT

func UsernameLT(v string) predicate.Incident

UsernameLT applies the LT predicate on the "Username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.Incident

UsernameLTE applies the LTE predicate on the "Username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.Incident

UsernameNEQ applies the NEQ predicate on the "Username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.Incident

UsernameNotIn applies the NotIn predicate on the "Username" field.

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 Incident queries.

func ByCounters added in v0.14.0

func ByCounters(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCounters orders the results by Counters terms.

func ByCountersCount added in v0.14.0

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

ByCountersCount orders the results by Counters count.

func ByEnd added in v0.14.0

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

ByEnd orders the results by the End field.

func ByError added in v0.14.0

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

ByError orders the results by the Error field.

func ByFailures added in v0.14.0

func ByFailures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFailures orders the results by Failures terms.

func ByFailuresCount added in v0.14.0

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

ByFailuresCount orders the results by Failures count.

func ByFiles added in v0.14.0

func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFiles orders the results by Files terms.

func ByFilesCount added in v0.14.0

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

ByFilesCount orders the results by Files count.

func ByID added in v0.14.0

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

ByID orders the results by the id field.

func ByIncidentID added in v0.14.0

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

ByIncidentID orders the results by the IncidentID field.

func ByIntLevel added in v0.14.0

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

ByIntLevel orders the results by the IntLevel field.

func ByName added in v0.14.0

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

ByName orders the results by the Name field.

func ByProbeHost added in v0.14.0

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

ByProbeHost orders the results by the ProbeHost field.

func ByProbeOS added in v0.14.0

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

ByProbeOS orders the results by the ProbeOS field.

func ByRegion added in v0.14.0

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

ByRegion orders the results by the Region field.

func ByStart added in v0.14.0

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

ByStart orders the results by the Start field.

func ByStati added in v0.14.0

func ByStati(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByStati orders the results by Stati terms.

func ByStatiCount added in v0.14.0

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

ByStatiCount orders the results by Stati count.

func ByTime added in v0.14.0

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

ByTime orders the results by the Time field.

func ByUUID added in v0.14.0

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

ByUUID orders the results by the UUID field.

func ByUsername added in v0.14.0

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

ByUsername orders the results by the Username field.

Jump to

Keyboard shortcuts

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