message

package
v0.0.0-...-2de19fb Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 4 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"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldText holds the string denoting the text field in the database.
	FieldText = "text"
	// FieldAttachment holds the string denoting the attachment field in the database.
	FieldAttachment = "attachment"
	// FieldPayloadType holds the string denoting the payload_type field in the database.
	FieldPayloadType = "payload_type"
	// FieldPayloadValue holds the string denoting the payload_value field in the database.
	FieldPayloadValue = "payload_value"
	// FieldSystem holds the string denoting the system field in the database.
	FieldSystem = "system"
	// FieldDirection holds the string denoting the direction field in the database.
	FieldDirection = "direction"
	// FieldProactive holds the string denoting the proactive field in the database.
	FieldProactive = "proactive"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"

	// EdgeDialog holds the string denoting the dialog edge name in mutations.
	EdgeDialog = "dialog"

	// Table holds the table name of the message in the database.
	Table = "messages"
	// DialogTable is the table the holds the dialog relation/edge.
	DialogTable = "messages"
	// DialogInverseTable is the table name for the Dialog entity.
	// It exists in this package in order to avoid circular dependency with the "dialog" package.
	DialogInverseTable = "dialogs"
	// DialogColumn is the table column denoting the dialog relation/edge.
	DialogColumn = "dialog_message"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the create_time field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the update_time field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the update_time field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for message fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Message type.

Functions

func And

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

And groups list of predicates with the AND operator between them.

func Attachment

func Attachment(v string) predicate.Message

Attachment applies equality check predicate on the "attachment" field. It's identical to AttachmentEQ.

func AttachmentContains

func AttachmentContains(v string) predicate.Message

AttachmentContains applies the Contains predicate on the "attachment" field.

func AttachmentContainsFold

func AttachmentContainsFold(v string) predicate.Message

AttachmentContainsFold applies the ContainsFold predicate on the "attachment" field.

func AttachmentEQ

func AttachmentEQ(v string) predicate.Message

AttachmentEQ applies the EQ predicate on the "attachment" field.

func AttachmentEqualFold

func AttachmentEqualFold(v string) predicate.Message

AttachmentEqualFold applies the EqualFold predicate on the "attachment" field.

func AttachmentGT

func AttachmentGT(v string) predicate.Message

AttachmentGT applies the GT predicate on the "attachment" field.

func AttachmentGTE

func AttachmentGTE(v string) predicate.Message

AttachmentGTE applies the GTE predicate on the "attachment" field.

func AttachmentHasPrefix

func AttachmentHasPrefix(v string) predicate.Message

AttachmentHasPrefix applies the HasPrefix predicate on the "attachment" field.

func AttachmentHasSuffix

func AttachmentHasSuffix(v string) predicate.Message

AttachmentHasSuffix applies the HasSuffix predicate on the "attachment" field.

func AttachmentIn

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

AttachmentIn applies the In predicate on the "attachment" field.

func AttachmentIsNil

func AttachmentIsNil() predicate.Message

AttachmentIsNil applies the IsNil predicate on the "attachment" field.

func AttachmentLT

func AttachmentLT(v string) predicate.Message

AttachmentLT applies the LT predicate on the "attachment" field.

func AttachmentLTE

func AttachmentLTE(v string) predicate.Message

AttachmentLTE applies the LTE predicate on the "attachment" field.

func AttachmentNEQ

func AttachmentNEQ(v string) predicate.Message

AttachmentNEQ applies the NEQ predicate on the "attachment" field.

func AttachmentNotIn

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

AttachmentNotIn applies the NotIn predicate on the "attachment" field.

func AttachmentNotNil

func AttachmentNotNil() predicate.Message

AttachmentNotNil applies the NotNil predicate on the "attachment" field.

func CreateTime

func CreateTime(v time.Time) predicate.Message

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Message

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Message

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Message

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

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

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Message

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Message

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Message

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

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

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Direction

func Direction(v string) predicate.Message

Direction applies equality check predicate on the "direction" field. It's identical to DirectionEQ.

func DirectionContains

func DirectionContains(v string) predicate.Message

DirectionContains applies the Contains predicate on the "direction" field.

func DirectionContainsFold

func DirectionContainsFold(v string) predicate.Message

DirectionContainsFold applies the ContainsFold predicate on the "direction" field.

func DirectionEQ

func DirectionEQ(v string) predicate.Message

DirectionEQ applies the EQ predicate on the "direction" field.

func DirectionEqualFold

func DirectionEqualFold(v string) predicate.Message

DirectionEqualFold applies the EqualFold predicate on the "direction" field.

func DirectionGT

func DirectionGT(v string) predicate.Message

DirectionGT applies the GT predicate on the "direction" field.

func DirectionGTE

func DirectionGTE(v string) predicate.Message

DirectionGTE applies the GTE predicate on the "direction" field.

func DirectionHasPrefix

func DirectionHasPrefix(v string) predicate.Message

DirectionHasPrefix applies the HasPrefix predicate on the "direction" field.

func DirectionHasSuffix

func DirectionHasSuffix(v string) predicate.Message

DirectionHasSuffix applies the HasSuffix predicate on the "direction" field.

func DirectionIn

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

DirectionIn applies the In predicate on the "direction" field.

func DirectionLT

func DirectionLT(v string) predicate.Message

DirectionLT applies the LT predicate on the "direction" field.

func DirectionLTE

func DirectionLTE(v string) predicate.Message

DirectionLTE applies the LTE predicate on the "direction" field.

func DirectionNEQ

func DirectionNEQ(v string) predicate.Message

DirectionNEQ applies the NEQ predicate on the "direction" field.

func DirectionNotIn

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

DirectionNotIn applies the NotIn predicate on the "direction" field.

func Error

func Error(v string) predicate.Message

Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.

func ErrorContains

func ErrorContains(v string) predicate.Message

ErrorContains applies the Contains predicate on the "error" field.

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Message

ErrorContainsFold applies the ContainsFold predicate on the "error" field.

func ErrorEQ

func ErrorEQ(v string) predicate.Message

ErrorEQ applies the EQ predicate on the "error" field.

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Message

ErrorEqualFold applies the EqualFold predicate on the "error" field.

func ErrorGT

func ErrorGT(v string) predicate.Message

ErrorGT applies the GT predicate on the "error" field.

func ErrorGTE

func ErrorGTE(v string) predicate.Message

ErrorGTE applies the GTE predicate on the "error" field.

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Message

ErrorHasPrefix applies the HasPrefix predicate on the "error" field.

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Message

ErrorHasSuffix applies the HasSuffix predicate on the "error" field.

func ErrorIn

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

ErrorIn applies the In predicate on the "error" field.

func ErrorIsNil

func ErrorIsNil() predicate.Message

ErrorIsNil applies the IsNil predicate on the "error" field.

func ErrorLT

func ErrorLT(v string) predicate.Message

ErrorLT applies the LT predicate on the "error" field.

func ErrorLTE

func ErrorLTE(v string) predicate.Message

ErrorLTE applies the LTE predicate on the "error" field.

func ErrorNEQ

func ErrorNEQ(v string) predicate.Message

ErrorNEQ applies the NEQ predicate on the "error" field.

func ErrorNotIn

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

ErrorNotIn applies the NotIn predicate on the "error" field.

func ErrorNotNil

func ErrorNotNil() predicate.Message

ErrorNotNil applies the NotNil predicate on the "error" field.

func HasDialog

func HasDialog() predicate.Message

HasDialog applies the HasEdge predicate on the "dialog" edge.

func HasDialogWith

func HasDialogWith(preds ...predicate.Dialog) predicate.Message

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

func ID

func ID(id int) predicate.Message

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Message

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Message

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.Message) predicate.Message

Or groups list of predicates with the OR operator between them.

func PayloadType

func PayloadType(v string) predicate.Message

PayloadType applies equality check predicate on the "payload_type" field. It's identical to PayloadTypeEQ.

func PayloadTypeContains

func PayloadTypeContains(v string) predicate.Message

PayloadTypeContains applies the Contains predicate on the "payload_type" field.

func PayloadTypeContainsFold

func PayloadTypeContainsFold(v string) predicate.Message

PayloadTypeContainsFold applies the ContainsFold predicate on the "payload_type" field.

func PayloadTypeEQ

func PayloadTypeEQ(v string) predicate.Message

PayloadTypeEQ applies the EQ predicate on the "payload_type" field.

func PayloadTypeEqualFold

func PayloadTypeEqualFold(v string) predicate.Message

PayloadTypeEqualFold applies the EqualFold predicate on the "payload_type" field.

func PayloadTypeGT

func PayloadTypeGT(v string) predicate.Message

PayloadTypeGT applies the GT predicate on the "payload_type" field.

func PayloadTypeGTE

func PayloadTypeGTE(v string) predicate.Message

PayloadTypeGTE applies the GTE predicate on the "payload_type" field.

func PayloadTypeHasPrefix

func PayloadTypeHasPrefix(v string) predicate.Message

PayloadTypeHasPrefix applies the HasPrefix predicate on the "payload_type" field.

func PayloadTypeHasSuffix

func PayloadTypeHasSuffix(v string) predicate.Message

PayloadTypeHasSuffix applies the HasSuffix predicate on the "payload_type" field.

func PayloadTypeIn

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

PayloadTypeIn applies the In predicate on the "payload_type" field.

func PayloadTypeIsNil

func PayloadTypeIsNil() predicate.Message

PayloadTypeIsNil applies the IsNil predicate on the "payload_type" field.

func PayloadTypeLT

func PayloadTypeLT(v string) predicate.Message

PayloadTypeLT applies the LT predicate on the "payload_type" field.

func PayloadTypeLTE

func PayloadTypeLTE(v string) predicate.Message

PayloadTypeLTE applies the LTE predicate on the "payload_type" field.

func PayloadTypeNEQ

func PayloadTypeNEQ(v string) predicate.Message

PayloadTypeNEQ applies the NEQ predicate on the "payload_type" field.

func PayloadTypeNotIn

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

PayloadTypeNotIn applies the NotIn predicate on the "payload_type" field.

func PayloadTypeNotNil

func PayloadTypeNotNil() predicate.Message

PayloadTypeNotNil applies the NotNil predicate on the "payload_type" field.

func PayloadValue

func PayloadValue(v string) predicate.Message

PayloadValue applies equality check predicate on the "payload_value" field. It's identical to PayloadValueEQ.

func PayloadValueContains

func PayloadValueContains(v string) predicate.Message

PayloadValueContains applies the Contains predicate on the "payload_value" field.

func PayloadValueContainsFold

func PayloadValueContainsFold(v string) predicate.Message

PayloadValueContainsFold applies the ContainsFold predicate on the "payload_value" field.

func PayloadValueEQ

func PayloadValueEQ(v string) predicate.Message

PayloadValueEQ applies the EQ predicate on the "payload_value" field.

func PayloadValueEqualFold

func PayloadValueEqualFold(v string) predicate.Message

PayloadValueEqualFold applies the EqualFold predicate on the "payload_value" field.

func PayloadValueGT

func PayloadValueGT(v string) predicate.Message

PayloadValueGT applies the GT predicate on the "payload_value" field.

func PayloadValueGTE

func PayloadValueGTE(v string) predicate.Message

PayloadValueGTE applies the GTE predicate on the "payload_value" field.

func PayloadValueHasPrefix

func PayloadValueHasPrefix(v string) predicate.Message

PayloadValueHasPrefix applies the HasPrefix predicate on the "payload_value" field.

func PayloadValueHasSuffix

func PayloadValueHasSuffix(v string) predicate.Message

PayloadValueHasSuffix applies the HasSuffix predicate on the "payload_value" field.

func PayloadValueIn

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

PayloadValueIn applies the In predicate on the "payload_value" field.

func PayloadValueIsNil

func PayloadValueIsNil() predicate.Message

PayloadValueIsNil applies the IsNil predicate on the "payload_value" field.

func PayloadValueLT

func PayloadValueLT(v string) predicate.Message

PayloadValueLT applies the LT predicate on the "payload_value" field.

func PayloadValueLTE

func PayloadValueLTE(v string) predicate.Message

PayloadValueLTE applies the LTE predicate on the "payload_value" field.

func PayloadValueNEQ

func PayloadValueNEQ(v string) predicate.Message

PayloadValueNEQ applies the NEQ predicate on the "payload_value" field.

func PayloadValueNotIn

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

PayloadValueNotIn applies the NotIn predicate on the "payload_value" field.

func PayloadValueNotNil

func PayloadValueNotNil() predicate.Message

PayloadValueNotNil applies the NotNil predicate on the "payload_value" field.

func Proactive

func Proactive(v bool) predicate.Message

Proactive applies equality check predicate on the "proactive" field. It's identical to ProactiveEQ.

func ProactiveEQ

func ProactiveEQ(v bool) predicate.Message

ProactiveEQ applies the EQ predicate on the "proactive" field.

func ProactiveNEQ

func ProactiveNEQ(v bool) predicate.Message

ProactiveNEQ applies the NEQ predicate on the "proactive" field.

func System

func System(v string) predicate.Message

System applies equality check predicate on the "system" field. It's identical to SystemEQ.

func SystemContains

func SystemContains(v string) predicate.Message

SystemContains applies the Contains predicate on the "system" field.

func SystemContainsFold

func SystemContainsFold(v string) predicate.Message

SystemContainsFold applies the ContainsFold predicate on the "system" field.

func SystemEQ

func SystemEQ(v string) predicate.Message

SystemEQ applies the EQ predicate on the "system" field.

func SystemEqualFold

func SystemEqualFold(v string) predicate.Message

SystemEqualFold applies the EqualFold predicate on the "system" field.

func SystemGT

func SystemGT(v string) predicate.Message

SystemGT applies the GT predicate on the "system" field.

func SystemGTE

func SystemGTE(v string) predicate.Message

SystemGTE applies the GTE predicate on the "system" field.

func SystemHasPrefix

func SystemHasPrefix(v string) predicate.Message

SystemHasPrefix applies the HasPrefix predicate on the "system" field.

func SystemHasSuffix

func SystemHasSuffix(v string) predicate.Message

SystemHasSuffix applies the HasSuffix predicate on the "system" field.

func SystemIn

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

SystemIn applies the In predicate on the "system" field.

func SystemLT

func SystemLT(v string) predicate.Message

SystemLT applies the LT predicate on the "system" field.

func SystemLTE

func SystemLTE(v string) predicate.Message

SystemLTE applies the LTE predicate on the "system" field.

func SystemNEQ

func SystemNEQ(v string) predicate.Message

SystemNEQ applies the NEQ predicate on the "system" field.

func SystemNotIn

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

SystemNotIn applies the NotIn predicate on the "system" field.

func Text

func Text(v string) predicate.Message

Text applies equality check predicate on the "text" field. It's identical to TextEQ.

func TextContains

func TextContains(v string) predicate.Message

TextContains applies the Contains predicate on the "text" field.

func TextContainsFold

func TextContainsFold(v string) predicate.Message

TextContainsFold applies the ContainsFold predicate on the "text" field.

func TextEQ

func TextEQ(v string) predicate.Message

TextEQ applies the EQ predicate on the "text" field.

func TextEqualFold

func TextEqualFold(v string) predicate.Message

TextEqualFold applies the EqualFold predicate on the "text" field.

func TextGT

func TextGT(v string) predicate.Message

TextGT applies the GT predicate on the "text" field.

func TextGTE

func TextGTE(v string) predicate.Message

TextGTE applies the GTE predicate on the "text" field.

func TextHasPrefix

func TextHasPrefix(v string) predicate.Message

TextHasPrefix applies the HasPrefix predicate on the "text" field.

func TextHasSuffix

func TextHasSuffix(v string) predicate.Message

TextHasSuffix applies the HasSuffix predicate on the "text" field.

func TextIn

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

TextIn applies the In predicate on the "text" field.

func TextIsNil

func TextIsNil() predicate.Message

TextIsNil applies the IsNil predicate on the "text" field.

func TextLT

func TextLT(v string) predicate.Message

TextLT applies the LT predicate on the "text" field.

func TextLTE

func TextLTE(v string) predicate.Message

TextLTE applies the LTE predicate on the "text" field.

func TextNEQ

func TextNEQ(v string) predicate.Message

TextNEQ applies the NEQ predicate on the "text" field.

func TextNotIn

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

TextNotIn applies the NotIn predicate on the "text" field.

func TextNotNil

func TextNotNil() predicate.Message

TextNotNil applies the NotNil predicate on the "text" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Message

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Message

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Message

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Message

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

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

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Message

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Message

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Message

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

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

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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