Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PeerReputation) predicate.PeerReputation
- func CreatedAt(v time.Time) predicate.PeerReputation
- func CreatedAtEQ(v time.Time) predicate.PeerReputation
- func CreatedAtGT(v time.Time) predicate.PeerReputation
- func CreatedAtGTE(v time.Time) predicate.PeerReputation
- func CreatedAtIn(vs ...time.Time) predicate.PeerReputation
- func CreatedAtLT(v time.Time) predicate.PeerReputation
- func CreatedAtLTE(v time.Time) predicate.PeerReputation
- func CreatedAtNEQ(v time.Time) predicate.PeerReputation
- func CreatedAtNotIn(vs ...time.Time) predicate.PeerReputation
- func FailedExchanges(v int) predicate.PeerReputation
- func FailedExchangesEQ(v int) predicate.PeerReputation
- func FailedExchangesGT(v int) predicate.PeerReputation
- func FailedExchangesGTE(v int) predicate.PeerReputation
- func FailedExchangesIn(vs ...int) predicate.PeerReputation
- func FailedExchangesLT(v int) predicate.PeerReputation
- func FailedExchangesLTE(v int) predicate.PeerReputation
- func FailedExchangesNEQ(v int) predicate.PeerReputation
- func FailedExchangesNotIn(vs ...int) predicate.PeerReputation
- func FirstSeen(v time.Time) predicate.PeerReputation
- func FirstSeenEQ(v time.Time) predicate.PeerReputation
- func FirstSeenGT(v time.Time) predicate.PeerReputation
- func FirstSeenGTE(v time.Time) predicate.PeerReputation
- func FirstSeenIn(vs ...time.Time) predicate.PeerReputation
- func FirstSeenLT(v time.Time) predicate.PeerReputation
- func FirstSeenLTE(v time.Time) predicate.PeerReputation
- func FirstSeenNEQ(v time.Time) predicate.PeerReputation
- func FirstSeenNotIn(vs ...time.Time) predicate.PeerReputation
- func ID(id uuid.UUID) predicate.PeerReputation
- func IDEQ(id uuid.UUID) predicate.PeerReputation
- func IDGT(id uuid.UUID) predicate.PeerReputation
- func IDGTE(id uuid.UUID) predicate.PeerReputation
- func IDIn(ids ...uuid.UUID) predicate.PeerReputation
- func IDLT(id uuid.UUID) predicate.PeerReputation
- func IDLTE(id uuid.UUID) predicate.PeerReputation
- func IDNEQ(id uuid.UUID) predicate.PeerReputation
- func IDNotIn(ids ...uuid.UUID) predicate.PeerReputation
- func LastInteraction(v time.Time) predicate.PeerReputation
- func LastInteractionEQ(v time.Time) predicate.PeerReputation
- func LastInteractionGT(v time.Time) predicate.PeerReputation
- func LastInteractionGTE(v time.Time) predicate.PeerReputation
- func LastInteractionIn(vs ...time.Time) predicate.PeerReputation
- func LastInteractionLT(v time.Time) predicate.PeerReputation
- func LastInteractionLTE(v time.Time) predicate.PeerReputation
- func LastInteractionNEQ(v time.Time) predicate.PeerReputation
- func LastInteractionNotIn(vs ...time.Time) predicate.PeerReputation
- func Not(p predicate.PeerReputation) predicate.PeerReputation
- func Or(predicates ...predicate.PeerReputation) predicate.PeerReputation
- func PeerDid(v string) predicate.PeerReputation
- func PeerDidContains(v string) predicate.PeerReputation
- func PeerDidContainsFold(v string) predicate.PeerReputation
- func PeerDidEQ(v string) predicate.PeerReputation
- func PeerDidEqualFold(v string) predicate.PeerReputation
- func PeerDidGT(v string) predicate.PeerReputation
- func PeerDidGTE(v string) predicate.PeerReputation
- func PeerDidHasPrefix(v string) predicate.PeerReputation
- func PeerDidHasSuffix(v string) predicate.PeerReputation
- func PeerDidIn(vs ...string) predicate.PeerReputation
- func PeerDidLT(v string) predicate.PeerReputation
- func PeerDidLTE(v string) predicate.PeerReputation
- func PeerDidNEQ(v string) predicate.PeerReputation
- func PeerDidNotIn(vs ...string) predicate.PeerReputation
- func SuccessfulExchanges(v int) predicate.PeerReputation
- func SuccessfulExchangesEQ(v int) predicate.PeerReputation
- func SuccessfulExchangesGT(v int) predicate.PeerReputation
- func SuccessfulExchangesGTE(v int) predicate.PeerReputation
- func SuccessfulExchangesIn(vs ...int) predicate.PeerReputation
- func SuccessfulExchangesLT(v int) predicate.PeerReputation
- func SuccessfulExchangesLTE(v int) predicate.PeerReputation
- func SuccessfulExchangesNEQ(v int) predicate.PeerReputation
- func SuccessfulExchangesNotIn(vs ...int) predicate.PeerReputation
- func TimeoutCount(v int) predicate.PeerReputation
- func TimeoutCountEQ(v int) predicate.PeerReputation
- func TimeoutCountGT(v int) predicate.PeerReputation
- func TimeoutCountGTE(v int) predicate.PeerReputation
- func TimeoutCountIn(vs ...int) predicate.PeerReputation
- func TimeoutCountLT(v int) predicate.PeerReputation
- func TimeoutCountLTE(v int) predicate.PeerReputation
- func TimeoutCountNEQ(v int) predicate.PeerReputation
- func TimeoutCountNotIn(vs ...int) predicate.PeerReputation
- func TrustScore(v float64) predicate.PeerReputation
- func TrustScoreEQ(v float64) predicate.PeerReputation
- func TrustScoreGT(v float64) predicate.PeerReputation
- func TrustScoreGTE(v float64) predicate.PeerReputation
- func TrustScoreIn(vs ...float64) predicate.PeerReputation
- func TrustScoreLT(v float64) predicate.PeerReputation
- func TrustScoreLTE(v float64) predicate.PeerReputation
- func TrustScoreNEQ(v float64) predicate.PeerReputation
- func TrustScoreNotIn(vs ...float64) predicate.PeerReputation
- func UpdatedAt(v time.Time) predicate.PeerReputation
- func UpdatedAtEQ(v time.Time) predicate.PeerReputation
- func UpdatedAtGT(v time.Time) predicate.PeerReputation
- func UpdatedAtGTE(v time.Time) predicate.PeerReputation
- func UpdatedAtIn(vs ...time.Time) predicate.PeerReputation
- func UpdatedAtLT(v time.Time) predicate.PeerReputation
- func UpdatedAtLTE(v time.Time) predicate.PeerReputation
- func UpdatedAtNEQ(v time.Time) predicate.PeerReputation
- func UpdatedAtNotIn(vs ...time.Time) predicate.PeerReputation
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFailedExchanges(opts ...sql.OrderTermOption) OrderOption
- func ByFirstSeen(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastInteraction(opts ...sql.OrderTermOption) OrderOption
- func ByPeerDid(opts ...sql.OrderTermOption) OrderOption
- func BySuccessfulExchanges(opts ...sql.OrderTermOption) OrderOption
- func ByTimeoutCount(opts ...sql.OrderTermOption) OrderOption
- func ByTrustScore(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the peerreputation type in the database. Label = "peer_reputation" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPeerDid holds the string denoting the peer_did field in the database. FieldPeerDid = "peer_did" // FieldSuccessfulExchanges holds the string denoting the successful_exchanges field in the database. FieldSuccessfulExchanges = "successful_exchanges" // FieldFailedExchanges holds the string denoting the failed_exchanges field in the database. FieldFailedExchanges = "failed_exchanges" // FieldTimeoutCount holds the string denoting the timeout_count field in the database. FieldTimeoutCount = "timeout_count" // FieldTrustScore holds the string denoting the trust_score field in the database. FieldTrustScore = "trust_score" // FieldFirstSeen holds the string denoting the first_seen field in the database. FieldFirstSeen = "first_seen" // FieldLastInteraction holds the string denoting the last_interaction field in the database. FieldLastInteraction = "last_interaction" // 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 peerreputation in the database. Table = "peer_reputations" )
Variables ¶
var ( // PeerDidValidator is a validator for the "peer_did" field. It is called by the builders before save. PeerDidValidator func(string) error // DefaultSuccessfulExchanges holds the default value on creation for the "successful_exchanges" field. DefaultSuccessfulExchanges int // DefaultFailedExchanges holds the default value on creation for the "failed_exchanges" field. DefaultFailedExchanges int // DefaultTimeoutCount holds the default value on creation for the "timeout_count" field. DefaultTimeoutCount int // DefaultTrustScore holds the default value on creation for the "trust_score" field. DefaultTrustScore float64 // DefaultFirstSeen holds the default value on creation for the "first_seen" field. DefaultFirstSeen func() time.Time // DefaultLastInteraction holds the default value on creation for the "last_interaction" field. DefaultLastInteraction func() time.Time // UpdateDefaultLastInteraction holds the default value on update for the "last_interaction" field. UpdateDefaultLastInteraction func() time.Time // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldPeerDid, FieldSuccessfulExchanges, FieldFailedExchanges, FieldTimeoutCount, FieldTrustScore, FieldFirstSeen, FieldLastInteraction, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for peerreputation fields.
Functions ¶
func And ¶
func And(predicates ...predicate.PeerReputation) predicate.PeerReputation
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.PeerReputation
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.PeerReputation
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.PeerReputation
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.PeerReputation
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.PeerReputation
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.PeerReputation
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.PeerReputation
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.PeerReputation
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.PeerReputation
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func FailedExchanges ¶
func FailedExchanges(v int) predicate.PeerReputation
FailedExchanges applies equality check predicate on the "failed_exchanges" field. It's identical to FailedExchangesEQ.
func FailedExchangesEQ ¶
func FailedExchangesEQ(v int) predicate.PeerReputation
FailedExchangesEQ applies the EQ predicate on the "failed_exchanges" field.
func FailedExchangesGT ¶
func FailedExchangesGT(v int) predicate.PeerReputation
FailedExchangesGT applies the GT predicate on the "failed_exchanges" field.
func FailedExchangesGTE ¶
func FailedExchangesGTE(v int) predicate.PeerReputation
FailedExchangesGTE applies the GTE predicate on the "failed_exchanges" field.
func FailedExchangesIn ¶
func FailedExchangesIn(vs ...int) predicate.PeerReputation
FailedExchangesIn applies the In predicate on the "failed_exchanges" field.
func FailedExchangesLT ¶
func FailedExchangesLT(v int) predicate.PeerReputation
FailedExchangesLT applies the LT predicate on the "failed_exchanges" field.
func FailedExchangesLTE ¶
func FailedExchangesLTE(v int) predicate.PeerReputation
FailedExchangesLTE applies the LTE predicate on the "failed_exchanges" field.
func FailedExchangesNEQ ¶
func FailedExchangesNEQ(v int) predicate.PeerReputation
FailedExchangesNEQ applies the NEQ predicate on the "failed_exchanges" field.
func FailedExchangesNotIn ¶
func FailedExchangesNotIn(vs ...int) predicate.PeerReputation
FailedExchangesNotIn applies the NotIn predicate on the "failed_exchanges" field.
func FirstSeen ¶
func FirstSeen(v time.Time) predicate.PeerReputation
FirstSeen applies equality check predicate on the "first_seen" field. It's identical to FirstSeenEQ.
func FirstSeenEQ ¶
func FirstSeenEQ(v time.Time) predicate.PeerReputation
FirstSeenEQ applies the EQ predicate on the "first_seen" field.
func FirstSeenGT ¶
func FirstSeenGT(v time.Time) predicate.PeerReputation
FirstSeenGT applies the GT predicate on the "first_seen" field.
func FirstSeenGTE ¶
func FirstSeenGTE(v time.Time) predicate.PeerReputation
FirstSeenGTE applies the GTE predicate on the "first_seen" field.
func FirstSeenIn ¶
func FirstSeenIn(vs ...time.Time) predicate.PeerReputation
FirstSeenIn applies the In predicate on the "first_seen" field.
func FirstSeenLT ¶
func FirstSeenLT(v time.Time) predicate.PeerReputation
FirstSeenLT applies the LT predicate on the "first_seen" field.
func FirstSeenLTE ¶
func FirstSeenLTE(v time.Time) predicate.PeerReputation
FirstSeenLTE applies the LTE predicate on the "first_seen" field.
func FirstSeenNEQ ¶
func FirstSeenNEQ(v time.Time) predicate.PeerReputation
FirstSeenNEQ applies the NEQ predicate on the "first_seen" field.
func FirstSeenNotIn ¶
func FirstSeenNotIn(vs ...time.Time) predicate.PeerReputation
FirstSeenNotIn applies the NotIn predicate on the "first_seen" field.
func ID ¶
func ID(id uuid.UUID) predicate.PeerReputation
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.PeerReputation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.PeerReputation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.PeerReputation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.PeerReputation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.PeerReputation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.PeerReputation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.PeerReputation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.PeerReputation
IDNotIn applies the NotIn predicate on the ID field.
func LastInteraction ¶
func LastInteraction(v time.Time) predicate.PeerReputation
LastInteraction applies equality check predicate on the "last_interaction" field. It's identical to LastInteractionEQ.
func LastInteractionEQ ¶
func LastInteractionEQ(v time.Time) predicate.PeerReputation
LastInteractionEQ applies the EQ predicate on the "last_interaction" field.
func LastInteractionGT ¶
func LastInteractionGT(v time.Time) predicate.PeerReputation
LastInteractionGT applies the GT predicate on the "last_interaction" field.
func LastInteractionGTE ¶
func LastInteractionGTE(v time.Time) predicate.PeerReputation
LastInteractionGTE applies the GTE predicate on the "last_interaction" field.
func LastInteractionIn ¶
func LastInteractionIn(vs ...time.Time) predicate.PeerReputation
LastInteractionIn applies the In predicate on the "last_interaction" field.
func LastInteractionLT ¶
func LastInteractionLT(v time.Time) predicate.PeerReputation
LastInteractionLT applies the LT predicate on the "last_interaction" field.
func LastInteractionLTE ¶
func LastInteractionLTE(v time.Time) predicate.PeerReputation
LastInteractionLTE applies the LTE predicate on the "last_interaction" field.
func LastInteractionNEQ ¶
func LastInteractionNEQ(v time.Time) predicate.PeerReputation
LastInteractionNEQ applies the NEQ predicate on the "last_interaction" field.
func LastInteractionNotIn ¶
func LastInteractionNotIn(vs ...time.Time) predicate.PeerReputation
LastInteractionNotIn applies the NotIn predicate on the "last_interaction" field.
func Not ¶
func Not(p predicate.PeerReputation) predicate.PeerReputation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PeerReputation) predicate.PeerReputation
Or groups predicates with the OR operator between them.
func PeerDid ¶
func PeerDid(v string) predicate.PeerReputation
PeerDid applies equality check predicate on the "peer_did" field. It's identical to PeerDidEQ.
func PeerDidContains ¶
func PeerDidContains(v string) predicate.PeerReputation
PeerDidContains applies the Contains predicate on the "peer_did" field.
func PeerDidContainsFold ¶
func PeerDidContainsFold(v string) predicate.PeerReputation
PeerDidContainsFold applies the ContainsFold predicate on the "peer_did" field.
func PeerDidEQ ¶
func PeerDidEQ(v string) predicate.PeerReputation
PeerDidEQ applies the EQ predicate on the "peer_did" field.
func PeerDidEqualFold ¶
func PeerDidEqualFold(v string) predicate.PeerReputation
PeerDidEqualFold applies the EqualFold predicate on the "peer_did" field.
func PeerDidGT ¶
func PeerDidGT(v string) predicate.PeerReputation
PeerDidGT applies the GT predicate on the "peer_did" field.
func PeerDidGTE ¶
func PeerDidGTE(v string) predicate.PeerReputation
PeerDidGTE applies the GTE predicate on the "peer_did" field.
func PeerDidHasPrefix ¶
func PeerDidHasPrefix(v string) predicate.PeerReputation
PeerDidHasPrefix applies the HasPrefix predicate on the "peer_did" field.
func PeerDidHasSuffix ¶
func PeerDidHasSuffix(v string) predicate.PeerReputation
PeerDidHasSuffix applies the HasSuffix predicate on the "peer_did" field.
func PeerDidIn ¶
func PeerDidIn(vs ...string) predicate.PeerReputation
PeerDidIn applies the In predicate on the "peer_did" field.
func PeerDidLT ¶
func PeerDidLT(v string) predicate.PeerReputation
PeerDidLT applies the LT predicate on the "peer_did" field.
func PeerDidLTE ¶
func PeerDidLTE(v string) predicate.PeerReputation
PeerDidLTE applies the LTE predicate on the "peer_did" field.
func PeerDidNEQ ¶
func PeerDidNEQ(v string) predicate.PeerReputation
PeerDidNEQ applies the NEQ predicate on the "peer_did" field.
func PeerDidNotIn ¶
func PeerDidNotIn(vs ...string) predicate.PeerReputation
PeerDidNotIn applies the NotIn predicate on the "peer_did" field.
func SuccessfulExchanges ¶
func SuccessfulExchanges(v int) predicate.PeerReputation
SuccessfulExchanges applies equality check predicate on the "successful_exchanges" field. It's identical to SuccessfulExchangesEQ.
func SuccessfulExchangesEQ ¶
func SuccessfulExchangesEQ(v int) predicate.PeerReputation
SuccessfulExchangesEQ applies the EQ predicate on the "successful_exchanges" field.
func SuccessfulExchangesGT ¶
func SuccessfulExchangesGT(v int) predicate.PeerReputation
SuccessfulExchangesGT applies the GT predicate on the "successful_exchanges" field.
func SuccessfulExchangesGTE ¶
func SuccessfulExchangesGTE(v int) predicate.PeerReputation
SuccessfulExchangesGTE applies the GTE predicate on the "successful_exchanges" field.
func SuccessfulExchangesIn ¶
func SuccessfulExchangesIn(vs ...int) predicate.PeerReputation
SuccessfulExchangesIn applies the In predicate on the "successful_exchanges" field.
func SuccessfulExchangesLT ¶
func SuccessfulExchangesLT(v int) predicate.PeerReputation
SuccessfulExchangesLT applies the LT predicate on the "successful_exchanges" field.
func SuccessfulExchangesLTE ¶
func SuccessfulExchangesLTE(v int) predicate.PeerReputation
SuccessfulExchangesLTE applies the LTE predicate on the "successful_exchanges" field.
func SuccessfulExchangesNEQ ¶
func SuccessfulExchangesNEQ(v int) predicate.PeerReputation
SuccessfulExchangesNEQ applies the NEQ predicate on the "successful_exchanges" field.
func SuccessfulExchangesNotIn ¶
func SuccessfulExchangesNotIn(vs ...int) predicate.PeerReputation
SuccessfulExchangesNotIn applies the NotIn predicate on the "successful_exchanges" field.
func TimeoutCount ¶
func TimeoutCount(v int) predicate.PeerReputation
TimeoutCount applies equality check predicate on the "timeout_count" field. It's identical to TimeoutCountEQ.
func TimeoutCountEQ ¶
func TimeoutCountEQ(v int) predicate.PeerReputation
TimeoutCountEQ applies the EQ predicate on the "timeout_count" field.
func TimeoutCountGT ¶
func TimeoutCountGT(v int) predicate.PeerReputation
TimeoutCountGT applies the GT predicate on the "timeout_count" field.
func TimeoutCountGTE ¶
func TimeoutCountGTE(v int) predicate.PeerReputation
TimeoutCountGTE applies the GTE predicate on the "timeout_count" field.
func TimeoutCountIn ¶
func TimeoutCountIn(vs ...int) predicate.PeerReputation
TimeoutCountIn applies the In predicate on the "timeout_count" field.
func TimeoutCountLT ¶
func TimeoutCountLT(v int) predicate.PeerReputation
TimeoutCountLT applies the LT predicate on the "timeout_count" field.
func TimeoutCountLTE ¶
func TimeoutCountLTE(v int) predicate.PeerReputation
TimeoutCountLTE applies the LTE predicate on the "timeout_count" field.
func TimeoutCountNEQ ¶
func TimeoutCountNEQ(v int) predicate.PeerReputation
TimeoutCountNEQ applies the NEQ predicate on the "timeout_count" field.
func TimeoutCountNotIn ¶
func TimeoutCountNotIn(vs ...int) predicate.PeerReputation
TimeoutCountNotIn applies the NotIn predicate on the "timeout_count" field.
func TrustScore ¶
func TrustScore(v float64) predicate.PeerReputation
TrustScore applies equality check predicate on the "trust_score" field. It's identical to TrustScoreEQ.
func TrustScoreEQ ¶
func TrustScoreEQ(v float64) predicate.PeerReputation
TrustScoreEQ applies the EQ predicate on the "trust_score" field.
func TrustScoreGT ¶
func TrustScoreGT(v float64) predicate.PeerReputation
TrustScoreGT applies the GT predicate on the "trust_score" field.
func TrustScoreGTE ¶
func TrustScoreGTE(v float64) predicate.PeerReputation
TrustScoreGTE applies the GTE predicate on the "trust_score" field.
func TrustScoreIn ¶
func TrustScoreIn(vs ...float64) predicate.PeerReputation
TrustScoreIn applies the In predicate on the "trust_score" field.
func TrustScoreLT ¶
func TrustScoreLT(v float64) predicate.PeerReputation
TrustScoreLT applies the LT predicate on the "trust_score" field.
func TrustScoreLTE ¶
func TrustScoreLTE(v float64) predicate.PeerReputation
TrustScoreLTE applies the LTE predicate on the "trust_score" field.
func TrustScoreNEQ ¶
func TrustScoreNEQ(v float64) predicate.PeerReputation
TrustScoreNEQ applies the NEQ predicate on the "trust_score" field.
func TrustScoreNotIn ¶
func TrustScoreNotIn(vs ...float64) predicate.PeerReputation
TrustScoreNotIn applies the NotIn predicate on the "trust_score" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.PeerReputation
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.PeerReputation
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.PeerReputation
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.PeerReputation
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.PeerReputation
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.PeerReputation
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.PeerReputation
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.PeerReputation
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.PeerReputation
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 PeerReputation queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFailedExchanges ¶
func ByFailedExchanges(opts ...sql.OrderTermOption) OrderOption
ByFailedExchanges orders the results by the failed_exchanges field.
func ByFirstSeen ¶
func ByFirstSeen(opts ...sql.OrderTermOption) OrderOption
ByFirstSeen orders the results by the first_seen field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastInteraction ¶
func ByLastInteraction(opts ...sql.OrderTermOption) OrderOption
ByLastInteraction orders the results by the last_interaction field.
func ByPeerDid ¶
func ByPeerDid(opts ...sql.OrderTermOption) OrderOption
ByPeerDid orders the results by the peer_did field.
func BySuccessfulExchanges ¶
func BySuccessfulExchanges(opts ...sql.OrderTermOption) OrderOption
BySuccessfulExchanges orders the results by the successful_exchanges field.
func ByTimeoutCount ¶
func ByTimeoutCount(opts ...sql.OrderTermOption) OrderOption
ByTimeoutCount orders the results by the timeout_count field.
func ByTrustScore ¶
func ByTrustScore(opts ...sql.OrderTermOption) OrderOption
ByTrustScore orders the results by the trust_score field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.