Help us shape the future of Go! Take the 2026 Go Developer Survey

webhookendpoint

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for webhookendpoint fields.

Functions

func And

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 ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

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

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

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

URLGT applies the GT predicate on the "url" field.

func URLGTE

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

URLLT applies the LT predicate on the "url" field.

func URLLTE

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

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

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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