message

package
v0.0.0-...-4b2b8ef Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the message type in the database.
	Label = "message"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldUsage holds the string denoting the usage field in the database.
	FieldUsage = "usage"
	// FieldProcessedTime holds the string denoting the processed_time field in the database.
	FieldProcessedTime = "processed_time"
	// FieldTaskID holds the string denoting the task_id field in the database.
	FieldTaskID = "task_id"
	// FieldAgentID holds the string denoting the agent_id field in the database.
	FieldAgentID = "agent_id"
	// FieldModelID holds the string denoting the model_id field in the database.
	FieldModelID = "model_id"
	// EdgeTask holds the string denoting the task edge name in mutations.
	EdgeTask = "task"
	// EdgeAgent holds the string denoting the agent edge name in mutations.
	EdgeAgent = "agent"
	// EdgeModel holds the string denoting the model edge name in mutations.
	EdgeModel = "model"
	// Table holds the table name of the message in the database.
	Table = "messages"
	// TaskTable is the table that holds the task relation/edge.
	TaskTable = "messages"
	// TaskInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TaskInverseTable = "tasks"
	// TaskColumn is the table column denoting the task relation/edge.
	TaskColumn = "task_id"
	// AgentTable is the table that holds the agent relation/edge.
	AgentTable = "messages"
	// AgentInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	AgentInverseTable = "agents"
	// AgentColumn is the table column denoting the agent relation/edge.
	AgentColumn = "agent_id"
	// ModelTable is the table that holds the model relation/edge.
	ModelTable = "messages"
	// ModelInverseTable is the table name for the Model entity.
	// It exists in this package in order to avoid circular dependency with the "model" package.
	ModelInverseTable = "models"
	// ModelColumn is the table column denoting the model relation/edge.
	ModelColumn = "model_id"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for message fields.

Functions

func AgentID

func AgentID(v uuid.UUID) predicate.Message

AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.

func AgentIDEQ

func AgentIDEQ(v uuid.UUID) predicate.Message

AgentIDEQ applies the EQ predicate on the "agent_id" field.

func AgentIDIn

func AgentIDIn(vs ...uuid.UUID) predicate.Message

AgentIDIn applies the In predicate on the "agent_id" field.

func AgentIDIsNil

func AgentIDIsNil() predicate.Message

AgentIDIsNil applies the IsNil predicate on the "agent_id" field.

func AgentIDNEQ

func AgentIDNEQ(v uuid.UUID) predicate.Message

AgentIDNEQ applies the NEQ predicate on the "agent_id" field.

func AgentIDNotIn

func AgentIDNotIn(vs ...uuid.UUID) predicate.Message

AgentIDNotIn applies the NotIn predicate on the "agent_id" field.

func AgentIDNotNil

func AgentIDNotNil() predicate.Message

AgentIDNotNil applies the NotNil predicate on the "agent_id" field.

func And

func And(predicates ...predicate.Message) predicate.Message

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Message

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Message

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Message

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Message

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Message

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Message

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Message

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Message

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Message

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasAgent

func HasAgent() predicate.Message

HasAgent applies the HasEdge predicate on the "agent" edge.

func HasAgentWith

func HasAgentWith(preds ...predicate.Agent) predicate.Message

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

func HasModel

func HasModel() predicate.Message

HasModel applies the HasEdge predicate on the "model" edge.

func HasModelWith

func HasModelWith(preds ...predicate.Model) predicate.Message

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

func HasTask

func HasTask() predicate.Message

HasTask applies the HasEdge predicate on the "task" edge.

func HasTaskWith

func HasTaskWith(preds ...predicate.Task) predicate.Message

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

func ID

func ID(id uuid.UUID) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func ModelID

func ModelID(v uuid.UUID) predicate.Message

ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.

func ModelIDEQ

func ModelIDEQ(v uuid.UUID) predicate.Message

ModelIDEQ applies the EQ predicate on the "model_id" field.

func ModelIDIn

func ModelIDIn(vs ...uuid.UUID) predicate.Message

ModelIDIn applies the In predicate on the "model_id" field.

func ModelIDIsNil

func ModelIDIsNil() predicate.Message

ModelIDIsNil applies the IsNil predicate on the "model_id" field.

func ModelIDNEQ

func ModelIDNEQ(v uuid.UUID) predicate.Message

ModelIDNEQ applies the NEQ predicate on the "model_id" field.

func ModelIDNotIn

func ModelIDNotIn(vs ...uuid.UUID) predicate.Message

ModelIDNotIn applies the NotIn predicate on the "model_id" field.

func ModelIDNotNil

func ModelIDNotNil() predicate.Message

ModelIDNotNil applies the NotNil predicate on the "model_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Message) predicate.Message

Or groups predicates with the OR operator between them.

func ProcessedTime

func ProcessedTime(v time.Time) predicate.Message

ProcessedTime applies equality check predicate on the "processed_time" field. It's identical to ProcessedTimeEQ.

func ProcessedTimeEQ

func ProcessedTimeEQ(v time.Time) predicate.Message

ProcessedTimeEQ applies the EQ predicate on the "processed_time" field.

func ProcessedTimeGT

func ProcessedTimeGT(v time.Time) predicate.Message

ProcessedTimeGT applies the GT predicate on the "processed_time" field.

func ProcessedTimeGTE

func ProcessedTimeGTE(v time.Time) predicate.Message

ProcessedTimeGTE applies the GTE predicate on the "processed_time" field.

func ProcessedTimeIn

func ProcessedTimeIn(vs ...time.Time) predicate.Message

ProcessedTimeIn applies the In predicate on the "processed_time" field.

func ProcessedTimeIsNil

func ProcessedTimeIsNil() predicate.Message

ProcessedTimeIsNil applies the IsNil predicate on the "processed_time" field.

func ProcessedTimeLT

func ProcessedTimeLT(v time.Time) predicate.Message

ProcessedTimeLT applies the LT predicate on the "processed_time" field.

func ProcessedTimeLTE

func ProcessedTimeLTE(v time.Time) predicate.Message

ProcessedTimeLTE applies the LTE predicate on the "processed_time" field.

func ProcessedTimeNEQ

func ProcessedTimeNEQ(v time.Time) predicate.Message

ProcessedTimeNEQ applies the NEQ predicate on the "processed_time" field.

func ProcessedTimeNotIn

func ProcessedTimeNotIn(vs ...time.Time) predicate.Message

ProcessedTimeNotIn applies the NotIn predicate on the "processed_time" field.

func ProcessedTimeNotNil

func ProcessedTimeNotNil() predicate.Message

ProcessedTimeNotNil applies the NotNil predicate on the "processed_time" field.

func SourceEQ

SourceEQ applies the EQ predicate on the "source" field.

func SourceIn

func SourceIn(vs ...types.MessageSource) predicate.Message

SourceIn applies the In predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v types.MessageSource) predicate.Message

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...types.MessageSource) predicate.Message

SourceNotIn applies the NotIn predicate on the "source" field.

func SourceValidator

func SourceValidator(s types.MessageSource) error

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

func TaskID

func TaskID(v uuid.UUID) predicate.Message

TaskID applies equality check predicate on the "task_id" field. It's identical to TaskIDEQ.

func TaskIDEQ

func TaskIDEQ(v uuid.UUID) predicate.Message

TaskIDEQ applies the EQ predicate on the "task_id" field.

func TaskIDIn

func TaskIDIn(vs ...uuid.UUID) predicate.Message

TaskIDIn applies the In predicate on the "task_id" field.

func TaskIDNEQ

func TaskIDNEQ(v uuid.UUID) predicate.Message

TaskIDNEQ applies the NEQ predicate on the "task_id" field.

func TaskIDNotIn

func TaskIDNotIn(vs ...uuid.UUID) predicate.Message

TaskIDNotIn applies the NotIn predicate on the "task_id" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Message

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Message

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Message

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Message

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Message

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Message

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Message

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Message

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Message

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UsageIsNil

func UsageIsNil() predicate.Message

UsageIsNil applies the IsNil predicate on the "usage" field.

func UsageNotNil

func UsageNotNil() predicate.Message

UsageNotNil applies the NotNil predicate on the "usage" 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 Message queries.

func ByAgentField

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

ByAgentField orders the results by agent field.

func ByAgentID

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

ByAgentID orders the results by the agent_id field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByID

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

ByID orders the results by the id field.

func ByModelField

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

ByModelField orders the results by model field.

func ByModelID

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

ByModelID orders the results by the model_id field.

func ByProcessedTime

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

ByProcessedTime orders the results by the processed_time field.

func BySource

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

BySource orders the results by the source field.

func ByTaskField

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

ByTaskField orders the results by task field.

func ByTaskID

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

ByTaskID orders the results by the task_id field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

Jump to

Keyboard shortcuts

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