Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Proxy
- func ActiveEQ(v bool) predicate.Proxy
- func ActiveNEQ(v bool) predicate.Proxy
- func And(predicates ...predicate.Proxy) predicate.Proxy
- func CreatedAt(v time.Time) predicate.Proxy
- func CreatedAtEQ(v time.Time) predicate.Proxy
- func CreatedAtGT(v time.Time) predicate.Proxy
- func CreatedAtGTE(v time.Time) predicate.Proxy
- func CreatedAtIn(vs ...time.Time) predicate.Proxy
- func CreatedAtLT(v time.Time) predicate.Proxy
- func CreatedAtLTE(v time.Time) predicate.Proxy
- func CreatedAtNEQ(v time.Time) predicate.Proxy
- func CreatedAtNotIn(vs ...time.Time) predicate.Proxy
- func ExcludeHostsIsNil() predicate.Proxy
- func ExcludeHostsNotNil() predicate.Proxy
- func ExcludePathsIsNil() predicate.Proxy
- func ExcludePathsNotNil() predicate.Proxy
- func HasOrg() predicate.Proxy
- func HasOrgWith(preds ...predicate.Org) predicate.Proxy
- func HasTraffic() predicate.Proxy
- func HasTrafficWith(preds ...predicate.Traffic) predicate.Proxy
- func Host(v string) predicate.Proxy
- func HostContains(v string) predicate.Proxy
- func HostContainsFold(v string) predicate.Proxy
- func HostEQ(v string) predicate.Proxy
- func HostEqualFold(v string) predicate.Proxy
- func HostGT(v string) predicate.Proxy
- func HostGTE(v string) predicate.Proxy
- func HostHasPrefix(v string) predicate.Proxy
- func HostHasSuffix(v string) predicate.Proxy
- func HostIn(vs ...string) predicate.Proxy
- func HostLT(v string) predicate.Proxy
- func HostLTE(v string) predicate.Proxy
- func HostNEQ(v string) predicate.Proxy
- func HostNotIn(vs ...string) predicate.Proxy
- func ID(id int) predicate.Proxy
- func IDEQ(id int) predicate.Proxy
- func IDGT(id int) predicate.Proxy
- func IDGTE(id int) predicate.Proxy
- func IDIn(ids ...int) predicate.Proxy
- func IDLT(id int) predicate.Proxy
- func IDLTE(id int) predicate.Proxy
- func IDNEQ(id int) predicate.Proxy
- func IDNotIn(ids ...int) predicate.Proxy
- func IncludeHostsIsNil() predicate.Proxy
- func IncludeHostsNotNil() predicate.Proxy
- func IncludePathsIsNil() predicate.Proxy
- func IncludePathsNotNil() predicate.Proxy
- func LastStartedAt(v time.Time) predicate.Proxy
- func LastStartedAtEQ(v time.Time) predicate.Proxy
- func LastStartedAtGT(v time.Time) predicate.Proxy
- func LastStartedAtGTE(v time.Time) predicate.Proxy
- func LastStartedAtIn(vs ...time.Time) predicate.Proxy
- func LastStartedAtIsNil() predicate.Proxy
- func LastStartedAtLT(v time.Time) predicate.Proxy
- func LastStartedAtLTE(v time.Time) predicate.Proxy
- func LastStartedAtNEQ(v time.Time) predicate.Proxy
- func LastStartedAtNotIn(vs ...time.Time) predicate.Proxy
- func LastStartedAtNotNil() predicate.Proxy
- func MitmEnabled(v bool) predicate.Proxy
- func MitmEnabledEQ(v bool) predicate.Proxy
- func MitmEnabledNEQ(v bool) predicate.Proxy
- func ModeEQ(v Mode) predicate.Proxy
- func ModeIn(vs ...Mode) predicate.Proxy
- func ModeNEQ(v Mode) predicate.Proxy
- func ModeNotIn(vs ...Mode) predicate.Proxy
- func ModeValidator(m Mode) error
- func Name(v string) predicate.Proxy
- func NameContains(v string) predicate.Proxy
- func NameContainsFold(v string) predicate.Proxy
- func NameEQ(v string) predicate.Proxy
- func NameEqualFold(v string) predicate.Proxy
- func NameGT(v string) predicate.Proxy
- func NameGTE(v string) predicate.Proxy
- func NameHasPrefix(v string) predicate.Proxy
- func NameHasSuffix(v string) predicate.Proxy
- func NameIn(vs ...string) predicate.Proxy
- func NameLT(v string) predicate.Proxy
- func NameLTE(v string) predicate.Proxy
- func NameNEQ(v string) predicate.Proxy
- func NameNotIn(vs ...string) predicate.Proxy
- func Not(p predicate.Proxy) predicate.Proxy
- func Or(predicates ...predicate.Proxy) predicate.Proxy
- func Port(v int) predicate.Proxy
- func PortEQ(v int) predicate.Proxy
- func PortGT(v int) predicate.Proxy
- func PortGTE(v int) predicate.Proxy
- func PortIn(vs ...int) predicate.Proxy
- func PortLT(v int) predicate.Proxy
- func PortLTE(v int) predicate.Proxy
- func PortNEQ(v int) predicate.Proxy
- func PortNotIn(vs ...int) predicate.Proxy
- func SkipBinary(v bool) predicate.Proxy
- func SkipBinaryEQ(v bool) predicate.Proxy
- func SkipBinaryNEQ(v bool) predicate.Proxy
- func SkipHostsIsNil() predicate.Proxy
- func SkipHostsNotNil() predicate.Proxy
- func Slug(v string) predicate.Proxy
- func SlugContains(v string) predicate.Proxy
- func SlugContainsFold(v string) predicate.Proxy
- func SlugEQ(v string) predicate.Proxy
- func SlugEqualFold(v string) predicate.Proxy
- func SlugGT(v string) predicate.Proxy
- func SlugGTE(v string) predicate.Proxy
- func SlugHasPrefix(v string) predicate.Proxy
- func SlugHasSuffix(v string) predicate.Proxy
- func SlugIn(vs ...string) predicate.Proxy
- func SlugLT(v string) predicate.Proxy
- func SlugLTE(v string) predicate.Proxy
- func SlugNEQ(v string) predicate.Proxy
- func SlugNotIn(vs ...string) predicate.Proxy
- func UpdatedAt(v time.Time) predicate.Proxy
- func UpdatedAtEQ(v time.Time) predicate.Proxy
- func UpdatedAtGT(v time.Time) predicate.Proxy
- func UpdatedAtGTE(v time.Time) predicate.Proxy
- func UpdatedAtIn(vs ...time.Time) predicate.Proxy
- func UpdatedAtLT(v time.Time) predicate.Proxy
- func UpdatedAtLTE(v time.Time) predicate.Proxy
- func UpdatedAtNEQ(v time.Time) predicate.Proxy
- func UpdatedAtNotIn(vs ...time.Time) predicate.Proxy
- func Upstream(v string) predicate.Proxy
- func UpstreamContains(v string) predicate.Proxy
- func UpstreamContainsFold(v string) predicate.Proxy
- func UpstreamEQ(v string) predicate.Proxy
- func UpstreamEqualFold(v string) predicate.Proxy
- func UpstreamGT(v string) predicate.Proxy
- func UpstreamGTE(v string) predicate.Proxy
- func UpstreamHasPrefix(v string) predicate.Proxy
- func UpstreamHasSuffix(v string) predicate.Proxy
- func UpstreamIn(vs ...string) predicate.Proxy
- func UpstreamIsNil() predicate.Proxy
- func UpstreamLT(v string) predicate.Proxy
- func UpstreamLTE(v string) predicate.Proxy
- func UpstreamNEQ(v string) predicate.Proxy
- func UpstreamNotIn(vs ...string) predicate.Proxy
- func UpstreamNotNil() predicate.Proxy
- func ValidColumn(column string) bool
- type Mode
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHost(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByMitmEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByMode(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPort(opts ...sql.OrderTermOption) OrderOption
- func BySkipBinary(opts ...sql.OrderTermOption) OrderOption
- func BySlug(opts ...sql.OrderTermOption) OrderOption
- func ByTraffic(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTrafficCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpstream(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldMode holds the string denoting the mode field in the database. FieldMode = "mode" // FieldPort holds the string denoting the port field in the database. FieldPort = "port" // FieldHost holds the string denoting the host field in the database. FieldHost = "host" // FieldMitmEnabled holds the string denoting the mitm_enabled field in the database. FieldMitmEnabled = "mitm_enabled" // FieldSkipHosts holds the string denoting the skip_hosts field in the database. FieldSkipHosts = "skip_hosts" // FieldIncludeHosts holds the string denoting the include_hosts field in the database. FieldIncludeHosts = "include_hosts" // FieldExcludeHosts holds the string denoting the exclude_hosts field in the database. FieldExcludeHosts = "exclude_hosts" // FieldIncludePaths holds the string denoting the include_paths field in the database. FieldIncludePaths = "include_paths" // FieldExcludePaths holds the string denoting the exclude_paths field in the database. FieldExcludePaths = "exclude_paths" // FieldUpstream holds the string denoting the upstream field in the database. FieldUpstream = "upstream" // FieldSkipBinary holds the string denoting the skip_binary field in the database. FieldSkipBinary = "skip_binary" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldLastStartedAt holds the string denoting the last_started_at field in the database. FieldLastStartedAt = "last_started_at" // 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" // EdgeOrg holds the string denoting the org edge name in mutations. EdgeOrg = "org" // EdgeTraffic holds the string denoting the traffic edge name in mutations. EdgeTraffic = "traffic" // Table holds the table name of the proxy in the database. Table = "proxies" // OrgTable is the table that holds the org relation/edge. OrgTable = "proxies" // OrgInverseTable is the table name for the Org entity. // It exists in this package in order to avoid circular dependency with the "org" package. OrgInverseTable = "orgs" // OrgColumn is the table column denoting the org relation/edge. OrgColumn = "org_proxies" // TrafficTable is the table that holds the traffic relation/edge. TrafficTable = "traffics" // TrafficInverseTable is the table name for the Traffic entity. // It exists in this package in order to avoid circular dependency with the "traffic" package. TrafficInverseTable = "traffics" // TrafficColumn is the table column denoting the traffic relation/edge. TrafficColumn = "proxy_traffic" )
const DefaultMode = ModeForward
ModeForward is the default value of the Mode 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 // DefaultPort holds the default value on creation for the "port" field. DefaultPort int // DefaultHost holds the default value on creation for the "host" field. DefaultHost string // DefaultMitmEnabled holds the default value on creation for the "mitm_enabled" field. DefaultMitmEnabled bool // DefaultSkipBinary holds the default value on creation for the "skip_binary" field. DefaultSkipBinary bool // 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, FieldMode, FieldPort, FieldHost, FieldMitmEnabled, FieldSkipHosts, FieldIncludeHosts, FieldExcludeHosts, FieldIncludePaths, FieldExcludePaths, FieldUpstream, FieldSkipBinary, FieldActive, FieldLastStartedAt, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for proxy fields.
var ForeignKeys = []string{
"org_proxies",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "proxies" table and are not defined as standalone fields in the schema.
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 ExcludeHostsIsNil ¶
ExcludeHostsIsNil applies the IsNil predicate on the "exclude_hosts" field.
func ExcludeHostsNotNil ¶
ExcludeHostsNotNil applies the NotNil predicate on the "exclude_hosts" field.
func ExcludePathsIsNil ¶
ExcludePathsIsNil applies the IsNil predicate on the "exclude_paths" field.
func ExcludePathsNotNil ¶
ExcludePathsNotNil applies the NotNil predicate on the "exclude_paths" field.
func HasOrgWith ¶
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func HasTraffic ¶
HasTraffic applies the HasEdge predicate on the "traffic" edge.
func HasTrafficWith ¶
HasTrafficWith applies the HasEdge predicate on the "traffic" edge with a given conditions (other predicates).
func HostContains ¶
HostContains applies the Contains predicate on the "host" field.
func HostContainsFold ¶
HostContainsFold applies the ContainsFold predicate on the "host" field.
func HostEqualFold ¶
HostEqualFold applies the EqualFold predicate on the "host" field.
func HostHasPrefix ¶
HostHasPrefix applies the HasPrefix predicate on the "host" field.
func HostHasSuffix ¶
HostHasSuffix applies the HasSuffix predicate on the "host" field.
func IncludeHostsIsNil ¶
IncludeHostsIsNil applies the IsNil predicate on the "include_hosts" field.
func IncludeHostsNotNil ¶
IncludeHostsNotNil applies the NotNil predicate on the "include_hosts" field.
func IncludePathsIsNil ¶
IncludePathsIsNil applies the IsNil predicate on the "include_paths" field.
func IncludePathsNotNil ¶
IncludePathsNotNil applies the NotNil predicate on the "include_paths" field.
func LastStartedAt ¶
LastStartedAt applies equality check predicate on the "last_started_at" field. It's identical to LastStartedAtEQ.
func LastStartedAtEQ ¶
LastStartedAtEQ applies the EQ predicate on the "last_started_at" field.
func LastStartedAtGT ¶
LastStartedAtGT applies the GT predicate on the "last_started_at" field.
func LastStartedAtGTE ¶
LastStartedAtGTE applies the GTE predicate on the "last_started_at" field.
func LastStartedAtIn ¶
LastStartedAtIn applies the In predicate on the "last_started_at" field.
func LastStartedAtIsNil ¶
LastStartedAtIsNil applies the IsNil predicate on the "last_started_at" field.
func LastStartedAtLT ¶
LastStartedAtLT applies the LT predicate on the "last_started_at" field.
func LastStartedAtLTE ¶
LastStartedAtLTE applies the LTE predicate on the "last_started_at" field.
func LastStartedAtNEQ ¶
LastStartedAtNEQ applies the NEQ predicate on the "last_started_at" field.
func LastStartedAtNotIn ¶
LastStartedAtNotIn applies the NotIn predicate on the "last_started_at" field.
func LastStartedAtNotNil ¶
LastStartedAtNotNil applies the NotNil predicate on the "last_started_at" field.
func MitmEnabled ¶
MitmEnabled applies equality check predicate on the "mitm_enabled" field. It's identical to MitmEnabledEQ.
func MitmEnabledEQ ¶
MitmEnabledEQ applies the EQ predicate on the "mitm_enabled" field.
func MitmEnabledNEQ ¶
MitmEnabledNEQ applies the NEQ predicate on the "mitm_enabled" field.
func ModeValidator ¶
ModeValidator is a validator for the "mode" field enum values. It is called by the builders before save.
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 SkipBinary ¶
SkipBinary applies equality check predicate on the "skip_binary" field. It's identical to SkipBinaryEQ.
func SkipBinaryEQ ¶
SkipBinaryEQ applies the EQ predicate on the "skip_binary" field.
func SkipBinaryNEQ ¶
SkipBinaryNEQ applies the NEQ predicate on the "skip_binary" field.
func SkipHostsIsNil ¶
SkipHostsIsNil applies the IsNil predicate on the "skip_hosts" field.
func SkipHostsNotNil ¶
SkipHostsNotNil applies the NotNil predicate on the "skip_hosts" field.
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 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 Upstream ¶
Upstream applies equality check predicate on the "upstream" field. It's identical to UpstreamEQ.
func UpstreamContains ¶
UpstreamContains applies the Contains predicate on the "upstream" field.
func UpstreamContainsFold ¶
UpstreamContainsFold applies the ContainsFold predicate on the "upstream" field.
func UpstreamEQ ¶
UpstreamEQ applies the EQ predicate on the "upstream" field.
func UpstreamEqualFold ¶
UpstreamEqualFold applies the EqualFold predicate on the "upstream" field.
func UpstreamGT ¶
UpstreamGT applies the GT predicate on the "upstream" field.
func UpstreamGTE ¶
UpstreamGTE applies the GTE predicate on the "upstream" field.
func UpstreamHasPrefix ¶
UpstreamHasPrefix applies the HasPrefix predicate on the "upstream" field.
func UpstreamHasSuffix ¶
UpstreamHasSuffix applies the HasSuffix predicate on the "upstream" field.
func UpstreamIn ¶
UpstreamIn applies the In predicate on the "upstream" field.
func UpstreamIsNil ¶
UpstreamIsNil applies the IsNil predicate on the "upstream" field.
func UpstreamLT ¶
UpstreamLT applies the LT predicate on the "upstream" field.
func UpstreamLTE ¶
UpstreamLTE applies the LTE predicate on the "upstream" field.
func UpstreamNEQ ¶
UpstreamNEQ applies the NEQ predicate on the "upstream" field.
func UpstreamNotIn ¶
UpstreamNotIn applies the NotIn predicate on the "upstream" field.
func UpstreamNotNil ¶
UpstreamNotNil applies the NotNil predicate on the "upstream" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Mode ¶
type Mode string
Mode defines the type for the "mode" enum field.
type OrderOption ¶
OrderOption defines the ordering options for the Proxy 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 ByHost ¶
func ByHost(opts ...sql.OrderTermOption) OrderOption
ByHost orders the results by the host field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastStartedAt ¶
func ByLastStartedAt(opts ...sql.OrderTermOption) OrderOption
ByLastStartedAt orders the results by the last_started_at field.
func ByMitmEnabled ¶
func ByMitmEnabled(opts ...sql.OrderTermOption) OrderOption
ByMitmEnabled orders the results by the mitm_enabled field.
func ByMode ¶
func ByMode(opts ...sql.OrderTermOption) OrderOption
ByMode orders the results by the mode field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrgField ¶
func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrgField orders the results by org field.
func ByPort ¶
func ByPort(opts ...sql.OrderTermOption) OrderOption
ByPort orders the results by the port field.
func BySkipBinary ¶
func BySkipBinary(opts ...sql.OrderTermOption) OrderOption
BySkipBinary orders the results by the skip_binary field.
func BySlug ¶
func BySlug(opts ...sql.OrderTermOption) OrderOption
BySlug orders the results by the slug field.
func ByTraffic ¶
func ByTraffic(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTraffic orders the results by traffic terms.
func ByTrafficCount ¶
func ByTrafficCount(opts ...sql.OrderTermOption) OrderOption
ByTrafficCount orders the results by traffic count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpstream ¶
func ByUpstream(opts ...sql.OrderTermOption) OrderOption
ByUpstream orders the results by the upstream field.