message

package
v0.0.0-...-d6725e5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldLong holds the string denoting the long field in the database.
	FieldLong = "long"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
	// FieldSequenceID holds the string denoting the sequenceid field in the database.
	FieldSequenceID = "sequence_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the message in the database.
	Table = "messages"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "messages"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_messages"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// ContentValidator is a validator for the "content" field. It is called by the builders before save.
	ContentValidator func(string) error
	// PriorityValidator is a validator for the "priority" field. It is called by the builders before save.
	PriorityValidator func(string) error
)

Columns holds all SQL columns for message fields.

View Source
var ForeignKeys = []string{
	"user_messages",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "messages" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Message) predicate.Message

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Message

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Message

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Message

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Message

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Message

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Message

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Message

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Message

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Message

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Message

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Message

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Message

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Message

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Message

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Message

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Message

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Message

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Message

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Message

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Message

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Message

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

func CreatedAtNotIn

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

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

func HasUser

func HasUser() predicate.Message

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Message

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

func ID

func ID(id uuid.UUID) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Message

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Message

IDNotIn applies the NotIn predicate on the ID field.

func Long

func Long(v string) predicate.Message

Long applies equality check predicate on the "long" field. It's identical to LongEQ.

func LongContains

func LongContains(v string) predicate.Message

LongContains applies the Contains predicate on the "long" field.

func LongContainsFold

func LongContainsFold(v string) predicate.Message

LongContainsFold applies the ContainsFold predicate on the "long" field.

func LongEQ

func LongEQ(v string) predicate.Message

LongEQ applies the EQ predicate on the "long" field.

func LongEqualFold

func LongEqualFold(v string) predicate.Message

LongEqualFold applies the EqualFold predicate on the "long" field.

func LongGT

func LongGT(v string) predicate.Message

LongGT applies the GT predicate on the "long" field.

func LongGTE

func LongGTE(v string) predicate.Message

LongGTE applies the GTE predicate on the "long" field.

func LongHasPrefix

func LongHasPrefix(v string) predicate.Message

LongHasPrefix applies the HasPrefix predicate on the "long" field.

func LongHasSuffix

func LongHasSuffix(v string) predicate.Message

LongHasSuffix applies the HasSuffix predicate on the "long" field.

func LongIn

func LongIn(vs ...string) predicate.Message

LongIn applies the In predicate on the "long" field.

func LongLT

func LongLT(v string) predicate.Message

LongLT applies the LT predicate on the "long" field.

func LongLTE

func LongLTE(v string) predicate.Message

LongLTE applies the LTE predicate on the "long" field.

func LongNEQ

func LongNEQ(v string) predicate.Message

LongNEQ applies the NEQ predicate on the "long" field.

func LongNotIn

func LongNotIn(vs ...string) predicate.Message

LongNotIn applies the NotIn predicate on the "long" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Message) predicate.Message

Or groups predicates with the OR operator between them.

func Priority

func Priority(v enum.Priority) predicate.Message

Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.

func PriorityContains

func PriorityContains(v enum.Priority) predicate.Message

PriorityContains applies the Contains predicate on the "priority" field.

func PriorityContainsFold

func PriorityContainsFold(v enum.Priority) predicate.Message

PriorityContainsFold applies the ContainsFold predicate on the "priority" field.

func PriorityEQ

func PriorityEQ(v enum.Priority) predicate.Message

PriorityEQ applies the EQ predicate on the "priority" field.

func PriorityEqualFold

func PriorityEqualFold(v enum.Priority) predicate.Message

PriorityEqualFold applies the EqualFold predicate on the "priority" field.

func PriorityGT

func PriorityGT(v enum.Priority) predicate.Message

PriorityGT applies the GT predicate on the "priority" field.

func PriorityGTE

func PriorityGTE(v enum.Priority) predicate.Message

PriorityGTE applies the GTE predicate on the "priority" field.

func PriorityHasPrefix

func PriorityHasPrefix(v enum.Priority) predicate.Message

PriorityHasPrefix applies the HasPrefix predicate on the "priority" field.

func PriorityHasSuffix

func PriorityHasSuffix(v enum.Priority) predicate.Message

PriorityHasSuffix applies the HasSuffix predicate on the "priority" field.

func PriorityIn

func PriorityIn(vs ...enum.Priority) predicate.Message

PriorityIn applies the In predicate on the "priority" field.

func PriorityLT

func PriorityLT(v enum.Priority) predicate.Message

PriorityLT applies the LT predicate on the "priority" field.

func PriorityLTE

func PriorityLTE(v enum.Priority) predicate.Message

PriorityLTE applies the LTE predicate on the "priority" field.

func PriorityNEQ

func PriorityNEQ(v enum.Priority) predicate.Message

PriorityNEQ applies the NEQ predicate on the "priority" field.

func PriorityNotIn

func PriorityNotIn(vs ...enum.Priority) predicate.Message

PriorityNotIn applies the NotIn predicate on the "priority" field.

func SequenceID

func SequenceID(v int) predicate.Message

SequenceID applies equality check predicate on the "sequenceID" field. It's identical to SequenceIDEQ.

func SequenceIDEQ

func SequenceIDEQ(v int) predicate.Message

SequenceIDEQ applies the EQ predicate on the "sequenceID" field.

func SequenceIDGT

func SequenceIDGT(v int) predicate.Message

SequenceIDGT applies the GT predicate on the "sequenceID" field.

func SequenceIDGTE

func SequenceIDGTE(v int) predicate.Message

SequenceIDGTE applies the GTE predicate on the "sequenceID" field.

func SequenceIDIn

func SequenceIDIn(vs ...int) predicate.Message

SequenceIDIn applies the In predicate on the "sequenceID" field.

func SequenceIDLT

func SequenceIDLT(v int) predicate.Message

SequenceIDLT applies the LT predicate on the "sequenceID" field.

func SequenceIDLTE

func SequenceIDLTE(v int) predicate.Message

SequenceIDLTE applies the LTE predicate on the "sequenceID" field.

func SequenceIDNEQ

func SequenceIDNEQ(v int) predicate.Message

SequenceIDNEQ applies the NEQ predicate on the "sequenceID" field.

func SequenceIDNotIn

func SequenceIDNotIn(vs ...int) predicate.Message

SequenceIDNotIn applies the NotIn predicate on the "sequenceID" field.

func Title

func Title(v string) predicate.Message

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Message

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Message

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Message

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Message

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Message

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Message

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Message

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Message

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Message

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Message

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Message

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Message

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Message

TitleNotIn applies the NotIn predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL