command

package
v0.0.0-...-52fa7fc Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the command type in the database.
	Label = "command"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAgentID holds the string denoting the agent_id field in the database.
	FieldAgentID = "agent_id"
	// FieldCmd holds the string denoting the cmd field in the database.
	FieldCmd = "cmd"
	// FieldVisible holds the string denoting the visible field in the database.
	FieldVisible = "visible"
	// FieldAuthorID holds the string denoting the author_id field in the database.
	FieldAuthorID = "author_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldClosedAt holds the string denoting the closed_at field in the database.
	FieldClosedAt = "closed_at"
	// EdgeAgent holds the string denoting the agent edge name in mutations.
	EdgeAgent = "agent"
	// EdgeOperator holds the string denoting the operator edge name in mutations.
	EdgeOperator = "operator"
	// EdgeMessage holds the string denoting the message edge name in mutations.
	EdgeMessage = "message"
	// EdgeTask holds the string denoting the task edge name in mutations.
	EdgeTask = "task"
	// Table holds the table name of the command in the database.
	Table = "command"
	// AgentTable is the table that holds the agent relation/edge.
	AgentTable = "command"
	// 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 = "agent"
	// AgentColumn is the table column denoting the agent relation/edge.
	AgentColumn = "agent_id"
	// OperatorTable is the table that holds the operator relation/edge.
	OperatorTable = "command"
	// OperatorInverseTable is the table name for the Operator entity.
	// It exists in this package in order to avoid circular dependency with the "operator" package.
	OperatorInverseTable = "operator"
	// OperatorColumn is the table column denoting the operator relation/edge.
	OperatorColumn = "author_id"
	// MessageTable is the table that holds the message relation/edge.
	MessageTable = "message"
	// MessageInverseTable is the table name for the Message entity.
	// It exists in this package in order to avoid circular dependency with the "message" package.
	MessageInverseTable = "message"
	// MessageColumn is the table column denoting the message relation/edge.
	MessageColumn = "command_id"
	// TaskTable is the table that holds the task relation/edge.
	TaskTable = "task"
	// 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 = "task"
	// TaskColumn is the table column denoting the task relation/edge.
	TaskColumn = "command_id"
)

Variables

View Source
var (
	// CmdValidator is a validator for the "cmd" field. It is called by the builders before save.
	CmdValidator 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 command fields.

Functions

func AgentID

func AgentID(v uint32) predicate.Command

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

func AgentIDEQ

func AgentIDEQ(v uint32) predicate.Command

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

func AgentIDIn

func AgentIDIn(vs ...uint32) predicate.Command

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

func AgentIDNEQ

func AgentIDNEQ(v uint32) predicate.Command

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

func AgentIDNotIn

func AgentIDNotIn(vs ...uint32) predicate.Command

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

func And

func And(predicates ...predicate.Command) predicate.Command

And groups predicates with the AND operator between them.

func AuthorID

func AuthorID(v int64) predicate.Command

AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.

func AuthorIDEQ

func AuthorIDEQ(v int64) predicate.Command

AuthorIDEQ applies the EQ predicate on the "author_id" field.

func AuthorIDIn

func AuthorIDIn(vs ...int64) predicate.Command

AuthorIDIn applies the In predicate on the "author_id" field.

func AuthorIDNEQ

func AuthorIDNEQ(v int64) predicate.Command

AuthorIDNEQ applies the NEQ predicate on the "author_id" field.

func AuthorIDNotIn

func AuthorIDNotIn(vs ...int64) predicate.Command

AuthorIDNotIn applies the NotIn predicate on the "author_id" field.

func ClosedAt

func ClosedAt(v time.Time) predicate.Command

ClosedAt applies equality check predicate on the "closed_at" field. It's identical to ClosedAtEQ.

func ClosedAtEQ

func ClosedAtEQ(v time.Time) predicate.Command

ClosedAtEQ applies the EQ predicate on the "closed_at" field.

func ClosedAtGT

func ClosedAtGT(v time.Time) predicate.Command

ClosedAtGT applies the GT predicate on the "closed_at" field.

func ClosedAtGTE

func ClosedAtGTE(v time.Time) predicate.Command

ClosedAtGTE applies the GTE predicate on the "closed_at" field.

func ClosedAtIn

func ClosedAtIn(vs ...time.Time) predicate.Command

ClosedAtIn applies the In predicate on the "closed_at" field.

func ClosedAtIsNil

func ClosedAtIsNil() predicate.Command

ClosedAtIsNil applies the IsNil predicate on the "closed_at" field.

func ClosedAtLT

func ClosedAtLT(v time.Time) predicate.Command

ClosedAtLT applies the LT predicate on the "closed_at" field.

func ClosedAtLTE

func ClosedAtLTE(v time.Time) predicate.Command

ClosedAtLTE applies the LTE predicate on the "closed_at" field.

func ClosedAtNEQ

func ClosedAtNEQ(v time.Time) predicate.Command

ClosedAtNEQ applies the NEQ predicate on the "closed_at" field.

func ClosedAtNotIn

func ClosedAtNotIn(vs ...time.Time) predicate.Command

ClosedAtNotIn applies the NotIn predicate on the "closed_at" field.

func ClosedAtNotNil

func ClosedAtNotNil() predicate.Command

ClosedAtNotNil applies the NotNil predicate on the "closed_at" field.

func Cmd

func Cmd(v string) predicate.Command

Cmd applies equality check predicate on the "cmd" field. It's identical to CmdEQ.

func CmdContains

func CmdContains(v string) predicate.Command

CmdContains applies the Contains predicate on the "cmd" field.

func CmdContainsFold

func CmdContainsFold(v string) predicate.Command

CmdContainsFold applies the ContainsFold predicate on the "cmd" field.

func CmdEQ

func CmdEQ(v string) predicate.Command

CmdEQ applies the EQ predicate on the "cmd" field.

func CmdEqualFold

func CmdEqualFold(v string) predicate.Command

CmdEqualFold applies the EqualFold predicate on the "cmd" field.

func CmdGT

func CmdGT(v string) predicate.Command

CmdGT applies the GT predicate on the "cmd" field.

func CmdGTE

func CmdGTE(v string) predicate.Command

CmdGTE applies the GTE predicate on the "cmd" field.

func CmdHasPrefix

func CmdHasPrefix(v string) predicate.Command

CmdHasPrefix applies the HasPrefix predicate on the "cmd" field.

func CmdHasSuffix

func CmdHasSuffix(v string) predicate.Command

CmdHasSuffix applies the HasSuffix predicate on the "cmd" field.

func CmdIn

func CmdIn(vs ...string) predicate.Command

CmdIn applies the In predicate on the "cmd" field.

func CmdLT

func CmdLT(v string) predicate.Command

CmdLT applies the LT predicate on the "cmd" field.

func CmdLTE

func CmdLTE(v string) predicate.Command

CmdLTE applies the LTE predicate on the "cmd" field.

func CmdNEQ

func CmdNEQ(v string) predicate.Command

CmdNEQ applies the NEQ predicate on the "cmd" field.

func CmdNotIn

func CmdNotIn(vs ...string) predicate.Command

CmdNotIn applies the NotIn predicate on the "cmd" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Command

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Command

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Command

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Command

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Command

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Command

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Command

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

func CreatedAtNotIn

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

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

func HasAgent

func HasAgent() predicate.Command

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

func HasAgentWith

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

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

func HasMessage

func HasMessage() predicate.Command

HasMessage applies the HasEdge predicate on the "message" edge.

func HasMessageWith

func HasMessageWith(preds ...predicate.Message) predicate.Command

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

func HasOperator

func HasOperator() predicate.Command

HasOperator applies the HasEdge predicate on the "operator" edge.

func HasOperatorWith

func HasOperatorWith(preds ...predicate.Operator) predicate.Command

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

func HasTask

func HasTask() predicate.Command

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

func HasTaskWith

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

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

func ID

func ID(id int64) predicate.Command

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Command

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Command

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Command

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Command

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Command

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Command

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Command

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Command

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Command) predicate.Command

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 Visible

func Visible(v bool) predicate.Command

Visible applies equality check predicate on the "visible" field. It's identical to VisibleEQ.

func VisibleEQ

func VisibleEQ(v bool) predicate.Command

VisibleEQ applies the EQ predicate on the "visible" field.

func VisibleNEQ

func VisibleNEQ(v bool) predicate.Command

VisibleNEQ applies the NEQ predicate on the "visible" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Command 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 ByAuthorID

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

ByAuthorID orders the results by the author_id field.

func ByClosedAt

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

ByClosedAt orders the results by the closed_at field.

func ByCmd

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

ByCmd orders the results by the cmd field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByMessage

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

ByMessage orders the results by message terms.

func ByMessageCount

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

ByMessageCount orders the results by message count.

func ByOperatorField

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

ByOperatorField orders the results by operator field.

func ByTask

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

ByTask orders the results by task terms.

func ByTaskCount

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

ByTaskCount orders the results by task count.

func ByVisible

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

ByVisible orders the results by the visible field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳