Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Agent
- func ActiveEQ(v bool) predicate.Agent
- func ActiveNEQ(v bool) predicate.Agent
- func And(predicates ...predicate.Agent) predicate.Agent
- func ID(id uuid.UUID) predicate.Agent
- func IDEQ(id uuid.UUID) predicate.Agent
- func IDGT(id uuid.UUID) predicate.Agent
- func IDGTE(id uuid.UUID) predicate.Agent
- func IDIn(ids ...uuid.UUID) predicate.Agent
- func IDLT(id uuid.UUID) predicate.Agent
- func IDLTE(id uuid.UUID) predicate.Agent
- func IDNEQ(id uuid.UUID) predicate.Agent
- func IDNotIn(ids ...uuid.UUID) predicate.Agent
- func LastUpdateTime(v time.Time) predicate.Agent
- func LastUpdateTimeEQ(v time.Time) predicate.Agent
- func LastUpdateTimeGT(v time.Time) predicate.Agent
- func LastUpdateTimeGTE(v time.Time) predicate.Agent
- func LastUpdateTimeIn(vs ...time.Time) predicate.Agent
- func LastUpdateTimeLT(v time.Time) predicate.Agent
- func LastUpdateTimeLTE(v time.Time) predicate.Agent
- func LastUpdateTimeNEQ(v time.Time) predicate.Agent
- func LastUpdateTimeNotIn(vs ...time.Time) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func PeerID(v string) predicate.Agent
- func PeerIDContains(v string) predicate.Agent
- func PeerIDContainsFold(v string) predicate.Agent
- func PeerIDEQ(v string) predicate.Agent
- func PeerIDEqualFold(v string) predicate.Agent
- func PeerIDGT(v string) predicate.Agent
- func PeerIDGTE(v string) predicate.Agent
- func PeerIDHasPrefix(v string) predicate.Agent
- func PeerIDHasSuffix(v string) predicate.Agent
- func PeerIDIn(vs ...string) predicate.Agent
- func PeerIDLT(v string) predicate.Agent
- func PeerIDLTE(v string) predicate.Agent
- func PeerIDNEQ(v string) predicate.Agent
- func PeerIDNotIn(vs ...string) predicate.Agent
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the agent type in the database. Label = "agent" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPeerID holds the string denoting the peer_id field in the database. FieldPeerID = "peer_id" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldLastUpdateTime holds the string denoting the last_update_time field in the database. FieldLastUpdateTime = "last_update_time" // Table holds the table name of the agent in the database. Table = "agents" )
Variables ¶
var ( // PeerIDValidator is a validator for the "peer_id" field. It is called by the builders before save. PeerIDValidator func(string) error // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // DefaultLastUpdateTime holds the default value on creation for the "last_update_time" field. DefaultLastUpdateTime func() time.Time // UpdateDefaultLastUpdateTime holds the default value on update for the "last_update_time" field. UpdateDefaultLastUpdateTime func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldPeerID, FieldActive, FieldLastUpdateTime, }
Columns holds all SQL columns for agent fields.
Functions ¶
func Active ¶ added in v0.0.2
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func LastUpdateTime ¶ added in v0.0.2
LastUpdateTime applies equality check predicate on the "last_update_time" field. It's identical to LastUpdateTimeEQ.
func LastUpdateTimeEQ ¶ added in v0.0.2
LastUpdateTimeEQ applies the EQ predicate on the "last_update_time" field.
func LastUpdateTimeGT ¶ added in v0.0.2
LastUpdateTimeGT applies the GT predicate on the "last_update_time" field.
func LastUpdateTimeGTE ¶ added in v0.0.2
LastUpdateTimeGTE applies the GTE predicate on the "last_update_time" field.
func LastUpdateTimeIn ¶ added in v0.0.2
LastUpdateTimeIn applies the In predicate on the "last_update_time" field.
func LastUpdateTimeLT ¶ added in v0.0.2
LastUpdateTimeLT applies the LT predicate on the "last_update_time" field.
func LastUpdateTimeLTE ¶ added in v0.0.2
LastUpdateTimeLTE applies the LTE predicate on the "last_update_time" field.
func LastUpdateTimeNEQ ¶ added in v0.0.2
LastUpdateTimeNEQ applies the NEQ predicate on the "last_update_time" field.
func LastUpdateTimeNotIn ¶ added in v0.0.2
LastUpdateTimeNotIn applies the NotIn predicate on the "last_update_time" field.
func PeerID ¶ added in v0.0.2
PeerID applies equality check predicate on the "peer_id" field. It's identical to PeerIDEQ.
func PeerIDContains ¶ added in v0.0.2
PeerIDContains applies the Contains predicate on the "peer_id" field.
func PeerIDContainsFold ¶ added in v0.0.2
PeerIDContainsFold applies the ContainsFold predicate on the "peer_id" field.
func PeerIDEqualFold ¶ added in v0.0.2
PeerIDEqualFold applies the EqualFold predicate on the "peer_id" field.
func PeerIDHasPrefix ¶ added in v0.0.2
PeerIDHasPrefix applies the HasPrefix predicate on the "peer_id" field.
func PeerIDHasSuffix ¶ added in v0.0.2
PeerIDHasSuffix applies the HasSuffix predicate on the "peer_id" field.
func PeerIDNotIn ¶ added in v0.0.2
PeerIDNotIn applies the NotIn predicate on the "peer_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Agent queries.
func ByActive ¶ added in v0.0.2
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUpdateTime ¶ added in v0.0.2
func ByLastUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByLastUpdateTime orders the results by the last_update_time field.
func ByPeerID ¶ added in v0.0.2
func ByPeerID(opts ...sql.OrderTermOption) OrderOption
ByPeerID orders the results by the peer_id field.