Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uuid.UUID) predicate.Message
- func AgentIDEQ(v uuid.UUID) predicate.Message
- func AgentIDIn(vs ...uuid.UUID) predicate.Message
- func AgentIDIsNil() predicate.Message
- func AgentIDNEQ(v uuid.UUID) predicate.Message
- func AgentIDNotIn(vs ...uuid.UUID) predicate.Message
- func AgentIDNotNil() predicate.Message
- func And(predicates ...predicate.Message) predicate.Message
- func CreateTime(v time.Time) predicate.Message
- func CreateTimeEQ(v time.Time) predicate.Message
- func CreateTimeGT(v time.Time) predicate.Message
- func CreateTimeGTE(v time.Time) predicate.Message
- func CreateTimeIn(vs ...time.Time) predicate.Message
- func CreateTimeLT(v time.Time) predicate.Message
- func CreateTimeLTE(v time.Time) predicate.Message
- func CreateTimeNEQ(v time.Time) predicate.Message
- func CreateTimeNotIn(vs ...time.Time) predicate.Message
- func HasAgent() predicate.Message
- func HasAgentWith(preds ...predicate.Agent) predicate.Message
- func HasModel() predicate.Message
- func HasModelWith(preds ...predicate.Model) predicate.Message
- func HasTask() predicate.Message
- func HasTaskWith(preds ...predicate.Task) predicate.Message
- func ID(id uuid.UUID) predicate.Message
- func IDEQ(id uuid.UUID) predicate.Message
- func IDGT(id uuid.UUID) predicate.Message
- func IDGTE(id uuid.UUID) predicate.Message
- func IDIn(ids ...uuid.UUID) predicate.Message
- func IDLT(id uuid.UUID) predicate.Message
- func IDLTE(id uuid.UUID) predicate.Message
- func IDNEQ(id uuid.UUID) predicate.Message
- func IDNotIn(ids ...uuid.UUID) predicate.Message
- func ModelID(v uuid.UUID) predicate.Message
- func ModelIDEQ(v uuid.UUID) predicate.Message
- func ModelIDIn(vs ...uuid.UUID) predicate.Message
- func ModelIDIsNil() predicate.Message
- func ModelIDNEQ(v uuid.UUID) predicate.Message
- func ModelIDNotIn(vs ...uuid.UUID) predicate.Message
- func ModelIDNotNil() predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func ProcessedTime(v time.Time) predicate.Message
- func ProcessedTimeEQ(v time.Time) predicate.Message
- func ProcessedTimeGT(v time.Time) predicate.Message
- func ProcessedTimeGTE(v time.Time) predicate.Message
- func ProcessedTimeIn(vs ...time.Time) predicate.Message
- func ProcessedTimeIsNil() predicate.Message
- func ProcessedTimeLT(v time.Time) predicate.Message
- func ProcessedTimeLTE(v time.Time) predicate.Message
- func ProcessedTimeNEQ(v time.Time) predicate.Message
- func ProcessedTimeNotIn(vs ...time.Time) predicate.Message
- func ProcessedTimeNotNil() predicate.Message
- func SourceEQ(v types.MessageSource) predicate.Message
- func SourceIn(vs ...types.MessageSource) predicate.Message
- func SourceNEQ(v types.MessageSource) predicate.Message
- func SourceNotIn(vs ...types.MessageSource) predicate.Message
- func SourceValidator(s types.MessageSource) error
- func TaskID(v uuid.UUID) predicate.Message
- func TaskIDEQ(v uuid.UUID) predicate.Message
- func TaskIDIn(vs ...uuid.UUID) predicate.Message
- func TaskIDNEQ(v uuid.UUID) predicate.Message
- func TaskIDNotIn(vs ...uuid.UUID) predicate.Message
- func UpdateTime(v time.Time) predicate.Message
- func UpdateTimeEQ(v time.Time) predicate.Message
- func UpdateTimeGT(v time.Time) predicate.Message
- func UpdateTimeGTE(v time.Time) predicate.Message
- func UpdateTimeIn(vs ...time.Time) predicate.Message
- func UpdateTimeLT(v time.Time) predicate.Message
- func UpdateTimeLTE(v time.Time) predicate.Message
- func UpdateTimeNEQ(v time.Time) predicate.Message
- func UpdateTimeNotIn(vs ...time.Time) predicate.Message
- func UsageIsNil() predicate.Message
- func UsageNotNil() predicate.Message
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByModelID(opts ...sql.OrderTermOption) OrderOption
- func ByProcessedTime(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByTaskField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTaskID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldSource, FieldContent, FieldUsage, FieldProcessedTime, FieldTaskID, FieldAgentID, FieldModelID, }
Columns holds all SQL columns for message fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDIsNil ¶
AgentIDIsNil applies the IsNil predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func AgentIDNotNil ¶
AgentIDNotNil applies the NotNil predicate on the "agent_id" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasAgentWith ¶
HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasModelWith ¶
HasModelWith applies the HasEdge predicate on the "model" edge with a given conditions (other predicates).
func HasTaskWith ¶
HasTaskWith applies the HasEdge predicate on the "task" edge with a given conditions (other predicates).
func ModelID ¶
ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.
func ModelIDIsNil ¶
ModelIDIsNil applies the IsNil predicate on the "model_id" field.
func ModelIDNEQ ¶
ModelIDNEQ applies the NEQ predicate on the "model_id" field.
func ModelIDNotIn ¶
ModelIDNotIn applies the NotIn predicate on the "model_id" field.
func ModelIDNotNil ¶
ModelIDNotNil applies the NotNil predicate on the "model_id" field.
func ProcessedTime ¶
ProcessedTime applies equality check predicate on the "processed_time" field. It's identical to ProcessedTimeEQ.
func ProcessedTimeEQ ¶
ProcessedTimeEQ applies the EQ predicate on the "processed_time" field.
func ProcessedTimeGT ¶
ProcessedTimeGT applies the GT predicate on the "processed_time" field.
func ProcessedTimeGTE ¶
ProcessedTimeGTE applies the GTE predicate on the "processed_time" field.
func ProcessedTimeIn ¶
ProcessedTimeIn applies the In predicate on the "processed_time" field.
func ProcessedTimeIsNil ¶
ProcessedTimeIsNil applies the IsNil predicate on the "processed_time" field.
func ProcessedTimeLT ¶
ProcessedTimeLT applies the LT predicate on the "processed_time" field.
func ProcessedTimeLTE ¶
ProcessedTimeLTE applies the LTE predicate on the "processed_time" field.
func ProcessedTimeNEQ ¶
ProcessedTimeNEQ applies the NEQ predicate on the "processed_time" field.
func ProcessedTimeNotIn ¶
ProcessedTimeNotIn applies the NotIn predicate on the "processed_time" field.
func ProcessedTimeNotNil ¶
ProcessedTimeNotNil applies the NotNil predicate on the "processed_time" field.
func SourceEQ ¶
func SourceEQ(v types.MessageSource) predicate.Message
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 ¶
TaskID applies equality check predicate on the "task_id" field. It's identical to TaskIDEQ.
func TaskIDNotIn ¶
TaskIDNotIn applies the NotIn predicate on the "task_id" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UsageIsNil ¶
UsageIsNil applies the IsNil predicate on the "usage" field.
func UsageNotNil ¶
UsageNotNil applies the NotNil predicate on the "usage" 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 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.