feat: ent ORM, admin UI, client auth, Fyne GUI, Windows/MSI packaging

This commit is contained in:
kannn
2026-05-29 08:58:22 +00:00
Unverified
parent 8563a5fc74
commit a0a42a4966
81 changed files with 17144 additions and 89 deletions
+134
View File
@@ -0,0 +1,134 @@
// Code generated by ent, DO NOT EDIT.
package frpcclient
import (
"time"
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the frpcclient type in the database.
Label = "frpc_client"
// 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"
// FieldKey holds the string denoting the key field in the database.
FieldKey = "key"
// FieldAddr holds the string denoting the addr field in the database.
FieldAddr = "addr"
// FieldPort holds the string denoting the port field in the database.
FieldPort = "port"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldMetadata holds the string denoting the metadata field in the database.
FieldMetadata = "metadata"
// 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"
// FieldLastSeen holds the string denoting the last_seen field in the database.
FieldLastSeen = "last_seen"
// Table holds the table name of the frpcclient in the database.
Table = "frpc_clients"
)
// Columns holds all SQL columns for frpcclient fields.
var Columns = []string{
FieldID,
FieldName,
FieldKey,
FieldAddr,
FieldPort,
FieldStatus,
FieldMetadata,
FieldCreatedAt,
FieldUpdatedAt,
FieldLastSeen,
}
// 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 (
// DefaultKey holds the default value on creation for the "key" field.
DefaultKey string
// DefaultAddr holds the default value on creation for the "addr" field.
DefaultAddr string
// DefaultPort holds the default value on creation for the "port" field.
DefaultPort int
// DefaultStatus holds the default value on creation for the "status" field.
DefaultStatus string
// DefaultMetadata holds the default value on creation for the "metadata" field.
DefaultMetadata string
// 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
// DefaultLastSeen holds the default value on creation for the "last_seen" field.
DefaultLastSeen func() time.Time
)
// OrderOption defines the ordering options for the FrpcClient 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()
}
// ByKey orders the results by the key field.
func ByKey(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldKey, opts...).ToFunc()
}
// ByAddr orders the results by the addr field.
func ByAddr(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAddr, opts...).ToFunc()
}
// ByPort orders the results by the port field.
func ByPort(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPort, opts...).ToFunc()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// ByMetadata orders the results by the metadata field.
func ByMetadata(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMetadata, 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()
}
// ByLastSeen orders the results by the last_seen field.
func ByLastSeen(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLastSeen, opts...).ToFunc()
}
+610
View File
@@ -0,0 +1,610 @@
// Code generated by ent, DO NOT EDIT.
package frpcclient
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.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldID, id))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldName, v))
}
// Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
func Key(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldKey, v))
}
// Addr applies equality check predicate on the "addr" field. It's identical to AddrEQ.
func Addr(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldAddr, v))
}
// Port applies equality check predicate on the "port" field. It's identical to PortEQ.
func Port(v int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldPort, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldStatus, v))
}
// Metadata applies equality check predicate on the "metadata" field. It's identical to MetadataEQ.
func Metadata(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldMetadata, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(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.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldUpdatedAt, v))
}
// LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.
func LastSeen(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldLastSeen, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContainsFold(FieldName, v))
}
// KeyEQ applies the EQ predicate on the "key" field.
func KeyEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldKey, v))
}
// KeyNEQ applies the NEQ predicate on the "key" field.
func KeyNEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldKey, v))
}
// KeyIn applies the In predicate on the "key" field.
func KeyIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldKey, vs...))
}
// KeyNotIn applies the NotIn predicate on the "key" field.
func KeyNotIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldKey, vs...))
}
// KeyGT applies the GT predicate on the "key" field.
func KeyGT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldKey, v))
}
// KeyGTE applies the GTE predicate on the "key" field.
func KeyGTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldKey, v))
}
// KeyLT applies the LT predicate on the "key" field.
func KeyLT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldKey, v))
}
// KeyLTE applies the LTE predicate on the "key" field.
func KeyLTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldKey, v))
}
// KeyContains applies the Contains predicate on the "key" field.
func KeyContains(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContains(FieldKey, v))
}
// KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasPrefix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasPrefix(FieldKey, v))
}
// KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func KeyHasSuffix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasSuffix(FieldKey, v))
}
// KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyEqualFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEqualFold(FieldKey, v))
}
// KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyContainsFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContainsFold(FieldKey, v))
}
// AddrEQ applies the EQ predicate on the "addr" field.
func AddrEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldAddr, v))
}
// AddrNEQ applies the NEQ predicate on the "addr" field.
func AddrNEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldAddr, v))
}
// AddrIn applies the In predicate on the "addr" field.
func AddrIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldAddr, vs...))
}
// AddrNotIn applies the NotIn predicate on the "addr" field.
func AddrNotIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldAddr, vs...))
}
// AddrGT applies the GT predicate on the "addr" field.
func AddrGT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldAddr, v))
}
// AddrGTE applies the GTE predicate on the "addr" field.
func AddrGTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldAddr, v))
}
// AddrLT applies the LT predicate on the "addr" field.
func AddrLT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldAddr, v))
}
// AddrLTE applies the LTE predicate on the "addr" field.
func AddrLTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldAddr, v))
}
// AddrContains applies the Contains predicate on the "addr" field.
func AddrContains(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContains(FieldAddr, v))
}
// AddrHasPrefix applies the HasPrefix predicate on the "addr" field.
func AddrHasPrefix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasPrefix(FieldAddr, v))
}
// AddrHasSuffix applies the HasSuffix predicate on the "addr" field.
func AddrHasSuffix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasSuffix(FieldAddr, v))
}
// AddrEqualFold applies the EqualFold predicate on the "addr" field.
func AddrEqualFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEqualFold(FieldAddr, v))
}
// AddrContainsFold applies the ContainsFold predicate on the "addr" field.
func AddrContainsFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContainsFold(FieldAddr, v))
}
// PortEQ applies the EQ predicate on the "port" field.
func PortEQ(v int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldPort, v))
}
// PortNEQ applies the NEQ predicate on the "port" field.
func PortNEQ(v int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldPort, v))
}
// PortIn applies the In predicate on the "port" field.
func PortIn(vs ...int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldPort, vs...))
}
// PortNotIn applies the NotIn predicate on the "port" field.
func PortNotIn(vs ...int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldPort, vs...))
}
// PortGT applies the GT predicate on the "port" field.
func PortGT(v int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldPort, v))
}
// PortGTE applies the GTE predicate on the "port" field.
func PortGTE(v int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldPort, v))
}
// PortLT applies the LT predicate on the "port" field.
func PortLT(v int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldPort, v))
}
// PortLTE applies the LTE predicate on the "port" field.
func PortLTE(v int) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldPort, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldStatus, v))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContains(FieldStatus, v))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasPrefix(FieldStatus, v))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasSuffix(FieldStatus, v))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEqualFold(FieldStatus, v))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContainsFold(FieldStatus, v))
}
// MetadataEQ applies the EQ predicate on the "metadata" field.
func MetadataEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldMetadata, v))
}
// MetadataNEQ applies the NEQ predicate on the "metadata" field.
func MetadataNEQ(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldMetadata, v))
}
// MetadataIn applies the In predicate on the "metadata" field.
func MetadataIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldMetadata, vs...))
}
// MetadataNotIn applies the NotIn predicate on the "metadata" field.
func MetadataNotIn(vs ...string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldMetadata, vs...))
}
// MetadataGT applies the GT predicate on the "metadata" field.
func MetadataGT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldMetadata, v))
}
// MetadataGTE applies the GTE predicate on the "metadata" field.
func MetadataGTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldMetadata, v))
}
// MetadataLT applies the LT predicate on the "metadata" field.
func MetadataLT(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldMetadata, v))
}
// MetadataLTE applies the LTE predicate on the "metadata" field.
func MetadataLTE(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldMetadata, v))
}
// MetadataContains applies the Contains predicate on the "metadata" field.
func MetadataContains(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContains(FieldMetadata, v))
}
// MetadataHasPrefix applies the HasPrefix predicate on the "metadata" field.
func MetadataHasPrefix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasPrefix(FieldMetadata, v))
}
// MetadataHasSuffix applies the HasSuffix predicate on the "metadata" field.
func MetadataHasSuffix(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldHasSuffix(FieldMetadata, v))
}
// MetadataEqualFold applies the EqualFold predicate on the "metadata" field.
func MetadataEqualFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEqualFold(FieldMetadata, v))
}
// MetadataContainsFold applies the ContainsFold predicate on the "metadata" field.
func MetadataContainsFold(v string) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldContainsFold(FieldMetadata, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldUpdatedAt, v))
}
// LastSeenEQ applies the EQ predicate on the "last_seen" field.
func LastSeenEQ(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldEQ(FieldLastSeen, v))
}
// LastSeenNEQ applies the NEQ predicate on the "last_seen" field.
func LastSeenNEQ(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNEQ(FieldLastSeen, v))
}
// LastSeenIn applies the In predicate on the "last_seen" field.
func LastSeenIn(vs ...time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIn(FieldLastSeen, vs...))
}
// LastSeenNotIn applies the NotIn predicate on the "last_seen" field.
func LastSeenNotIn(vs ...time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotIn(FieldLastSeen, vs...))
}
// LastSeenGT applies the GT predicate on the "last_seen" field.
func LastSeenGT(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGT(FieldLastSeen, v))
}
// LastSeenGTE applies the GTE predicate on the "last_seen" field.
func LastSeenGTE(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldGTE(FieldLastSeen, v))
}
// LastSeenLT applies the LT predicate on the "last_seen" field.
func LastSeenLT(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLT(FieldLastSeen, v))
}
// LastSeenLTE applies the LTE predicate on the "last_seen" field.
func LastSeenLTE(v time.Time) predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldLTE(FieldLastSeen, v))
}
// LastSeenIsNil applies the IsNil predicate on the "last_seen" field.
func LastSeenIsNil() predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldIsNull(FieldLastSeen))
}
// LastSeenNotNil applies the NotNil predicate on the "last_seen" field.
func LastSeenNotNil() predicate.FrpcClient {
return predicate.FrpcClient(sql.FieldNotNull(FieldLastSeen))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.FrpcClient) predicate.FrpcClient {
return predicate.FrpcClient(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.FrpcClient) predicate.FrpcClient {
return predicate.FrpcClient(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.FrpcClient) predicate.FrpcClient {
return predicate.FrpcClient(sql.NotPredicates(p))
}