Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SendLimiter) predicate.SendLimiter
- func CreatedAt(v time.Time) predicate.SendLimiter
- func CreatedAtEQ(v time.Time) predicate.SendLimiter
- func CreatedAtGT(v time.Time) predicate.SendLimiter
- func CreatedAtGTE(v time.Time) predicate.SendLimiter
- func CreatedAtIn(vs ...time.Time) predicate.SendLimiter
- func CreatedAtLT(v time.Time) predicate.SendLimiter
- func CreatedAtLTE(v time.Time) predicate.SendLimiter
- func CreatedAtNEQ(v time.Time) predicate.SendLimiter
- func CreatedAtNotIn(vs ...time.Time) predicate.SendLimiter
- func DayFill(v float64) predicate.SendLimiter
- func DayFillEQ(v float64) predicate.SendLimiter
- func DayFillGT(v float64) predicate.SendLimiter
- func DayFillGTE(v float64) predicate.SendLimiter
- func DayFillIn(vs ...float64) predicate.SendLimiter
- func DayFillLT(v float64) predicate.SendLimiter
- func DayFillLTE(v float64) predicate.SendLimiter
- func DayFillNEQ(v float64) predicate.SendLimiter
- func DayFillNotIn(vs ...float64) predicate.SendLimiter
- func HasIntegration() predicate.SendLimiter
- func HasIntegrationWith(preds ...predicate.Integration) predicate.SendLimiter
- func HasWorkspace() predicate.SendLimiter
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.SendLimiter
- func ID(id int64) predicate.SendLimiter
- func IDEQ(id int64) predicate.SendLimiter
- func IDGT(id int64) predicate.SendLimiter
- func IDGTE(id int64) predicate.SendLimiter
- func IDIn(ids ...int64) predicate.SendLimiter
- func IDLT(id int64) predicate.SendLimiter
- func IDLTE(id int64) predicate.SendLimiter
- func IDNEQ(id int64) predicate.SendLimiter
- func IDNotIn(ids ...int64) predicate.SendLimiter
- func IntegrationID(v int64) predicate.SendLimiter
- func IntegrationIDEQ(v int64) predicate.SendLimiter
- func IntegrationIDIn(vs ...int64) predicate.SendLimiter
- func IntegrationIDNEQ(v int64) predicate.SendLimiter
- func IntegrationIDNotIn(vs ...int64) predicate.SendLimiter
- func Not(p predicate.SendLimiter) predicate.SendLimiter
- func Or(predicates ...predicate.SendLimiter) predicate.SendLimiter
- func RefilledAt(v time.Time) predicate.SendLimiter
- func RefilledAtEQ(v time.Time) predicate.SendLimiter
- func RefilledAtGT(v time.Time) predicate.SendLimiter
- func RefilledAtGTE(v time.Time) predicate.SendLimiter
- func RefilledAtIn(vs ...time.Time) predicate.SendLimiter
- func RefilledAtLT(v time.Time) predicate.SendLimiter
- func RefilledAtLTE(v time.Time) predicate.SendLimiter
- func RefilledAtNEQ(v time.Time) predicate.SendLimiter
- func RefilledAtNotIn(vs ...time.Time) predicate.SendLimiter
- func SecondFill(v float64) predicate.SendLimiter
- func SecondFillEQ(v float64) predicate.SendLimiter
- func SecondFillGT(v float64) predicate.SendLimiter
- func SecondFillGTE(v float64) predicate.SendLimiter
- func SecondFillIn(vs ...float64) predicate.SendLimiter
- func SecondFillLT(v float64) predicate.SendLimiter
- func SecondFillLTE(v float64) predicate.SendLimiter
- func SecondFillNEQ(v float64) predicate.SendLimiter
- func SecondFillNotIn(vs ...float64) predicate.SendLimiter
- func UpdatedAt(v time.Time) predicate.SendLimiter
- func UpdatedAtEQ(v time.Time) predicate.SendLimiter
- func UpdatedAtGT(v time.Time) predicate.SendLimiter
- func UpdatedAtGTE(v time.Time) predicate.SendLimiter
- func UpdatedAtIn(vs ...time.Time) predicate.SendLimiter
- func UpdatedAtLT(v time.Time) predicate.SendLimiter
- func UpdatedAtLTE(v time.Time) predicate.SendLimiter
- func UpdatedAtNEQ(v time.Time) predicate.SendLimiter
- func UpdatedAtNotIn(vs ...time.Time) predicate.SendLimiter
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.SendLimiter
- func WorkspaceIDEQ(v int64) predicate.SendLimiter
- func WorkspaceIDIn(vs ...int64) predicate.SendLimiter
- func WorkspaceIDNEQ(v int64) predicate.SendLimiter
- func WorkspaceIDNotIn(vs ...int64) predicate.SendLimiter
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDayFill(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIntegrationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByIntegrationID(opts ...sql.OrderTermOption) OrderOption
- func ByRefilledAt(opts ...sql.OrderTermOption) OrderOption
- func BySecondFill(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 sendlimiter type in the database. Label = "send_limiter" // 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" // FieldIntegrationID holds the string denoting the integration_id field in the database. FieldIntegrationID = "integration_id" // FieldSecondFill holds the string denoting the second_fill field in the database. FieldSecondFill = "second_fill" // FieldDayFill holds the string denoting the day_fill field in the database. FieldDayFill = "day_fill" // FieldRefilledAt holds the string denoting the refilled_at field in the database. FieldRefilledAt = "refilled_at" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeIntegration holds the string denoting the integration edge name in mutations. EdgeIntegration = "integration" // Table holds the table name of the sendlimiter in the database. Table = "send_limiters" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "send_limiters" // 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" // IntegrationTable is the table that holds the integration relation/edge. IntegrationTable = "send_limiters" // IntegrationInverseTable is the table name for the Integration entity. // It exists in this package in order to avoid circular dependency with the "integration" package. IntegrationInverseTable = "integrations" // IntegrationColumn is the table column denoting the integration relation/edge. IntegrationColumn = "integration_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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldIntegrationID, FieldSecondFill, FieldDayFill, FieldRefilledAt, }
Columns holds all SQL columns for sendlimiter fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SendLimiter) predicate.SendLimiter
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.SendLimiter
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.SendLimiter
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.SendLimiter
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.SendLimiter
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.SendLimiter
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.SendLimiter
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.SendLimiter
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.SendLimiter
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.SendLimiter
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DayFill ¶
func DayFill(v float64) predicate.SendLimiter
DayFill applies equality check predicate on the "day_fill" field. It's identical to DayFillEQ.
func DayFillEQ ¶
func DayFillEQ(v float64) predicate.SendLimiter
DayFillEQ applies the EQ predicate on the "day_fill" field.
func DayFillGT ¶
func DayFillGT(v float64) predicate.SendLimiter
DayFillGT applies the GT predicate on the "day_fill" field.
func DayFillGTE ¶
func DayFillGTE(v float64) predicate.SendLimiter
DayFillGTE applies the GTE predicate on the "day_fill" field.
func DayFillIn ¶
func DayFillIn(vs ...float64) predicate.SendLimiter
DayFillIn applies the In predicate on the "day_fill" field.
func DayFillLT ¶
func DayFillLT(v float64) predicate.SendLimiter
DayFillLT applies the LT predicate on the "day_fill" field.
func DayFillLTE ¶
func DayFillLTE(v float64) predicate.SendLimiter
DayFillLTE applies the LTE predicate on the "day_fill" field.
func DayFillNEQ ¶
func DayFillNEQ(v float64) predicate.SendLimiter
DayFillNEQ applies the NEQ predicate on the "day_fill" field.
func DayFillNotIn ¶
func DayFillNotIn(vs ...float64) predicate.SendLimiter
DayFillNotIn applies the NotIn predicate on the "day_fill" field.
func HasIntegration ¶
func HasIntegration() predicate.SendLimiter
HasIntegration applies the HasEdge predicate on the "integration" edge.
func HasIntegrationWith ¶
func HasIntegrationWith(preds ...predicate.Integration) predicate.SendLimiter
HasIntegrationWith applies the HasEdge predicate on the "integration" edge with a given conditions (other predicates).
func HasWorkspace ¶
func HasWorkspace() predicate.SendLimiter
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
func HasWorkspaceWith(preds ...predicate.Workspace) predicate.SendLimiter
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.SendLimiter
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.SendLimiter
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.SendLimiter
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.SendLimiter
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.SendLimiter
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.SendLimiter
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.SendLimiter
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.SendLimiter
IDNotIn applies the NotIn predicate on the ID field.
func IntegrationID ¶
func IntegrationID(v int64) predicate.SendLimiter
IntegrationID applies equality check predicate on the "integration_id" field. It's identical to IntegrationIDEQ.
func IntegrationIDEQ ¶
func IntegrationIDEQ(v int64) predicate.SendLimiter
IntegrationIDEQ applies the EQ predicate on the "integration_id" field.
func IntegrationIDIn ¶
func IntegrationIDIn(vs ...int64) predicate.SendLimiter
IntegrationIDIn applies the In predicate on the "integration_id" field.
func IntegrationIDNEQ ¶
func IntegrationIDNEQ(v int64) predicate.SendLimiter
IntegrationIDNEQ applies the NEQ predicate on the "integration_id" field.
func IntegrationIDNotIn ¶
func IntegrationIDNotIn(vs ...int64) predicate.SendLimiter
IntegrationIDNotIn applies the NotIn predicate on the "integration_id" field.
func Not ¶
func Not(p predicate.SendLimiter) predicate.SendLimiter
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SendLimiter) predicate.SendLimiter
Or groups predicates with the OR operator between them.
func RefilledAt ¶
func RefilledAt(v time.Time) predicate.SendLimiter
RefilledAt applies equality check predicate on the "refilled_at" field. It's identical to RefilledAtEQ.
func RefilledAtEQ ¶
func RefilledAtEQ(v time.Time) predicate.SendLimiter
RefilledAtEQ applies the EQ predicate on the "refilled_at" field.
func RefilledAtGT ¶
func RefilledAtGT(v time.Time) predicate.SendLimiter
RefilledAtGT applies the GT predicate on the "refilled_at" field.
func RefilledAtGTE ¶
func RefilledAtGTE(v time.Time) predicate.SendLimiter
RefilledAtGTE applies the GTE predicate on the "refilled_at" field.
func RefilledAtIn ¶
func RefilledAtIn(vs ...time.Time) predicate.SendLimiter
RefilledAtIn applies the In predicate on the "refilled_at" field.
func RefilledAtLT ¶
func RefilledAtLT(v time.Time) predicate.SendLimiter
RefilledAtLT applies the LT predicate on the "refilled_at" field.
func RefilledAtLTE ¶
func RefilledAtLTE(v time.Time) predicate.SendLimiter
RefilledAtLTE applies the LTE predicate on the "refilled_at" field.
func RefilledAtNEQ ¶
func RefilledAtNEQ(v time.Time) predicate.SendLimiter
RefilledAtNEQ applies the NEQ predicate on the "refilled_at" field.
func RefilledAtNotIn ¶
func RefilledAtNotIn(vs ...time.Time) predicate.SendLimiter
RefilledAtNotIn applies the NotIn predicate on the "refilled_at" field.
func SecondFill ¶
func SecondFill(v float64) predicate.SendLimiter
SecondFill applies equality check predicate on the "second_fill" field. It's identical to SecondFillEQ.
func SecondFillEQ ¶
func SecondFillEQ(v float64) predicate.SendLimiter
SecondFillEQ applies the EQ predicate on the "second_fill" field.
func SecondFillGT ¶
func SecondFillGT(v float64) predicate.SendLimiter
SecondFillGT applies the GT predicate on the "second_fill" field.
func SecondFillGTE ¶
func SecondFillGTE(v float64) predicate.SendLimiter
SecondFillGTE applies the GTE predicate on the "second_fill" field.
func SecondFillIn ¶
func SecondFillIn(vs ...float64) predicate.SendLimiter
SecondFillIn applies the In predicate on the "second_fill" field.
func SecondFillLT ¶
func SecondFillLT(v float64) predicate.SendLimiter
SecondFillLT applies the LT predicate on the "second_fill" field.
func SecondFillLTE ¶
func SecondFillLTE(v float64) predicate.SendLimiter
SecondFillLTE applies the LTE predicate on the "second_fill" field.
func SecondFillNEQ ¶
func SecondFillNEQ(v float64) predicate.SendLimiter
SecondFillNEQ applies the NEQ predicate on the "second_fill" field.
func SecondFillNotIn ¶
func SecondFillNotIn(vs ...float64) predicate.SendLimiter
SecondFillNotIn applies the NotIn predicate on the "second_fill" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.SendLimiter
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.SendLimiter
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.SendLimiter
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.SendLimiter
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.SendLimiter
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.SendLimiter
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.SendLimiter
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.SendLimiter
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.SendLimiter
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.SendLimiter
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
func WorkspaceIDEQ(v int64) predicate.SendLimiter
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
func WorkspaceIDIn(vs ...int64) predicate.SendLimiter
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
func WorkspaceIDNEQ(v int64) predicate.SendLimiter
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
func WorkspaceIDNotIn(vs ...int64) predicate.SendLimiter
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the SendLimiter queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDayFill ¶
func ByDayFill(opts ...sql.OrderTermOption) OrderOption
ByDayFill orders the results by the day_fill field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIntegrationField ¶
func ByIntegrationField(field string, opts ...sql.OrderTermOption) OrderOption
ByIntegrationField orders the results by integration field.
func ByIntegrationID ¶
func ByIntegrationID(opts ...sql.OrderTermOption) OrderOption
ByIntegrationID orders the results by the integration_id field.
func ByRefilledAt ¶
func ByRefilledAt(opts ...sql.OrderTermOption) OrderOption
ByRefilledAt orders the results by the refilled_at field.
func BySecondFill ¶
func BySecondFill(opts ...sql.OrderTermOption) OrderOption
BySecondFill orders the results by the second_fill 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.