Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Webhook) predicate.Webhook
- func CreatedAt(v time.Time) predicate.Webhook
- func CreatedAtEQ(v time.Time) predicate.Webhook
- func CreatedAtGT(v time.Time) predicate.Webhook
- func CreatedAtGTE(v time.Time) predicate.Webhook
- func CreatedAtIn(vs ...time.Time) predicate.Webhook
- func CreatedAtLT(v time.Time) predicate.Webhook
- func CreatedAtLTE(v time.Time) predicate.Webhook
- func CreatedAtNEQ(v time.Time) predicate.Webhook
- func CreatedAtNotIn(vs ...time.Time) predicate.Webhook
- func HasProject() predicate.Webhook
- func HasProjectWith(preds ...predicate.Project) predicate.Webhook
- func HasTeam() predicate.Webhook
- func HasTeamWith(preds ...predicate.Team) predicate.Webhook
- func ID(id uuid.UUID) predicate.Webhook
- func IDEQ(id uuid.UUID) predicate.Webhook
- func IDGT(id uuid.UUID) predicate.Webhook
- func IDGTE(id uuid.UUID) predicate.Webhook
- func IDIn(ids ...uuid.UUID) predicate.Webhook
- func IDLT(id uuid.UUID) predicate.Webhook
- func IDLTE(id uuid.UUID) predicate.Webhook
- func IDNEQ(id uuid.UUID) predicate.Webhook
- func IDNotIn(ids ...uuid.UUID) predicate.Webhook
- func Not(p predicate.Webhook) predicate.Webhook
- func Or(predicates ...predicate.Webhook) predicate.Webhook
- func ProjectID(v uuid.UUID) predicate.Webhook
- func ProjectIDEQ(v uuid.UUID) predicate.Webhook
- func ProjectIDIn(vs ...uuid.UUID) predicate.Webhook
- func ProjectIDIsNil() predicate.Webhook
- func ProjectIDNEQ(v uuid.UUID) predicate.Webhook
- func ProjectIDNotIn(vs ...uuid.UUID) predicate.Webhook
- func ProjectIDNotNil() predicate.Webhook
- func TeamID(v uuid.UUID) predicate.Webhook
- func TeamIDEQ(v uuid.UUID) predicate.Webhook
- func TeamIDIn(vs ...uuid.UUID) predicate.Webhook
- func TeamIDNEQ(v uuid.UUID) predicate.Webhook
- func TeamIDNotIn(vs ...uuid.UUID) predicate.Webhook
- func TypeEQ(v schema.WebhookType) predicate.Webhook
- func TypeIn(vs ...schema.WebhookType) predicate.Webhook
- func TypeNEQ(v schema.WebhookType) predicate.Webhook
- func TypeNotIn(vs ...schema.WebhookType) predicate.Webhook
- func TypeValidator(_type schema.WebhookType) error
- func URL(v string) predicate.Webhook
- func URLContains(v string) predicate.Webhook
- func URLContainsFold(v string) predicate.Webhook
- func URLEQ(v string) predicate.Webhook
- func URLEqualFold(v string) predicate.Webhook
- func URLGT(v string) predicate.Webhook
- func URLGTE(v string) predicate.Webhook
- func URLHasPrefix(v string) predicate.Webhook
- func URLHasSuffix(v string) predicate.Webhook
- func URLIn(vs ...string) predicate.Webhook
- func URLLT(v string) predicate.Webhook
- func URLLTE(v string) predicate.Webhook
- func URLNEQ(v string) predicate.Webhook
- func URLNotIn(vs ...string) predicate.Webhook
- func UpdatedAt(v time.Time) predicate.Webhook
- func UpdatedAtEQ(v time.Time) predicate.Webhook
- func UpdatedAtGT(v time.Time) predicate.Webhook
- func UpdatedAtGTE(v time.Time) predicate.Webhook
- func UpdatedAtIn(vs ...time.Time) predicate.Webhook
- func UpdatedAtLT(v time.Time) predicate.Webhook
- func UpdatedAtLTE(v time.Time) predicate.Webhook
- func UpdatedAtNEQ(v time.Time) predicate.Webhook
- func UpdatedAtNotIn(vs ...time.Time) predicate.Webhook
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTeamID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the webhook type in the database. Label = "webhook" // 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" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldEvents holds the string denoting the events field in the database. FieldEvents = "events" // FieldTeamID holds the string denoting the team_id field in the database. FieldTeamID = "team_id" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // EdgeTeam holds the string denoting the team edge name in mutations. EdgeTeam = "team" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // Table holds the table name of the webhook in the database. Table = "webhooks" // TeamTable is the table that holds the team relation/edge. TeamTable = "webhooks" // TeamInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamInverseTable = "teams" // TeamColumn is the table column denoting the team relation/edge. TeamColumn = "team_id" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "webhooks" // 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 = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldURL, FieldType, FieldEvents, FieldTeamID, FieldProjectID, }
Columns holds all SQL columns for webhook fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
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 HasTeamWith ¶
HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).
func ProjectID ¶
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDEQ ¶
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDIn ¶
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDIsNil ¶
ProjectIDIsNil applies the IsNil predicate on the "project_id" field.
func ProjectIDNEQ ¶
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func ProjectIDNotNil ¶
ProjectIDNotNil applies the NotNil predicate on the "project_id" field.
func TeamID ¶
TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.
func TeamIDNotIn ¶
TeamIDNotIn applies the NotIn predicate on the "team_id" field.
func TypeEQ ¶
func TypeEQ(v schema.WebhookType) predicate.Webhook
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...schema.WebhookType) predicate.Webhook
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v schema.WebhookType) predicate.Webhook
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...schema.WebhookType) predicate.Webhook
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
func TypeValidator(_type schema.WebhookType) error
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Webhook queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByProjectField ¶
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByTeamField ¶
func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
ByTeamField orders the results by team field.
func ByTeamID ¶
func ByTeamID(opts ...sql.OrderTermOption) OrderOption
ByTeamID orders the results by the team_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type 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.