agent

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for agent fields.

Functions

func Active added in v0.0.2

func Active(v bool) predicate.Agent

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

func ActiveEQ added in v0.0.2

func ActiveEQ(v bool) predicate.Agent

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

func ActiveNEQ added in v0.0.2

func ActiveNEQ(v bool) predicate.Agent

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

func And

func And(predicates ...predicate.Agent) predicate.Agent

And groups predicates with the AND operator between them.

func ID

func ID(id uuid.UUID) predicate.Agent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Agent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Agent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Agent

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Agent

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Agent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Agent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Agent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Agent

IDNotIn applies the NotIn predicate on the ID field.

func LastUpdateTime added in v0.0.2

func LastUpdateTime(v time.Time) predicate.Agent

LastUpdateTime applies equality check predicate on the "last_update_time" field. It's identical to LastUpdateTimeEQ.

func LastUpdateTimeEQ added in v0.0.2

func LastUpdateTimeEQ(v time.Time) predicate.Agent

LastUpdateTimeEQ applies the EQ predicate on the "last_update_time" field.

func LastUpdateTimeGT added in v0.0.2

func LastUpdateTimeGT(v time.Time) predicate.Agent

LastUpdateTimeGT applies the GT predicate on the "last_update_time" field.

func LastUpdateTimeGTE added in v0.0.2

func LastUpdateTimeGTE(v time.Time) predicate.Agent

LastUpdateTimeGTE applies the GTE predicate on the "last_update_time" field.

func LastUpdateTimeIn added in v0.0.2

func LastUpdateTimeIn(vs ...time.Time) predicate.Agent

LastUpdateTimeIn applies the In predicate on the "last_update_time" field.

func LastUpdateTimeLT added in v0.0.2

func LastUpdateTimeLT(v time.Time) predicate.Agent

LastUpdateTimeLT applies the LT predicate on the "last_update_time" field.

func LastUpdateTimeLTE added in v0.0.2

func LastUpdateTimeLTE(v time.Time) predicate.Agent

LastUpdateTimeLTE applies the LTE predicate on the "last_update_time" field.

func LastUpdateTimeNEQ added in v0.0.2

func LastUpdateTimeNEQ(v time.Time) predicate.Agent

LastUpdateTimeNEQ applies the NEQ predicate on the "last_update_time" field.

func LastUpdateTimeNotIn added in v0.0.2

func LastUpdateTimeNotIn(vs ...time.Time) predicate.Agent

LastUpdateTimeNotIn applies the NotIn predicate on the "last_update_time" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Agent) predicate.Agent

Or groups predicates with the OR operator between them.

func PeerID added in v0.0.2

func PeerID(v string) predicate.Agent

PeerID applies equality check predicate on the "peer_id" field. It's identical to PeerIDEQ.

func PeerIDContains added in v0.0.2

func PeerIDContains(v string) predicate.Agent

PeerIDContains applies the Contains predicate on the "peer_id" field.

func PeerIDContainsFold added in v0.0.2

func PeerIDContainsFold(v string) predicate.Agent

PeerIDContainsFold applies the ContainsFold predicate on the "peer_id" field.

func PeerIDEQ added in v0.0.2

func PeerIDEQ(v string) predicate.Agent

PeerIDEQ applies the EQ predicate on the "peer_id" field.

func PeerIDEqualFold added in v0.0.2

func PeerIDEqualFold(v string) predicate.Agent

PeerIDEqualFold applies the EqualFold predicate on the "peer_id" field.

func PeerIDGT added in v0.0.2

func PeerIDGT(v string) predicate.Agent

PeerIDGT applies the GT predicate on the "peer_id" field.

func PeerIDGTE added in v0.0.2

func PeerIDGTE(v string) predicate.Agent

PeerIDGTE applies the GTE predicate on the "peer_id" field.

func PeerIDHasPrefix added in v0.0.2

func PeerIDHasPrefix(v string) predicate.Agent

PeerIDHasPrefix applies the HasPrefix predicate on the "peer_id" field.

func PeerIDHasSuffix added in v0.0.2

func PeerIDHasSuffix(v string) predicate.Agent

PeerIDHasSuffix applies the HasSuffix predicate on the "peer_id" field.

func PeerIDIn added in v0.0.2

func PeerIDIn(vs ...string) predicate.Agent

PeerIDIn applies the In predicate on the "peer_id" field.

func PeerIDLT added in v0.0.2

func PeerIDLT(v string) predicate.Agent

PeerIDLT applies the LT predicate on the "peer_id" field.

func PeerIDLTE added in v0.0.2

func PeerIDLTE(v string) predicate.Agent

PeerIDLTE applies the LTE predicate on the "peer_id" field.

func PeerIDNEQ added in v0.0.2

func PeerIDNEQ(v string) predicate.Agent

PeerIDNEQ applies the NEQ predicate on the "peer_id" field.

func PeerIDNotIn added in v0.0.2

func PeerIDNotIn(vs ...string) predicate.Agent

PeerIDNotIn applies the NotIn predicate on the "peer_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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