feat: ent ORM, admin UI, client auth, Fyne GUI, Windows/MSI packaging
This commit is contained in:
@@ -0,0 +1,152 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package proxy
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the proxy type in the database.
|
||||
Label = "proxy"
|
||||
// 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"
|
||||
// FieldProxyType holds the string denoting the proxy_type field in the database.
|
||||
FieldProxyType = "proxy_type"
|
||||
// FieldLocalIP holds the string denoting the local_ip field in the database.
|
||||
FieldLocalIP = "local_ip"
|
||||
// FieldLocalPort holds the string denoting the local_port field in the database.
|
||||
FieldLocalPort = "local_port"
|
||||
// FieldRemotePort holds the string denoting the remote_port field in the database.
|
||||
FieldRemotePort = "remote_port"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldCustomDomains holds the string denoting the custom_domains field in the database.
|
||||
FieldCustomDomains = "custom_domains"
|
||||
// FieldMetadata holds the string denoting the metadata field in the database.
|
||||
FieldMetadata = "metadata"
|
||||
// FieldClientID holds the string denoting the client_id field in the database.
|
||||
FieldClientID = "client_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"
|
||||
// Table holds the table name of the proxy in the database.
|
||||
Table = "proxies"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for proxy fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldName,
|
||||
FieldProxyType,
|
||||
FieldLocalIP,
|
||||
FieldLocalPort,
|
||||
FieldRemotePort,
|
||||
FieldStatus,
|
||||
FieldCustomDomains,
|
||||
FieldMetadata,
|
||||
FieldClientID,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultProxyType holds the default value on creation for the "proxy_type" field.
|
||||
DefaultProxyType string
|
||||
// DefaultLocalIP holds the default value on creation for the "local_ip" field.
|
||||
DefaultLocalIP string
|
||||
// DefaultRemotePort holds the default value on creation for the "remote_port" field.
|
||||
DefaultRemotePort int
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// DefaultCustomDomains holds the default value on creation for the "custom_domains" field.
|
||||
DefaultCustomDomains string
|
||||
// DefaultMetadata holds the default value on creation for the "metadata" field.
|
||||
DefaultMetadata string
|
||||
// DefaultClientID holds the default value on creation for the "client_id" field.
|
||||
DefaultClientID int
|
||||
// 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
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Proxy queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProxyType orders the results by the proxy_type field.
|
||||
func ByProxyType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProxyType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLocalIP orders the results by the local_ip field.
|
||||
func ByLocalIP(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLocalIP, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLocalPort orders the results by the local_port field.
|
||||
func ByLocalPort(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLocalPort, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemotePort orders the results by the remote_port field.
|
||||
func ByRemotePort(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemotePort, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCustomDomains orders the results by the custom_domains field.
|
||||
func ByCustomDomains(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCustomDomains, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMetadata orders the results by the metadata field.
|
||||
func ByMetadata(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMetadata, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByClientID orders the results by the client_id field.
|
||||
func ByClientID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldClientID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,715 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package proxy
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"github.com/fatedier/frp/pkg/db/ent/predicate"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||||
func Name(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// ProxyType applies equality check predicate on the "proxy_type" field. It's identical to ProxyTypeEQ.
|
||||
func ProxyType(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// LocalIP applies equality check predicate on the "local_ip" field. It's identical to LocalIPEQ.
|
||||
func LocalIP(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalPort applies equality check predicate on the "local_port" field. It's identical to LocalPortEQ.
|
||||
func LocalPort(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldLocalPort, v))
|
||||
}
|
||||
|
||||
// RemotePort applies equality check predicate on the "remote_port" field. It's identical to RemotePortEQ.
|
||||
func RemotePort(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldRemotePort, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CustomDomains applies equality check predicate on the "custom_domains" field. It's identical to CustomDomainsEQ.
|
||||
func CustomDomains(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// Metadata applies equality check predicate on the "metadata" field. It's identical to MetadataEQ.
|
||||
func Metadata(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
|
||||
func ClientID(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldClientID, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// NameEQ applies the EQ predicate on the "name" field.
|
||||
func NameEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameNEQ applies the NEQ predicate on the "name" field.
|
||||
func NameNEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIn applies the In predicate on the "name" field.
|
||||
func NameIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameNotIn applies the NotIn predicate on the "name" field.
|
||||
func NameNotIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameGT applies the GT predicate on the "name" field.
|
||||
func NameGT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameGTE applies the GTE predicate on the "name" field.
|
||||
func NameGTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLT applies the LT predicate on the "name" field.
|
||||
func NameLT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLTE applies the LTE predicate on the "name" field.
|
||||
func NameLTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContains applies the Contains predicate on the "name" field.
|
||||
func NameContains(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContains(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||||
func NameHasPrefix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasPrefix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||||
func NameHasSuffix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasSuffix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||||
func NameEqualFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEqualFold(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||||
func NameContainsFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// ProxyTypeEQ applies the EQ predicate on the "proxy_type" field.
|
||||
func ProxyTypeEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeNEQ applies the NEQ predicate on the "proxy_type" field.
|
||||
func ProxyTypeNEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeIn applies the In predicate on the "proxy_type" field.
|
||||
func ProxyTypeIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldProxyType, vs...))
|
||||
}
|
||||
|
||||
// ProxyTypeNotIn applies the NotIn predicate on the "proxy_type" field.
|
||||
func ProxyTypeNotIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldProxyType, vs...))
|
||||
}
|
||||
|
||||
// ProxyTypeGT applies the GT predicate on the "proxy_type" field.
|
||||
func ProxyTypeGT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeGTE applies the GTE predicate on the "proxy_type" field.
|
||||
func ProxyTypeGTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeLT applies the LT predicate on the "proxy_type" field.
|
||||
func ProxyTypeLT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeLTE applies the LTE predicate on the "proxy_type" field.
|
||||
func ProxyTypeLTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeContains applies the Contains predicate on the "proxy_type" field.
|
||||
func ProxyTypeContains(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContains(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeHasPrefix applies the HasPrefix predicate on the "proxy_type" field.
|
||||
func ProxyTypeHasPrefix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasPrefix(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeHasSuffix applies the HasSuffix predicate on the "proxy_type" field.
|
||||
func ProxyTypeHasSuffix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasSuffix(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeEqualFold applies the EqualFold predicate on the "proxy_type" field.
|
||||
func ProxyTypeEqualFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEqualFold(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// ProxyTypeContainsFold applies the ContainsFold predicate on the "proxy_type" field.
|
||||
func ProxyTypeContainsFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContainsFold(FieldProxyType, v))
|
||||
}
|
||||
|
||||
// LocalIPEQ applies the EQ predicate on the "local_ip" field.
|
||||
func LocalIPEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPNEQ applies the NEQ predicate on the "local_ip" field.
|
||||
func LocalIPNEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPIn applies the In predicate on the "local_ip" field.
|
||||
func LocalIPIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldLocalIP, vs...))
|
||||
}
|
||||
|
||||
// LocalIPNotIn applies the NotIn predicate on the "local_ip" field.
|
||||
func LocalIPNotIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldLocalIP, vs...))
|
||||
}
|
||||
|
||||
// LocalIPGT applies the GT predicate on the "local_ip" field.
|
||||
func LocalIPGT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPGTE applies the GTE predicate on the "local_ip" field.
|
||||
func LocalIPGTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPLT applies the LT predicate on the "local_ip" field.
|
||||
func LocalIPLT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPLTE applies the LTE predicate on the "local_ip" field.
|
||||
func LocalIPLTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPContains applies the Contains predicate on the "local_ip" field.
|
||||
func LocalIPContains(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContains(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPHasPrefix applies the HasPrefix predicate on the "local_ip" field.
|
||||
func LocalIPHasPrefix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasPrefix(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPHasSuffix applies the HasSuffix predicate on the "local_ip" field.
|
||||
func LocalIPHasSuffix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasSuffix(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPEqualFold applies the EqualFold predicate on the "local_ip" field.
|
||||
func LocalIPEqualFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEqualFold(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalIPContainsFold applies the ContainsFold predicate on the "local_ip" field.
|
||||
func LocalIPContainsFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContainsFold(FieldLocalIP, v))
|
||||
}
|
||||
|
||||
// LocalPortEQ applies the EQ predicate on the "local_port" field.
|
||||
func LocalPortEQ(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldLocalPort, v))
|
||||
}
|
||||
|
||||
// LocalPortNEQ applies the NEQ predicate on the "local_port" field.
|
||||
func LocalPortNEQ(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldLocalPort, v))
|
||||
}
|
||||
|
||||
// LocalPortIn applies the In predicate on the "local_port" field.
|
||||
func LocalPortIn(vs ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldLocalPort, vs...))
|
||||
}
|
||||
|
||||
// LocalPortNotIn applies the NotIn predicate on the "local_port" field.
|
||||
func LocalPortNotIn(vs ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldLocalPort, vs...))
|
||||
}
|
||||
|
||||
// LocalPortGT applies the GT predicate on the "local_port" field.
|
||||
func LocalPortGT(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldLocalPort, v))
|
||||
}
|
||||
|
||||
// LocalPortGTE applies the GTE predicate on the "local_port" field.
|
||||
func LocalPortGTE(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldLocalPort, v))
|
||||
}
|
||||
|
||||
// LocalPortLT applies the LT predicate on the "local_port" field.
|
||||
func LocalPortLT(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldLocalPort, v))
|
||||
}
|
||||
|
||||
// LocalPortLTE applies the LTE predicate on the "local_port" field.
|
||||
func LocalPortLTE(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldLocalPort, v))
|
||||
}
|
||||
|
||||
// RemotePortEQ applies the EQ predicate on the "remote_port" field.
|
||||
func RemotePortEQ(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldRemotePort, v))
|
||||
}
|
||||
|
||||
// RemotePortNEQ applies the NEQ predicate on the "remote_port" field.
|
||||
func RemotePortNEQ(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldRemotePort, v))
|
||||
}
|
||||
|
||||
// RemotePortIn applies the In predicate on the "remote_port" field.
|
||||
func RemotePortIn(vs ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldRemotePort, vs...))
|
||||
}
|
||||
|
||||
// RemotePortNotIn applies the NotIn predicate on the "remote_port" field.
|
||||
func RemotePortNotIn(vs ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldRemotePort, vs...))
|
||||
}
|
||||
|
||||
// RemotePortGT applies the GT predicate on the "remote_port" field.
|
||||
func RemotePortGT(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldRemotePort, v))
|
||||
}
|
||||
|
||||
// RemotePortGTE applies the GTE predicate on the "remote_port" field.
|
||||
func RemotePortGTE(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldRemotePort, v))
|
||||
}
|
||||
|
||||
// RemotePortLT applies the LT predicate on the "remote_port" field.
|
||||
func RemotePortLT(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldRemotePort, v))
|
||||
}
|
||||
|
||||
// RemotePortLTE applies the LTE predicate on the "remote_port" field.
|
||||
func RemotePortLTE(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldRemotePort, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CustomDomainsEQ applies the EQ predicate on the "custom_domains" field.
|
||||
func CustomDomainsEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsNEQ applies the NEQ predicate on the "custom_domains" field.
|
||||
func CustomDomainsNEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsIn applies the In predicate on the "custom_domains" field.
|
||||
func CustomDomainsIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldCustomDomains, vs...))
|
||||
}
|
||||
|
||||
// CustomDomainsNotIn applies the NotIn predicate on the "custom_domains" field.
|
||||
func CustomDomainsNotIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldCustomDomains, vs...))
|
||||
}
|
||||
|
||||
// CustomDomainsGT applies the GT predicate on the "custom_domains" field.
|
||||
func CustomDomainsGT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsGTE applies the GTE predicate on the "custom_domains" field.
|
||||
func CustomDomainsGTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsLT applies the LT predicate on the "custom_domains" field.
|
||||
func CustomDomainsLT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsLTE applies the LTE predicate on the "custom_domains" field.
|
||||
func CustomDomainsLTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsContains applies the Contains predicate on the "custom_domains" field.
|
||||
func CustomDomainsContains(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContains(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsHasPrefix applies the HasPrefix predicate on the "custom_domains" field.
|
||||
func CustomDomainsHasPrefix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasPrefix(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsHasSuffix applies the HasSuffix predicate on the "custom_domains" field.
|
||||
func CustomDomainsHasSuffix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasSuffix(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsEqualFold applies the EqualFold predicate on the "custom_domains" field.
|
||||
func CustomDomainsEqualFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEqualFold(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// CustomDomainsContainsFold applies the ContainsFold predicate on the "custom_domains" field.
|
||||
func CustomDomainsContainsFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContainsFold(FieldCustomDomains, v))
|
||||
}
|
||||
|
||||
// MetadataEQ applies the EQ predicate on the "metadata" field.
|
||||
func MetadataEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataNEQ applies the NEQ predicate on the "metadata" field.
|
||||
func MetadataNEQ(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataIn applies the In predicate on the "metadata" field.
|
||||
func MetadataIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldMetadata, vs...))
|
||||
}
|
||||
|
||||
// MetadataNotIn applies the NotIn predicate on the "metadata" field.
|
||||
func MetadataNotIn(vs ...string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldMetadata, vs...))
|
||||
}
|
||||
|
||||
// MetadataGT applies the GT predicate on the "metadata" field.
|
||||
func MetadataGT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataGTE applies the GTE predicate on the "metadata" field.
|
||||
func MetadataGTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataLT applies the LT predicate on the "metadata" field.
|
||||
func MetadataLT(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataLTE applies the LTE predicate on the "metadata" field.
|
||||
func MetadataLTE(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataContains applies the Contains predicate on the "metadata" field.
|
||||
func MetadataContains(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContains(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataHasPrefix applies the HasPrefix predicate on the "metadata" field.
|
||||
func MetadataHasPrefix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasPrefix(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataHasSuffix applies the HasSuffix predicate on the "metadata" field.
|
||||
func MetadataHasSuffix(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldHasSuffix(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataEqualFold applies the EqualFold predicate on the "metadata" field.
|
||||
func MetadataEqualFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEqualFold(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// MetadataContainsFold applies the ContainsFold predicate on the "metadata" field.
|
||||
func MetadataContainsFold(v string) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldContainsFold(FieldMetadata, v))
|
||||
}
|
||||
|
||||
// ClientIDEQ applies the EQ predicate on the "client_id" field.
|
||||
func ClientIDEQ(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldClientID, v))
|
||||
}
|
||||
|
||||
// ClientIDNEQ applies the NEQ predicate on the "client_id" field.
|
||||
func ClientIDNEQ(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldClientID, v))
|
||||
}
|
||||
|
||||
// ClientIDIn applies the In predicate on the "client_id" field.
|
||||
func ClientIDIn(vs ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldClientID, vs...))
|
||||
}
|
||||
|
||||
// ClientIDNotIn applies the NotIn predicate on the "client_id" field.
|
||||
func ClientIDNotIn(vs ...int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldClientID, vs...))
|
||||
}
|
||||
|
||||
// ClientIDGT applies the GT predicate on the "client_id" field.
|
||||
func ClientIDGT(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldClientID, v))
|
||||
}
|
||||
|
||||
// ClientIDGTE applies the GTE predicate on the "client_id" field.
|
||||
func ClientIDGTE(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldClientID, v))
|
||||
}
|
||||
|
||||
// ClientIDLT applies the LT predicate on the "client_id" field.
|
||||
func ClientIDLT(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldClientID, v))
|
||||
}
|
||||
|
||||
// ClientIDLTE applies the LTE predicate on the "client_id" field.
|
||||
func ClientIDLTE(v int) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldClientID, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.Proxy {
|
||||
return predicate.Proxy(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.Proxy) predicate.Proxy {
|
||||
return predicate.Proxy(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.Proxy) predicate.Proxy {
|
||||
return predicate.Proxy(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.Proxy) predicate.Proxy {
|
||||
return predicate.Proxy(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user