message

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 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"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldRoot holds the string denoting the root field in the database.
	FieldRoot = "root"
	// FieldAnchorID holds the string denoting the anchor_id field in the database.
	FieldAnchorID = "anchor_id"
	// FieldProof holds the string denoting the proof field in the database.
	FieldProof = "proof"
	// Table holds the table name of the message in the database.
	Table = "messages"
)

Variables

View Source
var (
	// MessageValidator is a validator for the "message" field. It is called by the builders before save.
	MessageValidator func(string) error
	// DefaultRoot holds the default value on creation for the "root" field.
	DefaultRoot string
	// DefaultAnchorID holds the default value on creation for the "anchor_id" field.
	DefaultAnchorID int
	// AnchorIDValidator is a validator for the "anchor_id" field. It is called by the builders before save.
	AnchorIDValidator func(int) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for message fields.

Functions

func AnchorID

func AnchorID(v int) predicate.Message

AnchorID applies equality check predicate on the "anchor_id" field. It's identical to AnchorIDEQ.

func AnchorIDEQ

func AnchorIDEQ(v int) predicate.Message

AnchorIDEQ applies the EQ predicate on the "anchor_id" field.

func AnchorIDGT

func AnchorIDGT(v int) predicate.Message

AnchorIDGT applies the GT predicate on the "anchor_id" field.

func AnchorIDGTE

func AnchorIDGTE(v int) predicate.Message

AnchorIDGTE applies the GTE predicate on the "anchor_id" field.

func AnchorIDIn

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

AnchorIDIn applies the In predicate on the "anchor_id" field.

func AnchorIDLT

func AnchorIDLT(v int) predicate.Message

AnchorIDLT applies the LT predicate on the "anchor_id" field.

func AnchorIDLTE

func AnchorIDLTE(v int) predicate.Message

AnchorIDLTE applies the LTE predicate on the "anchor_id" field.

func AnchorIDNEQ

func AnchorIDNEQ(v int) predicate.Message

AnchorIDNEQ applies the NEQ predicate on the "anchor_id" field.

func AnchorIDNotIn

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

AnchorIDNotIn applies the NotIn predicate on the "anchor_id" field.

func And

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

And groups predicates with the AND operator between them.

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 Message

func Message(v string) predicate.Message

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.Message

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.Message

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.Message

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.Message

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.Message

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.Message

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Message

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Message

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

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

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.Message

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.Message

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.Message

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

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

MessageNotIn applies the NotIn predicate on the "message" 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 ProofIsNil

func ProofIsNil() predicate.Message

ProofIsNil applies the IsNil predicate on the "proof" field.

func ProofNotNil

func ProofNotNil() predicate.Message

ProofNotNil applies the NotNil predicate on the "proof" field.

func Root

func Root(v string) predicate.Message

Root applies equality check predicate on the "root" field. It's identical to RootEQ.

func RootContains

func RootContains(v string) predicate.Message

RootContains applies the Contains predicate on the "root" field.

func RootContainsFold

func RootContainsFold(v string) predicate.Message

RootContainsFold applies the ContainsFold predicate on the "root" field.

func RootEQ

func RootEQ(v string) predicate.Message

RootEQ applies the EQ predicate on the "root" field.

func RootEqualFold

func RootEqualFold(v string) predicate.Message

RootEqualFold applies the EqualFold predicate on the "root" field.

func RootGT

func RootGT(v string) predicate.Message

RootGT applies the GT predicate on the "root" field.

func RootGTE

func RootGTE(v string) predicate.Message

RootGTE applies the GTE predicate on the "root" field.

func RootHasPrefix

func RootHasPrefix(v string) predicate.Message

RootHasPrefix applies the HasPrefix predicate on the "root" field.

func RootHasSuffix

func RootHasSuffix(v string) predicate.Message

RootHasSuffix applies the HasSuffix predicate on the "root" field.

func RootIn

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

RootIn applies the In predicate on the "root" field.

func RootLT

func RootLT(v string) predicate.Message

RootLT applies the LT predicate on the "root" field.

func RootLTE

func RootLTE(v string) predicate.Message

RootLTE applies the LTE predicate on the "root" field.

func RootNEQ

func RootNEQ(v string) predicate.Message

RootNEQ applies the NEQ predicate on the "root" field.

func RootNotIn

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

RootNotIn applies the NotIn predicate on the "root" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Message queries.

func ByAnchorID

func ByAnchorID(opts ...sql.OrderTermOption) OrderOption

ByAnchorID orders the results by the anchor_id 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 ByRoot

func ByRoot(opts ...sql.OrderTermOption) OrderOption

ByRoot orders the results by the root field.

Jump to

Keyboard shortcuts

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