Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WebhookEndpoint) predicate.WebhookEndpoint
- func ConsecutiveFailures(v int) predicate.WebhookEndpoint
- func ConsecutiveFailuresEQ(v int) predicate.WebhookEndpoint
- func ConsecutiveFailuresGT(v int) predicate.WebhookEndpoint
- func ConsecutiveFailuresGTE(v int) predicate.WebhookEndpoint
- func ConsecutiveFailuresIn(vs ...int) predicate.WebhookEndpoint
- func ConsecutiveFailuresIsNil() predicate.WebhookEndpoint
- func ConsecutiveFailuresLT(v int) predicate.WebhookEndpoint
- func ConsecutiveFailuresLTE(v int) predicate.WebhookEndpoint
- func ConsecutiveFailuresNEQ(v int) predicate.WebhookEndpoint
- func ConsecutiveFailuresNotIn(vs ...int) predicate.WebhookEndpoint
- func ConsecutiveFailuresNotNil() predicate.WebhookEndpoint
- func CreatedAt(v time.Time) predicate.WebhookEndpoint
- func CreatedAtEQ(v time.Time) predicate.WebhookEndpoint
- func CreatedAtGT(v time.Time) predicate.WebhookEndpoint
- func CreatedAtGTE(v time.Time) predicate.WebhookEndpoint
- func CreatedAtIn(vs ...time.Time) predicate.WebhookEndpoint
- func CreatedAtLT(v time.Time) predicate.WebhookEndpoint
- func CreatedAtLTE(v time.Time) predicate.WebhookEndpoint
- func CreatedAtNEQ(v time.Time) predicate.WebhookEndpoint
- func CreatedAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
- func DisabledAt(v time.Time) predicate.WebhookEndpoint
- func DisabledAtEQ(v time.Time) predicate.WebhookEndpoint
- func DisabledAtGT(v time.Time) predicate.WebhookEndpoint
- func DisabledAtGTE(v time.Time) predicate.WebhookEndpoint
- func DisabledAtIn(vs ...time.Time) predicate.WebhookEndpoint
- func DisabledAtIsNil() predicate.WebhookEndpoint
- func DisabledAtLT(v time.Time) predicate.WebhookEndpoint
- func DisabledAtLTE(v time.Time) predicate.WebhookEndpoint
- func DisabledAtNEQ(v time.Time) predicate.WebhookEndpoint
- func DisabledAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
- func DisabledAtNotNil() predicate.WebhookEndpoint
- func DisabledReasonEQ(v DisabledReason) predicate.WebhookEndpoint
- func DisabledReasonIn(vs ...DisabledReason) predicate.WebhookEndpoint
- func DisabledReasonIsNil() predicate.WebhookEndpoint
- func DisabledReasonNEQ(v DisabledReason) predicate.WebhookEndpoint
- func DisabledReasonNotIn(vs ...DisabledReason) predicate.WebhookEndpoint
- func DisabledReasonNotNil() predicate.WebhookEndpoint
- func DisabledReasonValidator(dr DisabledReason) error
- func EventTypesIsNil() predicate.WebhookEndpoint
- func EventTypesNotNil() predicate.WebhookEndpoint
- func FailingSince(v time.Time) predicate.WebhookEndpoint
- func FailingSinceEQ(v time.Time) predicate.WebhookEndpoint
- func FailingSinceGT(v time.Time) predicate.WebhookEndpoint
- func FailingSinceGTE(v time.Time) predicate.WebhookEndpoint
- func FailingSinceIn(vs ...time.Time) predicate.WebhookEndpoint
- func FailingSinceIsNil() predicate.WebhookEndpoint
- func FailingSinceLT(v time.Time) predicate.WebhookEndpoint
- func FailingSinceLTE(v time.Time) predicate.WebhookEndpoint
- func FailingSinceNEQ(v time.Time) predicate.WebhookEndpoint
- func FailingSinceNotIn(vs ...time.Time) predicate.WebhookEndpoint
- func FailingSinceNotNil() predicate.WebhookEndpoint
- func HasWorkspace() predicate.WebhookEndpoint
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.WebhookEndpoint
- func ID(id int64) predicate.WebhookEndpoint
- func IDEQ(id int64) predicate.WebhookEndpoint
- func IDGT(id int64) predicate.WebhookEndpoint
- func IDGTE(id int64) predicate.WebhookEndpoint
- func IDIn(ids ...int64) predicate.WebhookEndpoint
- func IDLT(id int64) predicate.WebhookEndpoint
- func IDLTE(id int64) predicate.WebhookEndpoint
- func IDNEQ(id int64) predicate.WebhookEndpoint
- func IDNotIn(ids ...int64) predicate.WebhookEndpoint
- func LastErrorKindEQ(v LastErrorKind) predicate.WebhookEndpoint
- func LastErrorKindIn(vs ...LastErrorKind) predicate.WebhookEndpoint
- func LastErrorKindIsNil() predicate.WebhookEndpoint
- func LastErrorKindNEQ(v LastErrorKind) predicate.WebhookEndpoint
- func LastErrorKindNotIn(vs ...LastErrorKind) predicate.WebhookEndpoint
- func LastErrorKindNotNil() predicate.WebhookEndpoint
- func LastErrorKindValidator(lek LastErrorKind) error
- func LastErrorStatus(v int) predicate.WebhookEndpoint
- func LastErrorStatusEQ(v int) predicate.WebhookEndpoint
- func LastErrorStatusGT(v int) predicate.WebhookEndpoint
- func LastErrorStatusGTE(v int) predicate.WebhookEndpoint
- func LastErrorStatusIn(vs ...int) predicate.WebhookEndpoint
- func LastErrorStatusIsNil() predicate.WebhookEndpoint
- func LastErrorStatusLT(v int) predicate.WebhookEndpoint
- func LastErrorStatusLTE(v int) predicate.WebhookEndpoint
- func LastErrorStatusNEQ(v int) predicate.WebhookEndpoint
- func LastErrorStatusNotIn(vs ...int) predicate.WebhookEndpoint
- func LastErrorStatusNotNil() predicate.WebhookEndpoint
- func LastFailureAt(v time.Time) predicate.WebhookEndpoint
- func LastFailureAtEQ(v time.Time) predicate.WebhookEndpoint
- func LastFailureAtGT(v time.Time) predicate.WebhookEndpoint
- func LastFailureAtGTE(v time.Time) predicate.WebhookEndpoint
- func LastFailureAtIn(vs ...time.Time) predicate.WebhookEndpoint
- func LastFailureAtIsNil() predicate.WebhookEndpoint
- func LastFailureAtLT(v time.Time) predicate.WebhookEndpoint
- func LastFailureAtLTE(v time.Time) predicate.WebhookEndpoint
- func LastFailureAtNEQ(v time.Time) predicate.WebhookEndpoint
- func LastFailureAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
- func LastFailureAtNotNil() predicate.WebhookEndpoint
- func Not(p predicate.WebhookEndpoint) predicate.WebhookEndpoint
- func Or(predicates ...predicate.WebhookEndpoint) predicate.WebhookEndpoint
- func SecretEncrypted(v string) predicate.WebhookEndpoint
- func SecretEncryptedContains(v string) predicate.WebhookEndpoint
- func SecretEncryptedContainsFold(v string) predicate.WebhookEndpoint
- func SecretEncryptedEQ(v string) predicate.WebhookEndpoint
- func SecretEncryptedEqualFold(v string) predicate.WebhookEndpoint
- func SecretEncryptedGT(v string) predicate.WebhookEndpoint
- func SecretEncryptedGTE(v string) predicate.WebhookEndpoint
- func SecretEncryptedHasPrefix(v string) predicate.WebhookEndpoint
- func SecretEncryptedHasSuffix(v string) predicate.WebhookEndpoint
- func SecretEncryptedIn(vs ...string) predicate.WebhookEndpoint
- func SecretEncryptedLT(v string) predicate.WebhookEndpoint
- func SecretEncryptedLTE(v string) predicate.WebhookEndpoint
- func SecretEncryptedNEQ(v string) predicate.WebhookEndpoint
- func SecretEncryptedNotIn(vs ...string) predicate.WebhookEndpoint
- func URL(v string) predicate.WebhookEndpoint
- func URLContains(v string) predicate.WebhookEndpoint
- func URLContainsFold(v string) predicate.WebhookEndpoint
- func URLEQ(v string) predicate.WebhookEndpoint
- func URLEqualFold(v string) predicate.WebhookEndpoint
- func URLGT(v string) predicate.WebhookEndpoint
- func URLGTE(v string) predicate.WebhookEndpoint
- func URLHasPrefix(v string) predicate.WebhookEndpoint
- func URLHasSuffix(v string) predicate.WebhookEndpoint
- func URLIn(vs ...string) predicate.WebhookEndpoint
- func URLLT(v string) predicate.WebhookEndpoint
- func URLLTE(v string) predicate.WebhookEndpoint
- func URLNEQ(v string) predicate.WebhookEndpoint
- func URLNotIn(vs ...string) predicate.WebhookEndpoint
- func UpdatedAt(v time.Time) predicate.WebhookEndpoint
- func UpdatedAtEQ(v time.Time) predicate.WebhookEndpoint
- func UpdatedAtGT(v time.Time) predicate.WebhookEndpoint
- func UpdatedAtGTE(v time.Time) predicate.WebhookEndpoint
- func UpdatedAtIn(vs ...time.Time) predicate.WebhookEndpoint
- func UpdatedAtLT(v time.Time) predicate.WebhookEndpoint
- func UpdatedAtLTE(v time.Time) predicate.WebhookEndpoint
- func UpdatedAtNEQ(v time.Time) predicate.WebhookEndpoint
- func UpdatedAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.WebhookEndpoint
- func WorkspaceIDEQ(v int64) predicate.WebhookEndpoint
- func WorkspaceIDIn(vs ...int64) predicate.WebhookEndpoint
- func WorkspaceIDNEQ(v int64) predicate.WebhookEndpoint
- func WorkspaceIDNotIn(vs ...int64) predicate.WebhookEndpoint
- type DisabledReason
- type LastErrorKind
- type OrderOption
- func ByConsecutiveFailures(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisabledAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisabledReason(opts ...sql.OrderTermOption) OrderOption
- func ByFailingSince(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastErrorKind(opts ...sql.OrderTermOption) OrderOption
- func ByLastErrorStatus(opts ...sql.OrderTermOption) OrderOption
- func ByLastFailureAt(opts ...sql.OrderTermOption) OrderOption
- func BySecretEncrypted(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the webhookendpoint type in the database. Label = "webhook_endpoint" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldWorkspaceID holds the string denoting the workspace_id field in the database. FieldWorkspaceID = "workspace_id" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldSecretEncrypted holds the string denoting the secret_encrypted field in the database. FieldSecretEncrypted = "secret_encrypted" // FieldEventTypes holds the string denoting the event_types field in the database. FieldEventTypes = "event_types" // FieldDisabledAt holds the string denoting the disabled_at field in the database. FieldDisabledAt = "disabled_at" // FieldConsecutiveFailures holds the string denoting the consecutive_failures field in the database. FieldConsecutiveFailures = "consecutive_failures" // FieldFailingSince holds the string denoting the failing_since field in the database. FieldFailingSince = "failing_since" // FieldLastErrorKind holds the string denoting the last_error_kind field in the database. FieldLastErrorKind = "last_error_kind" // FieldLastErrorStatus holds the string denoting the last_error_status field in the database. FieldLastErrorStatus = "last_error_status" // FieldLastFailureAt holds the string denoting the last_failure_at field in the database. FieldLastFailureAt = "last_failure_at" // FieldDisabledReason holds the string denoting the disabled_reason field in the database. FieldDisabledReason = "disabled_reason" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // Table holds the table name of the webhookendpoint in the database. Table = "webhook_endpoints" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "webhook_endpoints" // WorkspaceInverseTable is the table name for the Workspace entity. // It exists in this package in order to avoid circular dependency with the "workspace" package. WorkspaceInverseTable = "workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "workspace_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldURL, FieldSecretEncrypted, FieldEventTypes, FieldDisabledAt, FieldConsecutiveFailures, FieldFailingSince, FieldLastErrorKind, FieldLastErrorStatus, FieldLastFailureAt, FieldDisabledReason, }
Columns holds all SQL columns for webhookendpoint fields.
Functions ¶
func And ¶
func And(predicates ...predicate.WebhookEndpoint) predicate.WebhookEndpoint
And groups predicates with the AND operator between them.
func ConsecutiveFailures ¶
func ConsecutiveFailures(v int) predicate.WebhookEndpoint
ConsecutiveFailures applies equality check predicate on the "consecutive_failures" field. It's identical to ConsecutiveFailuresEQ.
func ConsecutiveFailuresEQ ¶
func ConsecutiveFailuresEQ(v int) predicate.WebhookEndpoint
ConsecutiveFailuresEQ applies the EQ predicate on the "consecutive_failures" field.
func ConsecutiveFailuresGT ¶
func ConsecutiveFailuresGT(v int) predicate.WebhookEndpoint
ConsecutiveFailuresGT applies the GT predicate on the "consecutive_failures" field.
func ConsecutiveFailuresGTE ¶
func ConsecutiveFailuresGTE(v int) predicate.WebhookEndpoint
ConsecutiveFailuresGTE applies the GTE predicate on the "consecutive_failures" field.
func ConsecutiveFailuresIn ¶
func ConsecutiveFailuresIn(vs ...int) predicate.WebhookEndpoint
ConsecutiveFailuresIn applies the In predicate on the "consecutive_failures" field.
func ConsecutiveFailuresIsNil ¶
func ConsecutiveFailuresIsNil() predicate.WebhookEndpoint
ConsecutiveFailuresIsNil applies the IsNil predicate on the "consecutive_failures" field.
func ConsecutiveFailuresLT ¶
func ConsecutiveFailuresLT(v int) predicate.WebhookEndpoint
ConsecutiveFailuresLT applies the LT predicate on the "consecutive_failures" field.
func ConsecutiveFailuresLTE ¶
func ConsecutiveFailuresLTE(v int) predicate.WebhookEndpoint
ConsecutiveFailuresLTE applies the LTE predicate on the "consecutive_failures" field.
func ConsecutiveFailuresNEQ ¶
func ConsecutiveFailuresNEQ(v int) predicate.WebhookEndpoint
ConsecutiveFailuresNEQ applies the NEQ predicate on the "consecutive_failures" field.
func ConsecutiveFailuresNotIn ¶
func ConsecutiveFailuresNotIn(vs ...int) predicate.WebhookEndpoint
ConsecutiveFailuresNotIn applies the NotIn predicate on the "consecutive_failures" field.
func ConsecutiveFailuresNotNil ¶
func ConsecutiveFailuresNotNil() predicate.WebhookEndpoint
ConsecutiveFailuresNotNil applies the NotNil predicate on the "consecutive_failures" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.WebhookEndpoint
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.WebhookEndpoint
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.WebhookEndpoint
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.WebhookEndpoint
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.WebhookEndpoint
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.WebhookEndpoint
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.WebhookEndpoint
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.WebhookEndpoint
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DisabledAt ¶
func DisabledAt(v time.Time) predicate.WebhookEndpoint
DisabledAt applies equality check predicate on the "disabled_at" field. It's identical to DisabledAtEQ.
func DisabledAtEQ ¶
func DisabledAtEQ(v time.Time) predicate.WebhookEndpoint
DisabledAtEQ applies the EQ predicate on the "disabled_at" field.
func DisabledAtGT ¶
func DisabledAtGT(v time.Time) predicate.WebhookEndpoint
DisabledAtGT applies the GT predicate on the "disabled_at" field.
func DisabledAtGTE ¶
func DisabledAtGTE(v time.Time) predicate.WebhookEndpoint
DisabledAtGTE applies the GTE predicate on the "disabled_at" field.
func DisabledAtIn ¶
func DisabledAtIn(vs ...time.Time) predicate.WebhookEndpoint
DisabledAtIn applies the In predicate on the "disabled_at" field.
func DisabledAtIsNil ¶
func DisabledAtIsNil() predicate.WebhookEndpoint
DisabledAtIsNil applies the IsNil predicate on the "disabled_at" field.
func DisabledAtLT ¶
func DisabledAtLT(v time.Time) predicate.WebhookEndpoint
DisabledAtLT applies the LT predicate on the "disabled_at" field.
func DisabledAtLTE ¶
func DisabledAtLTE(v time.Time) predicate.WebhookEndpoint
DisabledAtLTE applies the LTE predicate on the "disabled_at" field.
func DisabledAtNEQ ¶
func DisabledAtNEQ(v time.Time) predicate.WebhookEndpoint
DisabledAtNEQ applies the NEQ predicate on the "disabled_at" field.
func DisabledAtNotIn ¶
func DisabledAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
DisabledAtNotIn applies the NotIn predicate on the "disabled_at" field.
func DisabledAtNotNil ¶
func DisabledAtNotNil() predicate.WebhookEndpoint
DisabledAtNotNil applies the NotNil predicate on the "disabled_at" field.
func DisabledReasonEQ ¶
func DisabledReasonEQ(v DisabledReason) predicate.WebhookEndpoint
DisabledReasonEQ applies the EQ predicate on the "disabled_reason" field.
func DisabledReasonIn ¶
func DisabledReasonIn(vs ...DisabledReason) predicate.WebhookEndpoint
DisabledReasonIn applies the In predicate on the "disabled_reason" field.
func DisabledReasonIsNil ¶
func DisabledReasonIsNil() predicate.WebhookEndpoint
DisabledReasonIsNil applies the IsNil predicate on the "disabled_reason" field.
func DisabledReasonNEQ ¶
func DisabledReasonNEQ(v DisabledReason) predicate.WebhookEndpoint
DisabledReasonNEQ applies the NEQ predicate on the "disabled_reason" field.
func DisabledReasonNotIn ¶
func DisabledReasonNotIn(vs ...DisabledReason) predicate.WebhookEndpoint
DisabledReasonNotIn applies the NotIn predicate on the "disabled_reason" field.
func DisabledReasonNotNil ¶
func DisabledReasonNotNil() predicate.WebhookEndpoint
DisabledReasonNotNil applies the NotNil predicate on the "disabled_reason" field.
func DisabledReasonValidator ¶
func DisabledReasonValidator(dr DisabledReason) error
DisabledReasonValidator is a validator for the "disabled_reason" field enum values. It is called by the builders before save.
func EventTypesIsNil ¶
func EventTypesIsNil() predicate.WebhookEndpoint
EventTypesIsNil applies the IsNil predicate on the "event_types" field.
func EventTypesNotNil ¶
func EventTypesNotNil() predicate.WebhookEndpoint
EventTypesNotNil applies the NotNil predicate on the "event_types" field.
func FailingSince ¶
func FailingSince(v time.Time) predicate.WebhookEndpoint
FailingSince applies equality check predicate on the "failing_since" field. It's identical to FailingSinceEQ.
func FailingSinceEQ ¶
func FailingSinceEQ(v time.Time) predicate.WebhookEndpoint
FailingSinceEQ applies the EQ predicate on the "failing_since" field.
func FailingSinceGT ¶
func FailingSinceGT(v time.Time) predicate.WebhookEndpoint
FailingSinceGT applies the GT predicate on the "failing_since" field.
func FailingSinceGTE ¶
func FailingSinceGTE(v time.Time) predicate.WebhookEndpoint
FailingSinceGTE applies the GTE predicate on the "failing_since" field.
func FailingSinceIn ¶
func FailingSinceIn(vs ...time.Time) predicate.WebhookEndpoint
FailingSinceIn applies the In predicate on the "failing_since" field.
func FailingSinceIsNil ¶
func FailingSinceIsNil() predicate.WebhookEndpoint
FailingSinceIsNil applies the IsNil predicate on the "failing_since" field.
func FailingSinceLT ¶
func FailingSinceLT(v time.Time) predicate.WebhookEndpoint
FailingSinceLT applies the LT predicate on the "failing_since" field.
func FailingSinceLTE ¶
func FailingSinceLTE(v time.Time) predicate.WebhookEndpoint
FailingSinceLTE applies the LTE predicate on the "failing_since" field.
func FailingSinceNEQ ¶
func FailingSinceNEQ(v time.Time) predicate.WebhookEndpoint
FailingSinceNEQ applies the NEQ predicate on the "failing_since" field.
func FailingSinceNotIn ¶
func FailingSinceNotIn(vs ...time.Time) predicate.WebhookEndpoint
FailingSinceNotIn applies the NotIn predicate on the "failing_since" field.
func FailingSinceNotNil ¶
func FailingSinceNotNil() predicate.WebhookEndpoint
FailingSinceNotNil applies the NotNil predicate on the "failing_since" field.
func HasWorkspace ¶
func HasWorkspace() predicate.WebhookEndpoint
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
func HasWorkspaceWith(preds ...predicate.Workspace) predicate.WebhookEndpoint
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.WebhookEndpoint
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.WebhookEndpoint
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.WebhookEndpoint
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.WebhookEndpoint
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.WebhookEndpoint
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.WebhookEndpoint
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.WebhookEndpoint
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.WebhookEndpoint
IDNotIn applies the NotIn predicate on the ID field.
func LastErrorKindEQ ¶
func LastErrorKindEQ(v LastErrorKind) predicate.WebhookEndpoint
LastErrorKindEQ applies the EQ predicate on the "last_error_kind" field.
func LastErrorKindIn ¶
func LastErrorKindIn(vs ...LastErrorKind) predicate.WebhookEndpoint
LastErrorKindIn applies the In predicate on the "last_error_kind" field.
func LastErrorKindIsNil ¶
func LastErrorKindIsNil() predicate.WebhookEndpoint
LastErrorKindIsNil applies the IsNil predicate on the "last_error_kind" field.
func LastErrorKindNEQ ¶
func LastErrorKindNEQ(v LastErrorKind) predicate.WebhookEndpoint
LastErrorKindNEQ applies the NEQ predicate on the "last_error_kind" field.
func LastErrorKindNotIn ¶
func LastErrorKindNotIn(vs ...LastErrorKind) predicate.WebhookEndpoint
LastErrorKindNotIn applies the NotIn predicate on the "last_error_kind" field.
func LastErrorKindNotNil ¶
func LastErrorKindNotNil() predicate.WebhookEndpoint
LastErrorKindNotNil applies the NotNil predicate on the "last_error_kind" field.
func LastErrorKindValidator ¶
func LastErrorKindValidator(lek LastErrorKind) error
LastErrorKindValidator is a validator for the "last_error_kind" field enum values. It is called by the builders before save.
func LastErrorStatus ¶
func LastErrorStatus(v int) predicate.WebhookEndpoint
LastErrorStatus applies equality check predicate on the "last_error_status" field. It's identical to LastErrorStatusEQ.
func LastErrorStatusEQ ¶
func LastErrorStatusEQ(v int) predicate.WebhookEndpoint
LastErrorStatusEQ applies the EQ predicate on the "last_error_status" field.
func LastErrorStatusGT ¶
func LastErrorStatusGT(v int) predicate.WebhookEndpoint
LastErrorStatusGT applies the GT predicate on the "last_error_status" field.
func LastErrorStatusGTE ¶
func LastErrorStatusGTE(v int) predicate.WebhookEndpoint
LastErrorStatusGTE applies the GTE predicate on the "last_error_status" field.
func LastErrorStatusIn ¶
func LastErrorStatusIn(vs ...int) predicate.WebhookEndpoint
LastErrorStatusIn applies the In predicate on the "last_error_status" field.
func LastErrorStatusIsNil ¶
func LastErrorStatusIsNil() predicate.WebhookEndpoint
LastErrorStatusIsNil applies the IsNil predicate on the "last_error_status" field.
func LastErrorStatusLT ¶
func LastErrorStatusLT(v int) predicate.WebhookEndpoint
LastErrorStatusLT applies the LT predicate on the "last_error_status" field.
func LastErrorStatusLTE ¶
func LastErrorStatusLTE(v int) predicate.WebhookEndpoint
LastErrorStatusLTE applies the LTE predicate on the "last_error_status" field.
func LastErrorStatusNEQ ¶
func LastErrorStatusNEQ(v int) predicate.WebhookEndpoint
LastErrorStatusNEQ applies the NEQ predicate on the "last_error_status" field.
func LastErrorStatusNotIn ¶
func LastErrorStatusNotIn(vs ...int) predicate.WebhookEndpoint
LastErrorStatusNotIn applies the NotIn predicate on the "last_error_status" field.
func LastErrorStatusNotNil ¶
func LastErrorStatusNotNil() predicate.WebhookEndpoint
LastErrorStatusNotNil applies the NotNil predicate on the "last_error_status" field.
func LastFailureAt ¶
func LastFailureAt(v time.Time) predicate.WebhookEndpoint
LastFailureAt applies equality check predicate on the "last_failure_at" field. It's identical to LastFailureAtEQ.
func LastFailureAtEQ ¶
func LastFailureAtEQ(v time.Time) predicate.WebhookEndpoint
LastFailureAtEQ applies the EQ predicate on the "last_failure_at" field.
func LastFailureAtGT ¶
func LastFailureAtGT(v time.Time) predicate.WebhookEndpoint
LastFailureAtGT applies the GT predicate on the "last_failure_at" field.
func LastFailureAtGTE ¶
func LastFailureAtGTE(v time.Time) predicate.WebhookEndpoint
LastFailureAtGTE applies the GTE predicate on the "last_failure_at" field.
func LastFailureAtIn ¶
func LastFailureAtIn(vs ...time.Time) predicate.WebhookEndpoint
LastFailureAtIn applies the In predicate on the "last_failure_at" field.
func LastFailureAtIsNil ¶
func LastFailureAtIsNil() predicate.WebhookEndpoint
LastFailureAtIsNil applies the IsNil predicate on the "last_failure_at" field.
func LastFailureAtLT ¶
func LastFailureAtLT(v time.Time) predicate.WebhookEndpoint
LastFailureAtLT applies the LT predicate on the "last_failure_at" field.
func LastFailureAtLTE ¶
func LastFailureAtLTE(v time.Time) predicate.WebhookEndpoint
LastFailureAtLTE applies the LTE predicate on the "last_failure_at" field.
func LastFailureAtNEQ ¶
func LastFailureAtNEQ(v time.Time) predicate.WebhookEndpoint
LastFailureAtNEQ applies the NEQ predicate on the "last_failure_at" field.
func LastFailureAtNotIn ¶
func LastFailureAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
LastFailureAtNotIn applies the NotIn predicate on the "last_failure_at" field.
func LastFailureAtNotNil ¶
func LastFailureAtNotNil() predicate.WebhookEndpoint
LastFailureAtNotNil applies the NotNil predicate on the "last_failure_at" field.
func Not ¶
func Not(p predicate.WebhookEndpoint) predicate.WebhookEndpoint
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.WebhookEndpoint) predicate.WebhookEndpoint
Or groups predicates with the OR operator between them.
func SecretEncrypted ¶
func SecretEncrypted(v string) predicate.WebhookEndpoint
SecretEncrypted applies equality check predicate on the "secret_encrypted" field. It's identical to SecretEncryptedEQ.
func SecretEncryptedContains ¶
func SecretEncryptedContains(v string) predicate.WebhookEndpoint
SecretEncryptedContains applies the Contains predicate on the "secret_encrypted" field.
func SecretEncryptedContainsFold ¶
func SecretEncryptedContainsFold(v string) predicate.WebhookEndpoint
SecretEncryptedContainsFold applies the ContainsFold predicate on the "secret_encrypted" field.
func SecretEncryptedEQ ¶
func SecretEncryptedEQ(v string) predicate.WebhookEndpoint
SecretEncryptedEQ applies the EQ predicate on the "secret_encrypted" field.
func SecretEncryptedEqualFold ¶
func SecretEncryptedEqualFold(v string) predicate.WebhookEndpoint
SecretEncryptedEqualFold applies the EqualFold predicate on the "secret_encrypted" field.
func SecretEncryptedGT ¶
func SecretEncryptedGT(v string) predicate.WebhookEndpoint
SecretEncryptedGT applies the GT predicate on the "secret_encrypted" field.
func SecretEncryptedGTE ¶
func SecretEncryptedGTE(v string) predicate.WebhookEndpoint
SecretEncryptedGTE applies the GTE predicate on the "secret_encrypted" field.
func SecretEncryptedHasPrefix ¶
func SecretEncryptedHasPrefix(v string) predicate.WebhookEndpoint
SecretEncryptedHasPrefix applies the HasPrefix predicate on the "secret_encrypted" field.
func SecretEncryptedHasSuffix ¶
func SecretEncryptedHasSuffix(v string) predicate.WebhookEndpoint
SecretEncryptedHasSuffix applies the HasSuffix predicate on the "secret_encrypted" field.
func SecretEncryptedIn ¶
func SecretEncryptedIn(vs ...string) predicate.WebhookEndpoint
SecretEncryptedIn applies the In predicate on the "secret_encrypted" field.
func SecretEncryptedLT ¶
func SecretEncryptedLT(v string) predicate.WebhookEndpoint
SecretEncryptedLT applies the LT predicate on the "secret_encrypted" field.
func SecretEncryptedLTE ¶
func SecretEncryptedLTE(v string) predicate.WebhookEndpoint
SecretEncryptedLTE applies the LTE predicate on the "secret_encrypted" field.
func SecretEncryptedNEQ ¶
func SecretEncryptedNEQ(v string) predicate.WebhookEndpoint
SecretEncryptedNEQ applies the NEQ predicate on the "secret_encrypted" field.
func SecretEncryptedNotIn ¶
func SecretEncryptedNotIn(vs ...string) predicate.WebhookEndpoint
SecretEncryptedNotIn applies the NotIn predicate on the "secret_encrypted" field.
func URL ¶
func URL(v string) predicate.WebhookEndpoint
URL applies equality check predicate on the "url" field. It's identical to URLEQ.
func URLContains ¶
func URLContains(v string) predicate.WebhookEndpoint
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
func URLContainsFold(v string) predicate.WebhookEndpoint
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEQ ¶
func URLEQ(v string) predicate.WebhookEndpoint
URLEQ applies the EQ predicate on the "url" field.
func URLEqualFold ¶
func URLEqualFold(v string) predicate.WebhookEndpoint
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLGT ¶
func URLGT(v string) predicate.WebhookEndpoint
URLGT applies the GT predicate on the "url" field.
func URLGTE ¶
func URLGTE(v string) predicate.WebhookEndpoint
URLGTE applies the GTE predicate on the "url" field.
func URLHasPrefix ¶
func URLHasPrefix(v string) predicate.WebhookEndpoint
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
func URLHasSuffix(v string) predicate.WebhookEndpoint
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func URLIn ¶
func URLIn(vs ...string) predicate.WebhookEndpoint
URLIn applies the In predicate on the "url" field.
func URLLT ¶
func URLLT(v string) predicate.WebhookEndpoint
URLLT applies the LT predicate on the "url" field.
func URLLTE ¶
func URLLTE(v string) predicate.WebhookEndpoint
URLLTE applies the LTE predicate on the "url" field.
func URLNEQ ¶
func URLNEQ(v string) predicate.WebhookEndpoint
URLNEQ applies the NEQ predicate on the "url" field.
func URLNotIn ¶
func URLNotIn(vs ...string) predicate.WebhookEndpoint
URLNotIn applies the NotIn predicate on the "url" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.WebhookEndpoint
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.WebhookEndpoint
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.WebhookEndpoint
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.WebhookEndpoint
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.WebhookEndpoint
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.WebhookEndpoint
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.WebhookEndpoint
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.WebhookEndpoint
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.WebhookEndpoint
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkspaceID ¶
func WorkspaceID(v int64) predicate.WebhookEndpoint
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
func WorkspaceIDEQ(v int64) predicate.WebhookEndpoint
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
func WorkspaceIDIn(vs ...int64) predicate.WebhookEndpoint
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
func WorkspaceIDNEQ(v int64) predicate.WebhookEndpoint
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
func WorkspaceIDNotIn(vs ...int64) predicate.WebhookEndpoint
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type DisabledReason ¶
type DisabledReason string
DisabledReason defines the type for the "disabled_reason" enum field.
const ( DisabledReasonOwner DisabledReason = "owner" DisabledReasonGone DisabledReason = "gone" DisabledReasonPersistentFailure DisabledReason = "persistent_failure" )
DisabledReason values.
func (DisabledReason) String ¶
func (dr DisabledReason) String() string
type LastErrorKind ¶
type LastErrorKind string
LastErrorKind defines the type for the "last_error_kind" enum field.
const ( LastErrorKindTimeout LastErrorKind = "timeout" LastErrorKindBlockedAddress LastErrorKind = "blocked_address" LastErrorKindHTTPStatus LastErrorKind = "http_status" LastErrorKindNetwork LastErrorKind = "network" )
LastErrorKind values.
func (LastErrorKind) String ¶
func (lek LastErrorKind) String() string
type OrderOption ¶
OrderOption defines the ordering options for the WebhookEndpoint queries.
func ByConsecutiveFailures ¶
func ByConsecutiveFailures(opts ...sql.OrderTermOption) OrderOption
ByConsecutiveFailures orders the results by the consecutive_failures field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDisabledAt ¶
func ByDisabledAt(opts ...sql.OrderTermOption) OrderOption
ByDisabledAt orders the results by the disabled_at field.
func ByDisabledReason ¶
func ByDisabledReason(opts ...sql.OrderTermOption) OrderOption
ByDisabledReason orders the results by the disabled_reason field.
func ByFailingSince ¶
func ByFailingSince(opts ...sql.OrderTermOption) OrderOption
ByFailingSince orders the results by the failing_since field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastErrorKind ¶
func ByLastErrorKind(opts ...sql.OrderTermOption) OrderOption
ByLastErrorKind orders the results by the last_error_kind field.
func ByLastErrorStatus ¶
func ByLastErrorStatus(opts ...sql.OrderTermOption) OrderOption
ByLastErrorStatus orders the results by the last_error_status field.
func ByLastFailureAt ¶
func ByLastFailureAt(opts ...sql.OrderTermOption) OrderOption
ByLastFailureAt orders the results by the last_failure_at field.
func BySecretEncrypted ¶
func BySecretEncrypted(opts ...sql.OrderTermOption) OrderOption
BySecretEncrypted orders the results by the secret_encrypted field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.
func ByWorkspaceID ¶
func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
ByWorkspaceID orders the results by the workspace_id field.