proxy

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultMode = ModeForward

ModeForward is the default value of the Mode enum.

Variables

View Source
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
)

Columns holds all SQL columns for proxy fields.

View Source
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

func Active(v bool) predicate.Proxy

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Proxy

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Proxy

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.Proxy) predicate.Proxy

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Proxy

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Proxy

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Proxy

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Proxy

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Proxy

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Proxy

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Proxy

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Proxy

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Proxy

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ExcludeHostsIsNil

func ExcludeHostsIsNil() predicate.Proxy

ExcludeHostsIsNil applies the IsNil predicate on the "exclude_hosts" field.

func ExcludeHostsNotNil

func ExcludeHostsNotNil() predicate.Proxy

ExcludeHostsNotNil applies the NotNil predicate on the "exclude_hosts" field.

func ExcludePathsIsNil

func ExcludePathsIsNil() predicate.Proxy

ExcludePathsIsNil applies the IsNil predicate on the "exclude_paths" field.

func ExcludePathsNotNil

func ExcludePathsNotNil() predicate.Proxy

ExcludePathsNotNil applies the NotNil predicate on the "exclude_paths" field.

func HasOrg

func HasOrg() predicate.Proxy

HasOrg applies the HasEdge predicate on the "org" edge.

func HasOrgWith

func HasOrgWith(preds ...predicate.Org) predicate.Proxy

HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).

func HasTraffic

func HasTraffic() predicate.Proxy

HasTraffic applies the HasEdge predicate on the "traffic" edge.

func HasTrafficWith

func HasTrafficWith(preds ...predicate.Traffic) predicate.Proxy

HasTrafficWith applies the HasEdge predicate on the "traffic" edge with a given conditions (other predicates).

func Host

func Host(v string) predicate.Proxy

Host applies equality check predicate on the "host" field. It's identical to HostEQ.

func HostContains

func HostContains(v string) predicate.Proxy

HostContains applies the Contains predicate on the "host" field.

func HostContainsFold

func HostContainsFold(v string) predicate.Proxy

HostContainsFold applies the ContainsFold predicate on the "host" field.

func HostEQ

func HostEQ(v string) predicate.Proxy

HostEQ applies the EQ predicate on the "host" field.

func HostEqualFold

func HostEqualFold(v string) predicate.Proxy

HostEqualFold applies the EqualFold predicate on the "host" field.

func HostGT

func HostGT(v string) predicate.Proxy

HostGT applies the GT predicate on the "host" field.

func HostGTE

func HostGTE(v string) predicate.Proxy

HostGTE applies the GTE predicate on the "host" field.

func HostHasPrefix

func HostHasPrefix(v string) predicate.Proxy

HostHasPrefix applies the HasPrefix predicate on the "host" field.

func HostHasSuffix

func HostHasSuffix(v string) predicate.Proxy

HostHasSuffix applies the HasSuffix predicate on the "host" field.

func HostIn

func HostIn(vs ...string) predicate.Proxy

HostIn applies the In predicate on the "host" field.

func HostLT

func HostLT(v string) predicate.Proxy

HostLT applies the LT predicate on the "host" field.

func HostLTE

func HostLTE(v string) predicate.Proxy

HostLTE applies the LTE predicate on the "host" field.

func HostNEQ

func HostNEQ(v string) predicate.Proxy

HostNEQ applies the NEQ predicate on the "host" field.

func HostNotIn

func HostNotIn(vs ...string) predicate.Proxy

HostNotIn applies the NotIn predicate on the "host" field.

func ID

func ID(id int) predicate.Proxy

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Proxy

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Proxy

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Proxy

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Proxy

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Proxy

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Proxy

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Proxy

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Proxy

IDNotIn applies the NotIn predicate on the ID field.

func IncludeHostsIsNil

func IncludeHostsIsNil() predicate.Proxy

IncludeHostsIsNil applies the IsNil predicate on the "include_hosts" field.

func IncludeHostsNotNil

func IncludeHostsNotNil() predicate.Proxy

IncludeHostsNotNil applies the NotNil predicate on the "include_hosts" field.

func IncludePathsIsNil

func IncludePathsIsNil() predicate.Proxy

IncludePathsIsNil applies the IsNil predicate on the "include_paths" field.

func IncludePathsNotNil

func IncludePathsNotNil() predicate.Proxy

IncludePathsNotNil applies the NotNil predicate on the "include_paths" field.

func LastStartedAt

func LastStartedAt(v time.Time) predicate.Proxy

LastStartedAt applies equality check predicate on the "last_started_at" field. It's identical to LastStartedAtEQ.

func LastStartedAtEQ

func LastStartedAtEQ(v time.Time) predicate.Proxy

LastStartedAtEQ applies the EQ predicate on the "last_started_at" field.

func LastStartedAtGT

func LastStartedAtGT(v time.Time) predicate.Proxy

LastStartedAtGT applies the GT predicate on the "last_started_at" field.

func LastStartedAtGTE

func LastStartedAtGTE(v time.Time) predicate.Proxy

LastStartedAtGTE applies the GTE predicate on the "last_started_at" field.

func LastStartedAtIn

func LastStartedAtIn(vs ...time.Time) predicate.Proxy

LastStartedAtIn applies the In predicate on the "last_started_at" field.

func LastStartedAtIsNil

func LastStartedAtIsNil() predicate.Proxy

LastStartedAtIsNil applies the IsNil predicate on the "last_started_at" field.

func LastStartedAtLT

func LastStartedAtLT(v time.Time) predicate.Proxy

LastStartedAtLT applies the LT predicate on the "last_started_at" field.

func LastStartedAtLTE

func LastStartedAtLTE(v time.Time) predicate.Proxy

LastStartedAtLTE applies the LTE predicate on the "last_started_at" field.

func LastStartedAtNEQ

func LastStartedAtNEQ(v time.Time) predicate.Proxy

LastStartedAtNEQ applies the NEQ predicate on the "last_started_at" field.

func LastStartedAtNotIn

func LastStartedAtNotIn(vs ...time.Time) predicate.Proxy

LastStartedAtNotIn applies the NotIn predicate on the "last_started_at" field.

func LastStartedAtNotNil

func LastStartedAtNotNil() predicate.Proxy

LastStartedAtNotNil applies the NotNil predicate on the "last_started_at" field.

func MitmEnabled

func MitmEnabled(v bool) predicate.Proxy

MitmEnabled applies equality check predicate on the "mitm_enabled" field. It's identical to MitmEnabledEQ.

func MitmEnabledEQ

func MitmEnabledEQ(v bool) predicate.Proxy

MitmEnabledEQ applies the EQ predicate on the "mitm_enabled" field.

func MitmEnabledNEQ

func MitmEnabledNEQ(v bool) predicate.Proxy

MitmEnabledNEQ applies the NEQ predicate on the "mitm_enabled" field.

func ModeEQ

func ModeEQ(v Mode) predicate.Proxy

ModeEQ applies the EQ predicate on the "mode" field.

func ModeIn

func ModeIn(vs ...Mode) predicate.Proxy

ModeIn applies the In predicate on the "mode" field.

func ModeNEQ

func ModeNEQ(v Mode) predicate.Proxy

ModeNEQ applies the NEQ predicate on the "mode" field.

func ModeNotIn

func ModeNotIn(vs ...Mode) predicate.Proxy

ModeNotIn applies the NotIn predicate on the "mode" field.

func ModeValidator

func ModeValidator(m Mode) error

ModeValidator is a validator for the "mode" field enum values. It is called by the builders before save.

func Name

func Name(v string) predicate.Proxy

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Proxy

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Proxy

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Proxy

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Proxy

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Proxy

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Proxy

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Proxy

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Proxy

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Proxy

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Proxy

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Proxy

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Proxy

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Proxy

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Proxy) predicate.Proxy

Or groups predicates with the OR operator between them.

func Port

func Port(v int) predicate.Proxy

Port applies equality check predicate on the "port" field. It's identical to PortEQ.

func PortEQ

func PortEQ(v int) predicate.Proxy

PortEQ applies the EQ predicate on the "port" field.

func PortGT

func PortGT(v int) predicate.Proxy

PortGT applies the GT predicate on the "port" field.

func PortGTE

func PortGTE(v int) predicate.Proxy

PortGTE applies the GTE predicate on the "port" field.

func PortIn

func PortIn(vs ...int) predicate.Proxy

PortIn applies the In predicate on the "port" field.

func PortLT

func PortLT(v int) predicate.Proxy

PortLT applies the LT predicate on the "port" field.

func PortLTE

func PortLTE(v int) predicate.Proxy

PortLTE applies the LTE predicate on the "port" field.

func PortNEQ

func PortNEQ(v int) predicate.Proxy

PortNEQ applies the NEQ predicate on the "port" field.

func PortNotIn

func PortNotIn(vs ...int) predicate.Proxy

PortNotIn applies the NotIn predicate on the "port" field.

func SkipBinary

func SkipBinary(v bool) predicate.Proxy

SkipBinary applies equality check predicate on the "skip_binary" field. It's identical to SkipBinaryEQ.

func SkipBinaryEQ

func SkipBinaryEQ(v bool) predicate.Proxy

SkipBinaryEQ applies the EQ predicate on the "skip_binary" field.

func SkipBinaryNEQ

func SkipBinaryNEQ(v bool) predicate.Proxy

SkipBinaryNEQ applies the NEQ predicate on the "skip_binary" field.

func SkipHostsIsNil

func SkipHostsIsNil() predicate.Proxy

SkipHostsIsNil applies the IsNil predicate on the "skip_hosts" field.

func SkipHostsNotNil

func SkipHostsNotNil() predicate.Proxy

SkipHostsNotNil applies the NotNil predicate on the "skip_hosts" field.

func Slug

func Slug(v string) predicate.Proxy

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.Proxy

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.Proxy

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.Proxy

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.Proxy

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.Proxy

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.Proxy

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Proxy

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Proxy

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.Proxy

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.Proxy

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.Proxy

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.Proxy

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.Proxy

SlugNotIn applies the NotIn predicate on the "slug" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Proxy

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Proxy

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Proxy

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Proxy

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Proxy

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Proxy

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Proxy

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Proxy

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Proxy

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func Upstream

func Upstream(v string) predicate.Proxy

Upstream applies equality check predicate on the "upstream" field. It's identical to UpstreamEQ.

func UpstreamContains

func UpstreamContains(v string) predicate.Proxy

UpstreamContains applies the Contains predicate on the "upstream" field.

func UpstreamContainsFold

func UpstreamContainsFold(v string) predicate.Proxy

UpstreamContainsFold applies the ContainsFold predicate on the "upstream" field.

func UpstreamEQ

func UpstreamEQ(v string) predicate.Proxy

UpstreamEQ applies the EQ predicate on the "upstream" field.

func UpstreamEqualFold

func UpstreamEqualFold(v string) predicate.Proxy

UpstreamEqualFold applies the EqualFold predicate on the "upstream" field.

func UpstreamGT

func UpstreamGT(v string) predicate.Proxy

UpstreamGT applies the GT predicate on the "upstream" field.

func UpstreamGTE

func UpstreamGTE(v string) predicate.Proxy

UpstreamGTE applies the GTE predicate on the "upstream" field.

func UpstreamHasPrefix

func UpstreamHasPrefix(v string) predicate.Proxy

UpstreamHasPrefix applies the HasPrefix predicate on the "upstream" field.

func UpstreamHasSuffix

func UpstreamHasSuffix(v string) predicate.Proxy

UpstreamHasSuffix applies the HasSuffix predicate on the "upstream" field.

func UpstreamIn

func UpstreamIn(vs ...string) predicate.Proxy

UpstreamIn applies the In predicate on the "upstream" field.

func UpstreamIsNil

func UpstreamIsNil() predicate.Proxy

UpstreamIsNil applies the IsNil predicate on the "upstream" field.

func UpstreamLT

func UpstreamLT(v string) predicate.Proxy

UpstreamLT applies the LT predicate on the "upstream" field.

func UpstreamLTE

func UpstreamLTE(v string) predicate.Proxy

UpstreamLTE applies the LTE predicate on the "upstream" field.

func UpstreamNEQ

func UpstreamNEQ(v string) predicate.Proxy

UpstreamNEQ applies the NEQ predicate on the "upstream" field.

func UpstreamNotIn

func UpstreamNotIn(vs ...string) predicate.Proxy

UpstreamNotIn applies the NotIn predicate on the "upstream" field.

func UpstreamNotNil

func UpstreamNotNil() predicate.Proxy

UpstreamNotNil applies the NotNil predicate on the "upstream" field.

func ValidColumn

func ValidColumn(column string) bool

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.

const (
	ModeForward     Mode = "forward"
	ModeReverse     Mode = "reverse"
	ModeTransparent Mode = "transparent"
)

Mode values.

func (Mode) String

func (m Mode) String() string

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL