Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) 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 Gid(v int) predicate.Message
- func GidEQ(v int) predicate.Message
- func GidIn(vs ...int) predicate.Message
- func GidNEQ(v int) predicate.Message
- func GidNotIn(vs ...int) predicate.Message
- func HasGroup() predicate.Message
- func HasGroupWith(preds ...predicate.Group) 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 defaults.TaskMessage) predicate.Message
- func TypeIn(vs ...defaults.TaskMessage) predicate.Message
- func TypeNEQ(v defaults.TaskMessage) predicate.Message
- func TypeNotIn(vs ...defaults.TaskMessage) predicate.Message
- func TypeValidator(_type defaults.TaskMessage) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGid(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, 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" // FieldGid holds the string denoting the gid field in the database. FieldGid = "gid" // 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" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // Table holds the table name of the message in the database. Table = "message" // GroupTable is the table that holds the group relation/edge. GroupTable = "message" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "group" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "gid" )
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, FieldGid, FieldType, FieldMessage, FieldCreatedAt, }
Columns holds all SQL columns for message fields.
Functions ¶
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 HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" 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 defaults.TaskMessage) predicate.Message
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...defaults.TaskMessage) predicate.Message
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v defaults.TaskMessage) predicate.Message
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...defaults.TaskMessage) predicate.Message
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
func TypeValidator(_type defaults.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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGid ¶
func ByGid(opts ...sql.OrderTermOption) OrderOption
ByGid orders the results by the gid field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group 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.