message

package
v0.0.0-...-a671794 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 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"
	// FieldUID holds the string denoting the uid vertex property in the database.
	FieldUID = "uid"
	// FieldText holds the string denoting the text vertex property in the database.
	FieldText = "text"
	// FieldCreatedAt holds the string denoting the created_at vertex property in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at vertex property in the database.
	FieldUpdatedAt = "updated_at"

	// Table holds the table name of the message in the database.
	Table = "messages"
)

Variables

View Source
var (

	// UIDValidator is a validator for the "uid" field. It is called by the builders before save.
	UIDValidator = func() func(string) error {
		validators := descUID.Validators
		fns := [...]func(string) error{
			validators[0].(func(string) error),
			validators[1].(func(string) error),
		}
		return func(uid string) error {
			for _, fn := range fns {
				if err := fn(uid); err != nil {
					return err
				}
			}
			return nil
		}
	}()

	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt = descCreatedAt.Default.(func() time.Time)

	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt = descUpdatedAt.Default.(func() time.Time)
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt = descUpdatedAt.UpdateDefault.(func() time.Time)
)

Columns holds all SQL columns for message fields.

Functions

func And

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

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

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 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 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 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 UID

func UID(v string) predicate.Message

UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.

func UIDContains

func UIDContains(v string) predicate.Message

UIDContains applies the Contains predicate on the "uid" field.

func UIDContainsFold

func UIDContainsFold(v string) predicate.Message

UIDContainsFold applies the ContainsFold predicate on the "uid" field.

func UIDEQ

func UIDEQ(v string) predicate.Message

UIDEQ applies the EQ predicate on the "uid" field.

func UIDEqualFold

func UIDEqualFold(v string) predicate.Message

UIDEqualFold applies the EqualFold predicate on the "uid" field.

func UIDGT

func UIDGT(v string) predicate.Message

UIDGT applies the GT predicate on the "uid" field.

func UIDGTE

func UIDGTE(v string) predicate.Message

UIDGTE applies the GTE predicate on the "uid" field.

func UIDHasPrefix

func UIDHasPrefix(v string) predicate.Message

UIDHasPrefix applies the HasPrefix predicate on the "uid" field.

func UIDHasSuffix

func UIDHasSuffix(v string) predicate.Message

UIDHasSuffix applies the HasSuffix predicate on the "uid" field.

func UIDIn

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

UIDIn applies the In predicate on the "uid" field.

func UIDLT

func UIDLT(v string) predicate.Message

UIDLT applies the LT predicate on the "uid" field.

func UIDLTE

func UIDLTE(v string) predicate.Message

UIDLTE applies the LTE predicate on the "uid" field.

func UIDNEQ

func UIDNEQ(v string) predicate.Message

UIDNEQ applies the NEQ predicate on the "uid" field.

func UIDNotIn

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

UIDNotIn applies the NotIn predicate on the "uid" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Message

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Message

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Message

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Message

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Message

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Message

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Message

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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