msg

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the msg type in the database.
	Label = "msg"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// FieldSourceMsgSender holds the string denoting the sourcemsgsender field in the database.
	FieldSourceMsgSender = "source_msg_sender"
	// FieldDestAddress holds the string denoting the destaddress field in the database.
	FieldDestAddress = "dest_address"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// FieldDestGasLimit holds the string denoting the destgaslimit field in the database.
	FieldDestGasLimit = "dest_gas_limit"
	// FieldSourceChainID holds the string denoting the sourcechainid field in the database.
	FieldSourceChainID = "source_chain_id"
	// FieldDestChainID holds the string denoting the destchainid field in the database.
	FieldDestChainID = "dest_chain_id"
	// FieldStreamOffset holds the string denoting the streamoffset field in the database.
	FieldStreamOffset = "stream_offset"
	// FieldTxHash holds the string denoting the txhash field in the database.
	FieldTxHash = "tx_hash"
	// FieldCreatedAt holds the string denoting the createdat field in the database.
	FieldCreatedAt = "created_at"
	// EdgeBlock holds the string denoting the block edge name in mutations.
	EdgeBlock = "Block"
	// Table holds the table name of the msg in the database.
	Table = "msgs"
	// BlockTable is the table that holds the Block relation/edge.
	BlockTable = "msgs"
	// BlockInverseTable is the table name for the Block entity.
	// It exists in this package in order to avoid circular dependency with the "block" package.
	BlockInverseTable = "blocks"
	// BlockColumn is the table column denoting the Block relation/edge.
	BlockColumn = "block_msgs"
)

Variables

View Source
var (
	// DefaultUUID holds the default value on creation for the "UUID" field.
	DefaultUUID func() uuid.UUID
	// SourceMsgSenderValidator is a validator for the "SourceMsgSender" field. It is called by the builders before save.
	SourceMsgSenderValidator func([]byte) error
	// DestAddressValidator is a validator for the "DestAddress" field. It is called by the builders before save.
	DestAddressValidator func([]byte) error
	// TxHashValidator is a validator for the "TxHash" field. It is called by the builders before save.
	TxHashValidator func([]byte) error
	// DefaultCreatedAt holds the default value on creation for the "CreatedAt" field.
	DefaultCreatedAt time.Time
)

Columns holds all SQL columns for msg fields.

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

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

Functions

func And

func And(predicates ...predicate.Msg) predicate.Msg

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Msg

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Msg

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Msg

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Msg

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Msg

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Msg

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Msg

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

func CreatedAtNotIn

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

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

func Data

func Data(v []byte) predicate.Msg

Data applies equality check predicate on the "Data" field. It's identical to DataEQ.

func DataEQ

func DataEQ(v []byte) predicate.Msg

DataEQ applies the EQ predicate on the "Data" field.

func DataGT

func DataGT(v []byte) predicate.Msg

DataGT applies the GT predicate on the "Data" field.

func DataGTE

func DataGTE(v []byte) predicate.Msg

DataGTE applies the GTE predicate on the "Data" field.

func DataIn

func DataIn(vs ...[]byte) predicate.Msg

DataIn applies the In predicate on the "Data" field.

func DataLT

func DataLT(v []byte) predicate.Msg

DataLT applies the LT predicate on the "Data" field.

func DataLTE

func DataLTE(v []byte) predicate.Msg

DataLTE applies the LTE predicate on the "Data" field.

func DataNEQ

func DataNEQ(v []byte) predicate.Msg

DataNEQ applies the NEQ predicate on the "Data" field.

func DataNotIn

func DataNotIn(vs ...[]byte) predicate.Msg

DataNotIn applies the NotIn predicate on the "Data" field.

func DestAddress

func DestAddress(v []byte) predicate.Msg

DestAddress applies equality check predicate on the "DestAddress" field. It's identical to DestAddressEQ.

func DestAddressEQ

func DestAddressEQ(v []byte) predicate.Msg

DestAddressEQ applies the EQ predicate on the "DestAddress" field.

func DestAddressGT

func DestAddressGT(v []byte) predicate.Msg

DestAddressGT applies the GT predicate on the "DestAddress" field.

func DestAddressGTE

func DestAddressGTE(v []byte) predicate.Msg

DestAddressGTE applies the GTE predicate on the "DestAddress" field.

func DestAddressIn

func DestAddressIn(vs ...[]byte) predicate.Msg

DestAddressIn applies the In predicate on the "DestAddress" field.

func DestAddressLT

func DestAddressLT(v []byte) predicate.Msg

DestAddressLT applies the LT predicate on the "DestAddress" field.

func DestAddressLTE

func DestAddressLTE(v []byte) predicate.Msg

DestAddressLTE applies the LTE predicate on the "DestAddress" field.

func DestAddressNEQ

func DestAddressNEQ(v []byte) predicate.Msg

DestAddressNEQ applies the NEQ predicate on the "DestAddress" field.

func DestAddressNotIn

func DestAddressNotIn(vs ...[]byte) predicate.Msg

DestAddressNotIn applies the NotIn predicate on the "DestAddress" field.

func DestChainID

func DestChainID(v uint64) predicate.Msg

DestChainID applies equality check predicate on the "DestChainID" field. It's identical to DestChainIDEQ.

func DestChainIDEQ

func DestChainIDEQ(v uint64) predicate.Msg

DestChainIDEQ applies the EQ predicate on the "DestChainID" field.

func DestChainIDGT

func DestChainIDGT(v uint64) predicate.Msg

DestChainIDGT applies the GT predicate on the "DestChainID" field.

func DestChainIDGTE

func DestChainIDGTE(v uint64) predicate.Msg

DestChainIDGTE applies the GTE predicate on the "DestChainID" field.

func DestChainIDIn

func DestChainIDIn(vs ...uint64) predicate.Msg

DestChainIDIn applies the In predicate on the "DestChainID" field.

func DestChainIDLT

func DestChainIDLT(v uint64) predicate.Msg

DestChainIDLT applies the LT predicate on the "DestChainID" field.

func DestChainIDLTE

func DestChainIDLTE(v uint64) predicate.Msg

DestChainIDLTE applies the LTE predicate on the "DestChainID" field.

func DestChainIDNEQ

func DestChainIDNEQ(v uint64) predicate.Msg

DestChainIDNEQ applies the NEQ predicate on the "DestChainID" field.

func DestChainIDNotIn

func DestChainIDNotIn(vs ...uint64) predicate.Msg

DestChainIDNotIn applies the NotIn predicate on the "DestChainID" field.

func DestGasLimit

func DestGasLimit(v uint64) predicate.Msg

DestGasLimit applies equality check predicate on the "DestGasLimit" field. It's identical to DestGasLimitEQ.

func DestGasLimitEQ

func DestGasLimitEQ(v uint64) predicate.Msg

DestGasLimitEQ applies the EQ predicate on the "DestGasLimit" field.

func DestGasLimitGT

func DestGasLimitGT(v uint64) predicate.Msg

DestGasLimitGT applies the GT predicate on the "DestGasLimit" field.

func DestGasLimitGTE

func DestGasLimitGTE(v uint64) predicate.Msg

DestGasLimitGTE applies the GTE predicate on the "DestGasLimit" field.

func DestGasLimitIn

func DestGasLimitIn(vs ...uint64) predicate.Msg

DestGasLimitIn applies the In predicate on the "DestGasLimit" field.

func DestGasLimitLT

func DestGasLimitLT(v uint64) predicate.Msg

DestGasLimitLT applies the LT predicate on the "DestGasLimit" field.

func DestGasLimitLTE

func DestGasLimitLTE(v uint64) predicate.Msg

DestGasLimitLTE applies the LTE predicate on the "DestGasLimit" field.

func DestGasLimitNEQ

func DestGasLimitNEQ(v uint64) predicate.Msg

DestGasLimitNEQ applies the NEQ predicate on the "DestGasLimit" field.

func DestGasLimitNotIn

func DestGasLimitNotIn(vs ...uint64) predicate.Msg

DestGasLimitNotIn applies the NotIn predicate on the "DestGasLimit" field.

func HasBlock

func HasBlock() predicate.Msg

HasBlock applies the HasEdge predicate on the "Block" edge.

func HasBlockWith

func HasBlockWith(preds ...predicate.Block) predicate.Msg

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

func ID

func ID(id int) predicate.Msg

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Msg

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Msg

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Msg

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Msg

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Msg

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Msg

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

func Not(p predicate.Msg) predicate.Msg

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Msg) predicate.Msg

Or groups predicates with the OR operator between them.

func SourceChainID

func SourceChainID(v uint64) predicate.Msg

SourceChainID applies equality check predicate on the "SourceChainID" field. It's identical to SourceChainIDEQ.

func SourceChainIDEQ

func SourceChainIDEQ(v uint64) predicate.Msg

SourceChainIDEQ applies the EQ predicate on the "SourceChainID" field.

func SourceChainIDGT

func SourceChainIDGT(v uint64) predicate.Msg

SourceChainIDGT applies the GT predicate on the "SourceChainID" field.

func SourceChainIDGTE

func SourceChainIDGTE(v uint64) predicate.Msg

SourceChainIDGTE applies the GTE predicate on the "SourceChainID" field.

func SourceChainIDIn

func SourceChainIDIn(vs ...uint64) predicate.Msg

SourceChainIDIn applies the In predicate on the "SourceChainID" field.

func SourceChainIDLT

func SourceChainIDLT(v uint64) predicate.Msg

SourceChainIDLT applies the LT predicate on the "SourceChainID" field.

func SourceChainIDLTE

func SourceChainIDLTE(v uint64) predicate.Msg

SourceChainIDLTE applies the LTE predicate on the "SourceChainID" field.

func SourceChainIDNEQ

func SourceChainIDNEQ(v uint64) predicate.Msg

SourceChainIDNEQ applies the NEQ predicate on the "SourceChainID" field.

func SourceChainIDNotIn

func SourceChainIDNotIn(vs ...uint64) predicate.Msg

SourceChainIDNotIn applies the NotIn predicate on the "SourceChainID" field.

func SourceMsgSender

func SourceMsgSender(v []byte) predicate.Msg

SourceMsgSender applies equality check predicate on the "SourceMsgSender" field. It's identical to SourceMsgSenderEQ.

func SourceMsgSenderEQ

func SourceMsgSenderEQ(v []byte) predicate.Msg

SourceMsgSenderEQ applies the EQ predicate on the "SourceMsgSender" field.

func SourceMsgSenderGT

func SourceMsgSenderGT(v []byte) predicate.Msg

SourceMsgSenderGT applies the GT predicate on the "SourceMsgSender" field.

func SourceMsgSenderGTE

func SourceMsgSenderGTE(v []byte) predicate.Msg

SourceMsgSenderGTE applies the GTE predicate on the "SourceMsgSender" field.

func SourceMsgSenderIn

func SourceMsgSenderIn(vs ...[]byte) predicate.Msg

SourceMsgSenderIn applies the In predicate on the "SourceMsgSender" field.

func SourceMsgSenderLT

func SourceMsgSenderLT(v []byte) predicate.Msg

SourceMsgSenderLT applies the LT predicate on the "SourceMsgSender" field.

func SourceMsgSenderLTE

func SourceMsgSenderLTE(v []byte) predicate.Msg

SourceMsgSenderLTE applies the LTE predicate on the "SourceMsgSender" field.

func SourceMsgSenderNEQ

func SourceMsgSenderNEQ(v []byte) predicate.Msg

SourceMsgSenderNEQ applies the NEQ predicate on the "SourceMsgSender" field.

func SourceMsgSenderNotIn

func SourceMsgSenderNotIn(vs ...[]byte) predicate.Msg

SourceMsgSenderNotIn applies the NotIn predicate on the "SourceMsgSender" field.

func StreamOffset

func StreamOffset(v uint64) predicate.Msg

StreamOffset applies equality check predicate on the "StreamOffset" field. It's identical to StreamOffsetEQ.

func StreamOffsetEQ

func StreamOffsetEQ(v uint64) predicate.Msg

StreamOffsetEQ applies the EQ predicate on the "StreamOffset" field.

func StreamOffsetGT

func StreamOffsetGT(v uint64) predicate.Msg

StreamOffsetGT applies the GT predicate on the "StreamOffset" field.

func StreamOffsetGTE

func StreamOffsetGTE(v uint64) predicate.Msg

StreamOffsetGTE applies the GTE predicate on the "StreamOffset" field.

func StreamOffsetIn

func StreamOffsetIn(vs ...uint64) predicate.Msg

StreamOffsetIn applies the In predicate on the "StreamOffset" field.

func StreamOffsetLT

func StreamOffsetLT(v uint64) predicate.Msg

StreamOffsetLT applies the LT predicate on the "StreamOffset" field.

func StreamOffsetLTE

func StreamOffsetLTE(v uint64) predicate.Msg

StreamOffsetLTE applies the LTE predicate on the "StreamOffset" field.

func StreamOffsetNEQ

func StreamOffsetNEQ(v uint64) predicate.Msg

StreamOffsetNEQ applies the NEQ predicate on the "StreamOffset" field.

func StreamOffsetNotIn

func StreamOffsetNotIn(vs ...uint64) predicate.Msg

StreamOffsetNotIn applies the NotIn predicate on the "StreamOffset" field.

func TxHash

func TxHash(v []byte) predicate.Msg

TxHash applies equality check predicate on the "TxHash" field. It's identical to TxHashEQ.

func TxHashEQ

func TxHashEQ(v []byte) predicate.Msg

TxHashEQ applies the EQ predicate on the "TxHash" field.

func TxHashGT

func TxHashGT(v []byte) predicate.Msg

TxHashGT applies the GT predicate on the "TxHash" field.

func TxHashGTE

func TxHashGTE(v []byte) predicate.Msg

TxHashGTE applies the GTE predicate on the "TxHash" field.

func TxHashIn

func TxHashIn(vs ...[]byte) predicate.Msg

TxHashIn applies the In predicate on the "TxHash" field.

func TxHashLT

func TxHashLT(v []byte) predicate.Msg

TxHashLT applies the LT predicate on the "TxHash" field.

func TxHashLTE

func TxHashLTE(v []byte) predicate.Msg

TxHashLTE applies the LTE predicate on the "TxHash" field.

func TxHashNEQ

func TxHashNEQ(v []byte) predicate.Msg

TxHashNEQ applies the NEQ predicate on the "TxHash" field.

func TxHashNotIn

func TxHashNotIn(vs ...[]byte) predicate.Msg

TxHashNotIn applies the NotIn predicate on the "TxHash" field.

func UUID

func UUID(v uuid.UUID) predicate.Msg

UUID applies equality check predicate on the "UUID" field. It's identical to UUIDEQ.

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.Msg

UUIDEQ applies the EQ predicate on the "UUID" field.

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.Msg

UUIDGT applies the GT predicate on the "UUID" field.

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.Msg

UUIDGTE applies the GTE predicate on the "UUID" field.

func UUIDIn

func UUIDIn(vs ...uuid.UUID) predicate.Msg

UUIDIn applies the In predicate on the "UUID" field.

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.Msg

UUIDLT applies the LT predicate on the "UUID" field.

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.Msg

UUIDLTE applies the LTE predicate on the "UUID" field.

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.Msg

UUIDNEQ applies the NEQ predicate on the "UUID" field.

func UUIDNotIn

func UUIDNotIn(vs ...uuid.UUID) predicate.Msg

UUIDNotIn applies the NotIn predicate on the "UUID" 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 Msg queries.

func ByBlockField

func ByBlockField(field string, opts ...sql.OrderTermOption) OrderOption

ByBlockField orders the results by Block field.

func ByCreatedAt

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

ByCreatedAt orders the results by the CreatedAt field.

func ByDestChainID

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

ByDestChainID orders the results by the DestChainID field.

func ByDestGasLimit

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

ByDestGasLimit orders the results by the DestGasLimit field.

func ByID

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

ByID orders the results by the id field.

func BySourceChainID

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

BySourceChainID orders the results by the SourceChainID field.

func ByStreamOffset

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

ByStreamOffset orders the results by the StreamOffset field.

func ByUUID

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

ByUUID orders the results by the UUID field.

Jump to

Keyboard shortcuts

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