Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uint32) predicate.Command
- func AgentIDEQ(v uint32) predicate.Command
- func AgentIDIn(vs ...uint32) predicate.Command
- func AgentIDNEQ(v uint32) predicate.Command
- func AgentIDNotIn(vs ...uint32) predicate.Command
- func And(predicates ...predicate.Command) predicate.Command
- func AuthorID(v int64) predicate.Command
- func AuthorIDEQ(v int64) predicate.Command
- func AuthorIDIn(vs ...int64) predicate.Command
- func AuthorIDNEQ(v int64) predicate.Command
- func AuthorIDNotIn(vs ...int64) predicate.Command
- func ClosedAt(v time.Time) predicate.Command
- func ClosedAtEQ(v time.Time) predicate.Command
- func ClosedAtGT(v time.Time) predicate.Command
- func ClosedAtGTE(v time.Time) predicate.Command
- func ClosedAtIn(vs ...time.Time) predicate.Command
- func ClosedAtIsNil() predicate.Command
- func ClosedAtLT(v time.Time) predicate.Command
- func ClosedAtLTE(v time.Time) predicate.Command
- func ClosedAtNEQ(v time.Time) predicate.Command
- func ClosedAtNotIn(vs ...time.Time) predicate.Command
- func ClosedAtNotNil() predicate.Command
- func Cmd(v string) predicate.Command
- func CmdContains(v string) predicate.Command
- func CmdContainsFold(v string) predicate.Command
- func CmdEQ(v string) predicate.Command
- func CmdEqualFold(v string) predicate.Command
- func CmdGT(v string) predicate.Command
- func CmdGTE(v string) predicate.Command
- func CmdHasPrefix(v string) predicate.Command
- func CmdHasSuffix(v string) predicate.Command
- func CmdIn(vs ...string) predicate.Command
- func CmdLT(v string) predicate.Command
- func CmdLTE(v string) predicate.Command
- func CmdNEQ(v string) predicate.Command
- func CmdNotIn(vs ...string) predicate.Command
- func CreatedAt(v time.Time) predicate.Command
- func CreatedAtEQ(v time.Time) predicate.Command
- func CreatedAtGT(v time.Time) predicate.Command
- func CreatedAtGTE(v time.Time) predicate.Command
- func CreatedAtIn(vs ...time.Time) predicate.Command
- func CreatedAtLT(v time.Time) predicate.Command
- func CreatedAtLTE(v time.Time) predicate.Command
- func CreatedAtNEQ(v time.Time) predicate.Command
- func CreatedAtNotIn(vs ...time.Time) predicate.Command
- func HasAgent() predicate.Command
- func HasAgentWith(preds ...predicate.Agent) predicate.Command
- func HasMessage() predicate.Command
- func HasMessageWith(preds ...predicate.Message) predicate.Command
- func HasOperator() predicate.Command
- func HasOperatorWith(preds ...predicate.Operator) predicate.Command
- func HasTask() predicate.Command
- func HasTaskWith(preds ...predicate.Task) predicate.Command
- func ID(id int64) predicate.Command
- func IDEQ(id int64) predicate.Command
- func IDGT(id int64) predicate.Command
- func IDGTE(id int64) predicate.Command
- func IDIn(ids ...int64) predicate.Command
- func IDLT(id int64) predicate.Command
- func IDLTE(id int64) predicate.Command
- func IDNEQ(id int64) predicate.Command
- func IDNotIn(ids ...int64) predicate.Command
- func Not(p predicate.Command) predicate.Command
- func Or(predicates ...predicate.Command) predicate.Command
- func ValidColumn(column string) bool
- func Visible(v bool) predicate.Command
- func VisibleEQ(v bool) predicate.Command
- func VisibleNEQ(v bool) predicate.Command
- type OrderOption
- func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByAuthorID(opts ...sql.OrderTermOption) OrderOption
- func ByClosedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCmd(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessageCount(opts ...sql.OrderTermOption) OrderOption
- func ByOperatorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTask(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTaskCount(opts ...sql.OrderTermOption) OrderOption
- func ByVisible(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldAgentID, FieldCmd, FieldVisible, FieldAuthorID, FieldCreatedAt, FieldClosedAt, }
Columns holds all SQL columns for command fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
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 AuthorID ¶
AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.
func AuthorIDEQ ¶
AuthorIDEQ applies the EQ predicate on the "author_id" field.
func AuthorIDIn ¶
AuthorIDIn applies the In predicate on the "author_id" field.
func AuthorIDNEQ ¶
AuthorIDNEQ applies the NEQ predicate on the "author_id" field.
func AuthorIDNotIn ¶
AuthorIDNotIn applies the NotIn predicate on the "author_id" field.
func ClosedAt ¶
ClosedAt applies equality check predicate on the "closed_at" field. It's identical to ClosedAtEQ.
func ClosedAtEQ ¶
ClosedAtEQ applies the EQ predicate on the "closed_at" field.
func ClosedAtGT ¶
ClosedAtGT applies the GT predicate on the "closed_at" field.
func ClosedAtGTE ¶
ClosedAtGTE applies the GTE predicate on the "closed_at" field.
func ClosedAtIn ¶
ClosedAtIn applies the In predicate on the "closed_at" field.
func ClosedAtIsNil ¶
ClosedAtIsNil applies the IsNil predicate on the "closed_at" field.
func ClosedAtLT ¶
ClosedAtLT applies the LT predicate on the "closed_at" field.
func ClosedAtLTE ¶
ClosedAtLTE applies the LTE predicate on the "closed_at" field.
func ClosedAtNEQ ¶
ClosedAtNEQ applies the NEQ predicate on the "closed_at" field.
func ClosedAtNotIn ¶
ClosedAtNotIn applies the NotIn predicate on the "closed_at" field.
func ClosedAtNotNil ¶
ClosedAtNotNil applies the NotNil predicate on the "closed_at" field.
func CmdContains ¶
CmdContains applies the Contains predicate on the "cmd" field.
func CmdContainsFold ¶
CmdContainsFold applies the ContainsFold predicate on the "cmd" field.
func CmdEqualFold ¶
CmdEqualFold applies the EqualFold predicate on the "cmd" field.
func CmdHasPrefix ¶
CmdHasPrefix applies the HasPrefix predicate on the "cmd" field.
func CmdHasSuffix ¶
CmdHasSuffix applies the HasSuffix predicate on the "cmd" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasAgentWith ¶
HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasMessage ¶
HasMessage applies the HasEdge predicate on the "message" edge.
func HasMessageWith ¶
HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).
func HasOperator ¶
HasOperator applies the HasEdge predicate on the "operator" edge.
func HasOperatorWith ¶
HasOperatorWith applies the HasEdge predicate on the "operator" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Visible ¶
Visible applies equality check predicate on the "visible" field. It's identical to VisibleEQ.
func VisibleNEQ ¶
VisibleNEQ applies the NEQ predicate on the "visible" field.
Types ¶
type OrderOption ¶
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.