Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Org
- func ActiveEQ(v bool) predicate.Org
- func ActiveNEQ(v bool) predicate.Org
- func And(predicates ...predicate.Org) predicate.Org
- func CreatedAt(v time.Time) predicate.Org
- func CreatedAtEQ(v time.Time) predicate.Org
- func CreatedAtGT(v time.Time) predicate.Org
- func CreatedAtGTE(v time.Time) predicate.Org
- func CreatedAtIn(vs ...time.Time) predicate.Org
- func CreatedAtLT(v time.Time) predicate.Org
- func CreatedAtLTE(v time.Time) predicate.Org
- func CreatedAtNEQ(v time.Time) predicate.Org
- func CreatedAtNotIn(vs ...time.Time) predicate.Org
- func HasProxies() predicate.Org
- func HasProxiesWith(preds ...predicate.Proxy) predicate.Org
- func HasUsers() predicate.Org
- func HasUsersWith(preds ...predicate.User) predicate.Org
- func ID(id int) predicate.Org
- func IDEQ(id int) predicate.Org
- func IDGT(id int) predicate.Org
- func IDGTE(id int) predicate.Org
- func IDIn(ids ...int) predicate.Org
- func IDLT(id int) predicate.Org
- func IDLTE(id int) predicate.Org
- func IDNEQ(id int) predicate.Org
- func IDNotIn(ids ...int) predicate.Org
- func MaxProxies(v int) predicate.Org
- func MaxProxiesEQ(v int) predicate.Org
- func MaxProxiesGT(v int) predicate.Org
- func MaxProxiesGTE(v int) predicate.Org
- func MaxProxiesIn(vs ...int) predicate.Org
- func MaxProxiesLT(v int) predicate.Org
- func MaxProxiesLTE(v int) predicate.Org
- func MaxProxiesNEQ(v int) predicate.Org
- func MaxProxiesNotIn(vs ...int) predicate.Org
- func Name(v string) predicate.Org
- func NameContains(v string) predicate.Org
- func NameContainsFold(v string) predicate.Org
- func NameEQ(v string) predicate.Org
- func NameEqualFold(v string) predicate.Org
- func NameGT(v string) predicate.Org
- func NameGTE(v string) predicate.Org
- func NameHasPrefix(v string) predicate.Org
- func NameHasSuffix(v string) predicate.Org
- func NameIn(vs ...string) predicate.Org
- func NameLT(v string) predicate.Org
- func NameLTE(v string) predicate.Org
- func NameNEQ(v string) predicate.Org
- func NameNotIn(vs ...string) predicate.Org
- func Not(p predicate.Org) predicate.Org
- func Or(predicates ...predicate.Org) predicate.Org
- func PlanEQ(v Plan) predicate.Org
- func PlanIn(vs ...Plan) predicate.Org
- func PlanNEQ(v Plan) predicate.Org
- func PlanNotIn(vs ...Plan) predicate.Org
- func PlanValidator(pl Plan) error
- func Slug(v string) predicate.Org
- func SlugContains(v string) predicate.Org
- func SlugContainsFold(v string) predicate.Org
- func SlugEQ(v string) predicate.Org
- func SlugEqualFold(v string) predicate.Org
- func SlugGT(v string) predicate.Org
- func SlugGTE(v string) predicate.Org
- func SlugHasPrefix(v string) predicate.Org
- func SlugHasSuffix(v string) predicate.Org
- func SlugIn(vs ...string) predicate.Org
- func SlugLT(v string) predicate.Org
- func SlugLTE(v string) predicate.Org
- func SlugNEQ(v string) predicate.Org
- func SlugNotIn(vs ...string) predicate.Org
- func TrafficRetentionDays(v int) predicate.Org
- func TrafficRetentionDaysEQ(v int) predicate.Org
- func TrafficRetentionDaysGT(v int) predicate.Org
- func TrafficRetentionDaysGTE(v int) predicate.Org
- func TrafficRetentionDaysIn(vs ...int) predicate.Org
- func TrafficRetentionDaysLT(v int) predicate.Org
- func TrafficRetentionDaysLTE(v int) predicate.Org
- func TrafficRetentionDaysNEQ(v int) predicate.Org
- func TrafficRetentionDaysNotIn(vs ...int) predicate.Org
- func UpdatedAt(v time.Time) predicate.Org
- func UpdatedAtEQ(v time.Time) predicate.Org
- func UpdatedAtGT(v time.Time) predicate.Org
- func UpdatedAtGTE(v time.Time) predicate.Org
- func UpdatedAtIn(vs ...time.Time) predicate.Org
- func UpdatedAtLT(v time.Time) predicate.Org
- func UpdatedAtLTE(v time.Time) predicate.Org
- func UpdatedAtNEQ(v time.Time) predicate.Org
- func UpdatedAtNotIn(vs ...time.Time) predicate.Org
- func ValidColumn(column string) bool
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxProxies(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPlan(opts ...sql.OrderTermOption) OrderOption
- func ByProxies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProxiesCount(opts ...sql.OrderTermOption) OrderOption
- func BySlug(opts ...sql.OrderTermOption) OrderOption
- func ByTrafficRetentionDays(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
- type Plan
Constants ¶
const ( // Label holds the string label denoting the org type in the database. Label = "org" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldPlan holds the string denoting the plan field in the database. FieldPlan = "plan" // FieldTrafficRetentionDays holds the string denoting the traffic_retention_days field in the database. FieldTrafficRetentionDays = "traffic_retention_days" // FieldMaxProxies holds the string denoting the max_proxies field in the database. FieldMaxProxies = "max_proxies" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // 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" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeProxies holds the string denoting the proxies edge name in mutations. EdgeProxies = "proxies" // Table holds the table name of the org in the database. Table = "orgs" // UsersTable is the table that holds the users relation/edge. UsersTable = "users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "org_users" // ProxiesTable is the table that holds the proxies relation/edge. ProxiesTable = "proxies" // ProxiesInverseTable is the table name for the Proxy entity. // It exists in this package in order to avoid circular dependency with the "proxy" package. ProxiesInverseTable = "proxies" // ProxiesColumn is the table column denoting the proxies relation/edge. ProxiesColumn = "org_proxies" )
const DefaultPlan = PlanFree
PlanFree is the default value of the Plan enum.
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // SlugValidator is a validator for the "slug" field. It is called by the builders before save. SlugValidator func(string) error // DefaultTrafficRetentionDays holds the default value on creation for the "traffic_retention_days" field. DefaultTrafficRetentionDays int // DefaultMaxProxies holds the default value on creation for the "max_proxies" field. DefaultMaxProxies int // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // 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, FieldName, FieldSlug, FieldPlan, FieldTrafficRetentionDays, FieldMaxProxies, FieldActive, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for org fields.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
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 HasProxies ¶
HasProxies applies the HasEdge predicate on the "proxies" edge.
func HasProxiesWith ¶
HasProxiesWith applies the HasEdge predicate on the "proxies" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func MaxProxies ¶
MaxProxies applies equality check predicate on the "max_proxies" field. It's identical to MaxProxiesEQ.
func MaxProxiesEQ ¶
MaxProxiesEQ applies the EQ predicate on the "max_proxies" field.
func MaxProxiesGT ¶
MaxProxiesGT applies the GT predicate on the "max_proxies" field.
func MaxProxiesGTE ¶
MaxProxiesGTE applies the GTE predicate on the "max_proxies" field.
func MaxProxiesIn ¶
MaxProxiesIn applies the In predicate on the "max_proxies" field.
func MaxProxiesLT ¶
MaxProxiesLT applies the LT predicate on the "max_proxies" field.
func MaxProxiesLTE ¶
MaxProxiesLTE applies the LTE predicate on the "max_proxies" field.
func MaxProxiesNEQ ¶
MaxProxiesNEQ applies the NEQ predicate on the "max_proxies" field.
func MaxProxiesNotIn ¶
MaxProxiesNotIn applies the NotIn predicate on the "max_proxies" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PlanValidator ¶
PlanValidator is a validator for the "plan" field enum values. It is called by the builders before save.
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
func TrafficRetentionDays ¶
TrafficRetentionDays applies equality check predicate on the "traffic_retention_days" field. It's identical to TrafficRetentionDaysEQ.
func TrafficRetentionDaysEQ ¶
TrafficRetentionDaysEQ applies the EQ predicate on the "traffic_retention_days" field.
func TrafficRetentionDaysGT ¶
TrafficRetentionDaysGT applies the GT predicate on the "traffic_retention_days" field.
func TrafficRetentionDaysGTE ¶
TrafficRetentionDaysGTE applies the GTE predicate on the "traffic_retention_days" field.
func TrafficRetentionDaysIn ¶
TrafficRetentionDaysIn applies the In predicate on the "traffic_retention_days" field.
func TrafficRetentionDaysLT ¶
TrafficRetentionDaysLT applies the LT predicate on the "traffic_retention_days" field.
func TrafficRetentionDaysLTE ¶
TrafficRetentionDaysLTE applies the LTE predicate on the "traffic_retention_days" field.
func TrafficRetentionDaysNEQ ¶
TrafficRetentionDaysNEQ applies the NEQ predicate on the "traffic_retention_days" field.
func TrafficRetentionDaysNotIn ¶
TrafficRetentionDaysNotIn applies the NotIn predicate on the "traffic_retention_days" 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 Org queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
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 ByMaxProxies ¶
func ByMaxProxies(opts ...sql.OrderTermOption) OrderOption
ByMaxProxies orders the results by the max_proxies field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPlan ¶
func ByPlan(opts ...sql.OrderTermOption) OrderOption
ByPlan orders the results by the plan field.
func ByProxies ¶
func ByProxies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProxies orders the results by proxies terms.
func ByProxiesCount ¶
func ByProxiesCount(opts ...sql.OrderTermOption) OrderOption
ByProxiesCount orders the results by proxies count.
func BySlug ¶
func BySlug(opts ...sql.OrderTermOption) OrderOption
BySlug orders the results by the slug field.
func ByTrafficRetentionDays ¶
func ByTrafficRetentionDays(opts ...sql.OrderTermOption) OrderOption
ByTrafficRetentionDays orders the results by the traffic_retention_days field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.