agent

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 6 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"
	// FieldSlug holds the string denoting the slug field in the database.
	FieldSlug = "slug"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldPersona holds the string denoting the persona field in the database.
	FieldPersona = "persona"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldVisibility holds the string denoting the visibility field in the database.
	FieldVisibility = "visibility"
	// FieldFeatured holds the string denoting the featured field in the database.
	FieldFeatured = "featured"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// 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"
	// EdgeCreator holds the string denoting the creator edge name in mutations.
	EdgeCreator = "creator"
	// EdgeSkills holds the string denoting the skills edge name in mutations.
	EdgeSkills = "skills"
	// EdgeRoles holds the string denoting the roles edge name in mutations.
	EdgeRoles = "roles"
	// Table holds the table name of the agent in the database.
	Table = "agents"
	// CreatorTable is the table that holds the creator relation/edge.
	CreatorTable = "agents"
	// CreatorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	CreatorInverseTable = "users"
	// CreatorColumn is the table column denoting the creator relation/edge.
	CreatorColumn = "created_by"
	// SkillsTable is the table that holds the skills relation/edge.
	SkillsTable = "agent_skills"
	// SkillsInverseTable is the table name for the AgentSkill entity.
	// It exists in this package in order to avoid circular dependency with the "agentskill" package.
	SkillsInverseTable = "agent_skills"
	// SkillsColumn is the table column denoting the skills relation/edge.
	SkillsColumn = "agent_id"
	// RolesTable is the table that holds the roles relation/edge.
	RolesTable = "agent_roles"
	// RolesInverseTable is the table name for the AgentRole entity.
	// It exists in this package in order to avoid circular dependency with the "agentrole" package.
	RolesInverseTable = "agent_roles"
	// RolesColumn is the table column denoting the roles relation/edge.
	RolesColumn = "agent_id"
)
View Source
const DefaultVisibility = VisibilityPrivate

VisibilityPrivate is the default value of the Visibility enum.

Variables

View Source
var (
	// SlugValidator is a validator for the "slug" field. It is called by the builders before save.
	SlugValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultFeatured holds the default value on creation for the "featured" field.
	DefaultFeatured bool
	// 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
)

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 CreatedBy

func CreatedBy(v uuid.UUID) predicate.Agent

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v uuid.UUID) predicate.Agent

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...uuid.UUID) predicate.Agent

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v uuid.UUID) predicate.Agent

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...uuid.UUID) predicate.Agent

CreatedByNotIn applies the NotIn predicate on the "created_by" 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 Featured(v bool) predicate.Agent

Featured applies equality check predicate on the "featured" field. It's identical to FeaturedEQ.

func FeaturedEQ

func FeaturedEQ(v bool) predicate.Agent

FeaturedEQ applies the EQ predicate on the "featured" field.

func FeaturedNEQ

func FeaturedNEQ(v bool) predicate.Agent

FeaturedNEQ applies the NEQ predicate on the "featured" field.

func HasCreator

func HasCreator() predicate.Agent

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.User) predicate.Agent

HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).

func HasRoles

func HasRoles() predicate.Agent

HasRoles applies the HasEdge predicate on the "roles" edge.

func HasRolesWith

func HasRolesWith(preds ...predicate.AgentRole) predicate.Agent

HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).

func HasSkills

func HasSkills() predicate.Agent

HasSkills applies the HasEdge predicate on the "skills" edge.

func HasSkillsWith

func HasSkillsWith(preds ...predicate.AgentSkill) predicate.Agent

HasSkillsWith applies the HasEdge predicate on the "skills" edge with a given conditions (other predicates).

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 Model

func Model(v string) predicate.Agent

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.Agent

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.Agent

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.Agent

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.Agent

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.Agent

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.Agent

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Agent

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Agent

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

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

ModelIn applies the In predicate on the "model" field.

func ModelIsNil

func ModelIsNil() predicate.Agent

ModelIsNil applies the IsNil predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.Agent

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.Agent

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.Agent

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

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

ModelNotIn applies the NotIn predicate on the "model" field.

func ModelNotNil

func ModelNotNil() predicate.Agent

ModelNotNil applies the NotNil predicate on the "model" 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 Persona

func Persona(v string) predicate.Agent

Persona applies equality check predicate on the "persona" field. It's identical to PersonaEQ.

func PersonaContains

func PersonaContains(v string) predicate.Agent

PersonaContains applies the Contains predicate on the "persona" field.

func PersonaContainsFold

func PersonaContainsFold(v string) predicate.Agent

PersonaContainsFold applies the ContainsFold predicate on the "persona" field.

func PersonaEQ

func PersonaEQ(v string) predicate.Agent

PersonaEQ applies the EQ predicate on the "persona" field.

func PersonaEqualFold

func PersonaEqualFold(v string) predicate.Agent

PersonaEqualFold applies the EqualFold predicate on the "persona" field.

func PersonaGT

func PersonaGT(v string) predicate.Agent

PersonaGT applies the GT predicate on the "persona" field.

func PersonaGTE

func PersonaGTE(v string) predicate.Agent

PersonaGTE applies the GTE predicate on the "persona" field.

func PersonaHasPrefix

func PersonaHasPrefix(v string) predicate.Agent

PersonaHasPrefix applies the HasPrefix predicate on the "persona" field.

func PersonaHasSuffix

func PersonaHasSuffix(v string) predicate.Agent

PersonaHasSuffix applies the HasSuffix predicate on the "persona" field.

func PersonaIn

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

PersonaIn applies the In predicate on the "persona" field.

func PersonaIsNil

func PersonaIsNil() predicate.Agent

PersonaIsNil applies the IsNil predicate on the "persona" field.

func PersonaLT

func PersonaLT(v string) predicate.Agent

PersonaLT applies the LT predicate on the "persona" field.

func PersonaLTE

func PersonaLTE(v string) predicate.Agent

PersonaLTE applies the LTE predicate on the "persona" field.

func PersonaNEQ

func PersonaNEQ(v string) predicate.Agent

PersonaNEQ applies the NEQ predicate on the "persona" field.

func PersonaNotIn

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

PersonaNotIn applies the NotIn predicate on the "persona" field.

func PersonaNotNil

func PersonaNotNil() predicate.Agent

PersonaNotNil applies the NotNil predicate on the "persona" field.

func Provider

func Provider(v string) predicate.Agent

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.Agent

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.Agent

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

func ProviderEQ(v string) predicate.Agent

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.Agent

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

func ProviderGT(v string) predicate.Agent

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

func ProviderGTE(v string) predicate.Agent

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.Agent

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.Agent

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

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

ProviderIn applies the In predicate on the "provider" field.

func ProviderIsNil

func ProviderIsNil() predicate.Agent

ProviderIsNil applies the IsNil predicate on the "provider" field.

func ProviderLT

func ProviderLT(v string) predicate.Agent

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

func ProviderLTE(v string) predicate.Agent

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

func ProviderNEQ(v string) predicate.Agent

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

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

ProviderNotIn applies the NotIn predicate on the "provider" field.

func ProviderNotNil

func ProviderNotNil() predicate.Agent

ProviderNotNil applies the NotNil predicate on the "provider" field.

func Slug

func Slug(v string) predicate.Agent

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.Agent

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.Agent

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.Agent

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.Agent

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.Agent

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.Agent

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Agent

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Agent

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

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

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.Agent

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.Agent

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.Agent

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

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

SlugNotIn applies the NotIn predicate on the "slug" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Agent

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Agent

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Agent

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Agent

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Agent

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Agent

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Agent

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VisibilityEQ

func VisibilityEQ(v Visibility) predicate.Agent

VisibilityEQ applies the EQ predicate on the "visibility" field.

func VisibilityIn

func VisibilityIn(vs ...Visibility) predicate.Agent

VisibilityIn applies the In predicate on the "visibility" field.

func VisibilityNEQ

func VisibilityNEQ(v Visibility) predicate.Agent

VisibilityNEQ applies the NEQ predicate on the "visibility" field.

func VisibilityNotIn

func VisibilityNotIn(vs ...Visibility) predicate.Agent

VisibilityNotIn applies the NotIn predicate on the "visibility" field.

func VisibilityValidator

func VisibilityValidator(v Visibility) error

VisibilityValidator is a validator for the "visibility" field enum values. It is called by the builders before save.

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 ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByCreatorField

func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption

ByCreatorField orders the results by creator field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByFeatured

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

ByFeatured orders the results by the featured field.

func ByID

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

ByID orders the results by the id field.

func ByModel

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

ByModel orders the results by the model field.

func ByName

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

ByName orders the results by the name field.

func ByPersona

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

ByPersona orders the results by the persona field.

func ByProvider

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

ByProvider orders the results by the provider field.

func ByRoles

func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRoles orders the results by roles terms.

func ByRolesCount

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

ByRolesCount orders the results by roles count.

func BySkills

func BySkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySkills orders the results by skills terms.

func BySkillsCount

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

BySkillsCount orders the results by skills count.

func BySlug

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

BySlug orders the results by the slug field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVisibility

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

ByVisibility orders the results by the visibility field.

type Visibility

type Visibility string

Visibility defines the type for the "visibility" enum field.

const (
	VisibilityPrivate Visibility = "private"
	VisibilityListed  Visibility = "listed"
)

Visibility values.

func (Visibility) String

func (v Visibility) String() string

Jump to

Keyboard shortcuts

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