agent

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 3 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldVoice holds the string denoting the voice field in the database.
	FieldVoice = "voice"
	// FieldEmoji holds the string denoting the emoji field in the database.
	FieldEmoji = "emoji"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the agent in the database.
	Table = "agents"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for agent fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Agent

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Agent

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Agent

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Agent

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Agent

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Agent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Agent

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Agent

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Agent

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Agent

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Agent

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Agent

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Agent

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Agent

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Agent

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Agent

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

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

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Agent

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Agent

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Agent

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Agent

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

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

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Agent

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Emoji

func Emoji(v string) predicate.Agent

Emoji applies equality check predicate on the "emoji" field. It's identical to EmojiEQ.

func EmojiContains

func EmojiContains(v string) predicate.Agent

EmojiContains applies the Contains predicate on the "emoji" field.

func EmojiContainsFold

func EmojiContainsFold(v string) predicate.Agent

EmojiContainsFold applies the ContainsFold predicate on the "emoji" field.

func EmojiEQ

func EmojiEQ(v string) predicate.Agent

EmojiEQ applies the EQ predicate on the "emoji" field.

func EmojiEqualFold

func EmojiEqualFold(v string) predicate.Agent

EmojiEqualFold applies the EqualFold predicate on the "emoji" field.

func EmojiGT

func EmojiGT(v string) predicate.Agent

EmojiGT applies the GT predicate on the "emoji" field.

func EmojiGTE

func EmojiGTE(v string) predicate.Agent

EmojiGTE applies the GTE predicate on the "emoji" field.

func EmojiHasPrefix

func EmojiHasPrefix(v string) predicate.Agent

EmojiHasPrefix applies the HasPrefix predicate on the "emoji" field.

func EmojiHasSuffix

func EmojiHasSuffix(v string) predicate.Agent

EmojiHasSuffix applies the HasSuffix predicate on the "emoji" field.

func EmojiIn

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

EmojiIn applies the In predicate on the "emoji" field.

func EmojiIsNil

func EmojiIsNil() predicate.Agent

EmojiIsNil applies the IsNil predicate on the "emoji" field.

func EmojiLT

func EmojiLT(v string) predicate.Agent

EmojiLT applies the LT predicate on the "emoji" field.

func EmojiLTE

func EmojiLTE(v string) predicate.Agent

EmojiLTE applies the LTE predicate on the "emoji" field.

func EmojiNEQ

func EmojiNEQ(v string) predicate.Agent

EmojiNEQ applies the NEQ predicate on the "emoji" field.

func EmojiNotIn

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

EmojiNotIn applies the NotIn predicate on the "emoji" field.

func EmojiNotNil

func EmojiNotNil() predicate.Agent

EmojiNotNil applies the NotNil predicate on the "emoji" field.

func ID

func ID(id int) predicate.Agent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Agent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Agent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Agent

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Agent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Agent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Agent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Agent

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

func NameContains

func NameContains(v string) predicate.Agent

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

func NameContainsFold

func NameContainsFold(v string) predicate.Agent

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

func NameEQ

func NameEQ(v string) predicate.Agent

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

func NameEqualFold

func NameEqualFold(v string) predicate.Agent

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

func NameGT

func NameGT(v string) predicate.Agent

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

func NameGTE

func NameGTE(v string) predicate.Agent

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Agent

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Agent

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Agent

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

func NameLTE

func NameLTE(v string) predicate.Agent

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

func NameNEQ

func NameNEQ(v string) predicate.Agent

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

func NameNotIn

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

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.Agent) predicate.Agent

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

func Voice

func Voice(v string) predicate.Agent

Voice applies equality check predicate on the "voice" field. It's identical to VoiceEQ.

func VoiceContains

func VoiceContains(v string) predicate.Agent

VoiceContains applies the Contains predicate on the "voice" field.

func VoiceContainsFold

func VoiceContainsFold(v string) predicate.Agent

VoiceContainsFold applies the ContainsFold predicate on the "voice" field.

func VoiceEQ

func VoiceEQ(v string) predicate.Agent

VoiceEQ applies the EQ predicate on the "voice" field.

func VoiceEqualFold

func VoiceEqualFold(v string) predicate.Agent

VoiceEqualFold applies the EqualFold predicate on the "voice" field.

func VoiceGT

func VoiceGT(v string) predicate.Agent

VoiceGT applies the GT predicate on the "voice" field.

func VoiceGTE

func VoiceGTE(v string) predicate.Agent

VoiceGTE applies the GTE predicate on the "voice" field.

func VoiceHasPrefix

func VoiceHasPrefix(v string) predicate.Agent

VoiceHasPrefix applies the HasPrefix predicate on the "voice" field.

func VoiceHasSuffix

func VoiceHasSuffix(v string) predicate.Agent

VoiceHasSuffix applies the HasSuffix predicate on the "voice" field.

func VoiceIn

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

VoiceIn applies the In predicate on the "voice" field.

func VoiceIsNil

func VoiceIsNil() predicate.Agent

VoiceIsNil applies the IsNil predicate on the "voice" field.

func VoiceLT

func VoiceLT(v string) predicate.Agent

VoiceLT applies the LT predicate on the "voice" field.

func VoiceLTE

func VoiceLTE(v string) predicate.Agent

VoiceLTE applies the LTE predicate on the "voice" field.

func VoiceNEQ

func VoiceNEQ(v string) predicate.Agent

VoiceNEQ applies the NEQ predicate on the "voice" field.

func VoiceNotIn

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

VoiceNotIn applies the NotIn predicate on the "voice" field.

func VoiceNotNil

func VoiceNotNil() predicate.Agent

VoiceNotNil applies the NotNil predicate on the "voice" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Agent queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByEmoji

func ByEmoji(opts ...sql.OrderTermOption) OrderOption

ByEmoji orders the results by the emoji field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByVoice

func ByVoice(opts ...sql.OrderTermOption) OrderOption

ByVoice orders the results by the voice field.

Jump to

Keyboard shortcuts

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