Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) predicate.Message
- func CommandID(v int64) predicate.Message
- func CommandIDEQ(v int64) predicate.Message
- func CommandIDIn(vs ...int64) predicate.Message
- func CommandIDNEQ(v int64) predicate.Message
- func CommandIDNotIn(vs ...int64) predicate.Message
- func CreatedAt(v time.Time) predicate.Message
- func CreatedAtEQ(v time.Time) predicate.Message
- func CreatedAtGT(v time.Time) predicate.Message
- func CreatedAtGTE(v time.Time) predicate.Message
- func CreatedAtIn(vs ...time.Time) predicate.Message
- func CreatedAtLT(v time.Time) predicate.Message
- func CreatedAtLTE(v time.Time) predicate.Message
- func CreatedAtNEQ(v time.Time) predicate.Message
- func CreatedAtNotIn(vs ...time.Time) predicate.Message
- func HasCommand() predicate.Message
- func HasCommandWith(preds ...predicate.Command) predicate.Message
- func ID(id int) predicate.Message
- func IDEQ(id int) predicate.Message
- func IDGT(id int) predicate.Message
- func IDGTE(id int) predicate.Message
- func IDIn(ids ...int) predicate.Message
- func IDLT(id int) predicate.Message
- func IDLTE(id int) predicate.Message
- func IDNEQ(id int) predicate.Message
- func IDNotIn(ids ...int) predicate.Message
- func Message(v string) predicate.Message
- func MessageContains(v string) predicate.Message
- func MessageContainsFold(v string) predicate.Message
- func MessageEQ(v string) predicate.Message
- func MessageEqualFold(v string) predicate.Message
- func MessageGT(v string) predicate.Message
- func MessageGTE(v string) predicate.Message
- func MessageHasPrefix(v string) predicate.Message
- func MessageHasSuffix(v string) predicate.Message
- func MessageIn(vs ...string) predicate.Message
- func MessageLT(v string) predicate.Message
- func MessageLTE(v string) predicate.Message
- func MessageNEQ(v string) predicate.Message
- func MessageNotIn(vs ...string) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func TypeEQ(v shared.TaskMessage) predicate.Message
- func TypeIn(vs ...shared.TaskMessage) predicate.Message
- func TypeNEQ(v shared.TaskMessage) predicate.Message
- func TypeNotIn(vs ...shared.TaskMessage) predicate.Message
- func TypeValidator(_type shared.TaskMessage) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByCommandField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCommandID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(opts ...sql.OrderTermOption) OrderOption
- func ByType(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" // FieldCommandID holds the string denoting the command_id field in the database. FieldCommandID = "command_id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeCommand holds the string denoting the command edge name in mutations. EdgeCommand = "command" // Table holds the table name of the message in the database. Table = "message" // CommandTable is the table that holds the command relation/edge. CommandTable = "message" // CommandInverseTable is the table name for the Command entity. // It exists in this package in order to avoid circular dependency with the "command" package. CommandInverseTable = "command" // CommandColumn is the table column denoting the command relation/edge. CommandColumn = "command_id" )
Variables ¶
var ( // MessageValidator is a validator for the "message" field. It is called by the builders before save. MessageValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldCommandID, FieldType, FieldMessage, FieldCreatedAt, }
Columns holds all SQL columns for message fields.
Functions ¶
func CommandID ¶
CommandID applies equality check predicate on the "command_id" field. It's identical to CommandIDEQ.
func CommandIDEQ ¶
CommandIDEQ applies the EQ predicate on the "command_id" field.
func CommandIDIn ¶
CommandIDIn applies the In predicate on the "command_id" field.
func CommandIDNEQ ¶
CommandIDNEQ applies the NEQ predicate on the "command_id" field.
func CommandIDNotIn ¶
CommandIDNotIn applies the NotIn predicate on the "command_id" 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 HasCommand ¶
HasCommand applies the HasEdge predicate on the "command" edge.
func HasCommandWith ¶
HasCommandWith applies the HasEdge predicate on the "command" edge with a given conditions (other predicates).
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func TypeEQ ¶
func TypeEQ(v shared.TaskMessage) predicate.Message
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...shared.TaskMessage) predicate.Message
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v shared.TaskMessage) predicate.Message
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...shared.TaskMessage) predicate.Message
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
func TypeValidator(_type shared.TaskMessage) error
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 ByCommandField ¶
func ByCommandField(field string, opts ...sql.OrderTermOption) OrderOption
ByCommandField orders the results by command field.
func ByCommandID ¶
func ByCommandID(opts ...sql.OrderTermOption) OrderOption
ByCommandID orders the results by the command_id 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(opts ...sql.OrderTermOption) OrderOption
ByMessage orders the results by the message field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.