Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Event) predicate.Event
- func HasProject() predicate.Event
- func HasProjectWith(preds ...predicate.Project) predicate.Event
- func HasRelease() predicate.Event
- func HasReleaseWith(preds ...predicate.Release) predicate.Event
- func HasRepo() predicate.Event
- func HasRepoWith(preds ...predicate.Repo) predicate.Event
- func ID(id int) predicate.Event
- func IDEQ(id int) predicate.Event
- func IDGT(id int) predicate.Event
- func IDGTE(id int) predicate.Event
- func IDIn(ids ...int) predicate.Event
- func IDLT(id int) predicate.Event
- func IDLTE(id int) predicate.Event
- func IDNEQ(id int) predicate.Event
- func IDNotIn(ids ...int) predicate.Event
- func Message(v string) predicate.Event
- func MessageContains(v string) predicate.Event
- func MessageContainsFold(v string) predicate.Event
- func MessageEQ(v string) predicate.Event
- func MessageEqualFold(v string) predicate.Event
- func MessageGT(v string) predicate.Event
- func MessageGTE(v string) predicate.Event
- func MessageHasPrefix(v string) predicate.Event
- func MessageHasSuffix(v string) predicate.Event
- func MessageIn(vs ...string) predicate.Event
- func MessageLT(v string) predicate.Event
- func MessageLTE(v string) predicate.Event
- func MessageNEQ(v string) predicate.Event
- func MessageNotIn(vs ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func StatusEQ(v Status) predicate.Event
- func StatusIn(vs ...Status) predicate.Event
- func StatusNEQ(v Status) predicate.Event
- func StatusNotIn(vs ...Status) predicate.Event
- func StatusValidator(s Status) error
- func Time(v time.Time) predicate.Event
- func TimeEQ(v time.Time) predicate.Event
- func TimeGT(v time.Time) predicate.Event
- func TimeGTE(v time.Time) predicate.Event
- func TimeIn(vs ...time.Time) predicate.Event
- func TimeLT(v time.Time) predicate.Event
- func TimeLTE(v time.Time) predicate.Event
- func TimeNEQ(v time.Time) predicate.Event
- func TimeNotIn(vs ...time.Time) predicate.Event
- func TypeEQ(v Type) predicate.Event
- func TypeIn(vs ...Type) predicate.Event
- func TypeNEQ(v Type) predicate.Event
- func TypeNotIn(vs ...Type) predicate.Event
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Status
- type Type
Constants ¶
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" )
const DefaultStatus = StatusOk
StatusOk is the default value of the Status enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldMessage, FieldStatus, FieldType, FieldTime, }
Columns holds all SQL columns for event fields.
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 HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasRelease ¶
HasRelease applies the HasEdge predicate on the "release" edge.
func HasReleaseWith ¶
HasReleaseWith applies the HasEdge predicate on the "release" edge with a given conditions (other predicates).
func HasRepoWith ¶
HasRepoWith applies the HasEdge predicate on the "repo" edge with a given conditions (other predicates).
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
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.
func (Status) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Status) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.