msg

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 22, 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"
	// FieldSender holds the string denoting the sender field in the database.
	FieldSender = "sender"
	// FieldTo holds the string denoting the to field in the database.
	FieldTo = "to"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// FieldGasLimit holds the string denoting the gas_limit field in the database.
	FieldGasLimit = "gas_limit"
	// FieldSourceChainID holds the string denoting the source_chain_id field in the database.
	FieldSourceChainID = "source_chain_id"
	// FieldDestChainID holds the string denoting the dest_chain_id field in the database.
	FieldDestChainID = "dest_chain_id"
	// FieldOffset holds the string denoting the offset field in the database.
	FieldOffset = "offset"
	// FieldTxHash holds the string denoting the tx_hash field in the database.
	FieldTxHash = "tx_hash"
	// FieldReceiptHash holds the string denoting the receipt_hash field in the database.
	FieldReceiptHash = "receipt_hash"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeBlock holds the string denoting the block edge name in mutations.
	EdgeBlock = "block"
	// EdgeReceipts holds the string denoting the receipts edge name in mutations.
	EdgeReceipts = "receipts"
	// Table holds the table name of the msg in the database.
	Table = "msgs"
	// BlockTable is the table that holds the block relation/edge. The primary key declared below.
	BlockTable = "block_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"
	// ReceiptsTable is the table that holds the receipts relation/edge. The primary key declared below.
	ReceiptsTable = "msg_receipts"
	// ReceiptsInverseTable is the table name for the Receipt entity.
	// It exists in this package in order to avoid circular dependency with the "receipt" package.
	ReceiptsInverseTable = "receipts"
)

Variables

View Source
var (
	// BlockPrimaryKey and BlockColumn2 are the table columns denoting the
	// primary key for the block relation (M2M).
	BlockPrimaryKey = []string{"block_id", "msg_id"}
	// ReceiptsPrimaryKey and ReceiptsColumn2 are the table columns denoting the
	// primary key for the receipts relation (M2M).
	ReceiptsPrimaryKey = []string{"msg_id", "receipt_id"}
)
View Source
var (
	Hooks [1]ent.Hook
	// SenderValidator is a validator for the "sender" field. It is called by the builders before save.
	SenderValidator func([]byte) error
	// ToValidator is a validator for the "to" field. It is called by the builders before save.
	ToValidator func([]byte) error
	// TxHashValidator is a validator for the "tx_hash" field. It is called by the builders before save.
	TxHashValidator func([]byte) error
	// ReceiptHashValidator is a validator for the "receipt_hash" field. It is called by the builders before save.
	ReceiptHashValidator func([]byte) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/omni-network/omni/explorer/db/ent/runtime"

Columns holds all SQL columns for msg fields.

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 "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Msg

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Msg

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Msg

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Msg

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Msg

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Msg

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

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" 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 DestChainID

func DestChainID(v uint64) predicate.Msg

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

func DestChainIDEQ

func DestChainIDEQ(v uint64) predicate.Msg

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

func DestChainIDGT

func DestChainIDGT(v uint64) predicate.Msg

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

func DestChainIDGTE

func DestChainIDGTE(v uint64) predicate.Msg

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

func DestChainIDIn

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

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

func DestChainIDLT

func DestChainIDLT(v uint64) predicate.Msg

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

func DestChainIDLTE

func DestChainIDLTE(v uint64) predicate.Msg

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

func DestChainIDNEQ

func DestChainIDNEQ(v uint64) predicate.Msg

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

func DestChainIDNotIn

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

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

func GasLimit added in v0.1.7

func GasLimit(v uint64) predicate.Msg

GasLimit applies equality check predicate on the "gas_limit" field. It's identical to GasLimitEQ.

func GasLimitEQ added in v0.1.7

func GasLimitEQ(v uint64) predicate.Msg

GasLimitEQ applies the EQ predicate on the "gas_limit" field.

func GasLimitGT added in v0.1.7

func GasLimitGT(v uint64) predicate.Msg

GasLimitGT applies the GT predicate on the "gas_limit" field.

func GasLimitGTE added in v0.1.7

func GasLimitGTE(v uint64) predicate.Msg

GasLimitGTE applies the GTE predicate on the "gas_limit" field.

func GasLimitIn added in v0.1.7

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

GasLimitIn applies the In predicate on the "gas_limit" field.

func GasLimitLT added in v0.1.7

func GasLimitLT(v uint64) predicate.Msg

GasLimitLT applies the LT predicate on the "gas_limit" field.

func GasLimitLTE added in v0.1.7

func GasLimitLTE(v uint64) predicate.Msg

GasLimitLTE applies the LTE predicate on the "gas_limit" field.

func GasLimitNEQ added in v0.1.7

func GasLimitNEQ(v uint64) predicate.Msg

GasLimitNEQ applies the NEQ predicate on the "gas_limit" field.

func GasLimitNotIn added in v0.1.7

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

GasLimitNotIn applies the NotIn predicate on the "gas_limit" 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 HasReceipts added in v0.1.3

func HasReceipts() predicate.Msg

HasReceipts applies the HasEdge predicate on the "receipts" edge.

func HasReceiptsWith added in v0.1.3

func HasReceiptsWith(preds ...predicate.Receipt) predicate.Msg

HasReceiptsWith applies the HasEdge predicate on the "receipts" 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 Offset added in v0.1.7

func Offset(v uint64) predicate.Msg

Offset applies equality check predicate on the "offset" field. It's identical to OffsetEQ.

func OffsetEQ added in v0.1.7

func OffsetEQ(v uint64) predicate.Msg

OffsetEQ applies the EQ predicate on the "offset" field.

func OffsetGT added in v0.1.7

func OffsetGT(v uint64) predicate.Msg

OffsetGT applies the GT predicate on the "offset" field.

func OffsetGTE added in v0.1.7

func OffsetGTE(v uint64) predicate.Msg

OffsetGTE applies the GTE predicate on the "offset" field.

func OffsetIn added in v0.1.7

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

OffsetIn applies the In predicate on the "offset" field.

func OffsetLT added in v0.1.7

func OffsetLT(v uint64) predicate.Msg

OffsetLT applies the LT predicate on the "offset" field.

func OffsetLTE added in v0.1.7

func OffsetLTE(v uint64) predicate.Msg

OffsetLTE applies the LTE predicate on the "offset" field.

func OffsetNEQ added in v0.1.7

func OffsetNEQ(v uint64) predicate.Msg

OffsetNEQ applies the NEQ predicate on the "offset" field.

func OffsetNotIn added in v0.1.7

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

OffsetNotIn applies the NotIn predicate on the "offset" field.

func Or

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

Or groups predicates with the OR operator between them.

func ReceiptHash added in v0.1.4

func ReceiptHash(v []byte) predicate.Msg

ReceiptHash applies equality check predicate on the "receipt_hash" field. It's identical to ReceiptHashEQ.

func ReceiptHashEQ added in v0.1.4

func ReceiptHashEQ(v []byte) predicate.Msg

ReceiptHashEQ applies the EQ predicate on the "receipt_hash" field.

func ReceiptHashGT added in v0.1.4

func ReceiptHashGT(v []byte) predicate.Msg

ReceiptHashGT applies the GT predicate on the "receipt_hash" field.

func ReceiptHashGTE added in v0.1.4

func ReceiptHashGTE(v []byte) predicate.Msg

ReceiptHashGTE applies the GTE predicate on the "receipt_hash" field.

func ReceiptHashIn added in v0.1.4

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

ReceiptHashIn applies the In predicate on the "receipt_hash" field.

func ReceiptHashIsNil added in v0.1.4

func ReceiptHashIsNil() predicate.Msg

ReceiptHashIsNil applies the IsNil predicate on the "receipt_hash" field.

func ReceiptHashLT added in v0.1.4

func ReceiptHashLT(v []byte) predicate.Msg

ReceiptHashLT applies the LT predicate on the "receipt_hash" field.

func ReceiptHashLTE added in v0.1.4

func ReceiptHashLTE(v []byte) predicate.Msg

ReceiptHashLTE applies the LTE predicate on the "receipt_hash" field.

func ReceiptHashNEQ added in v0.1.4

func ReceiptHashNEQ(v []byte) predicate.Msg

ReceiptHashNEQ applies the NEQ predicate on the "receipt_hash" field.

func ReceiptHashNotIn added in v0.1.4

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

ReceiptHashNotIn applies the NotIn predicate on the "receipt_hash" field.

func ReceiptHashNotNil added in v0.1.4

func ReceiptHashNotNil() predicate.Msg

ReceiptHashNotNil applies the NotNil predicate on the "receipt_hash" field.

func Sender added in v0.1.7

func Sender(v []byte) predicate.Msg

Sender applies equality check predicate on the "sender" field. It's identical to SenderEQ.

func SenderEQ added in v0.1.7

func SenderEQ(v []byte) predicate.Msg

SenderEQ applies the EQ predicate on the "sender" field.

func SenderGT added in v0.1.7

func SenderGT(v []byte) predicate.Msg

SenderGT applies the GT predicate on the "sender" field.

func SenderGTE added in v0.1.7

func SenderGTE(v []byte) predicate.Msg

SenderGTE applies the GTE predicate on the "sender" field.

func SenderIn added in v0.1.7

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

SenderIn applies the In predicate on the "sender" field.

func SenderLT added in v0.1.7

func SenderLT(v []byte) predicate.Msg

SenderLT applies the LT predicate on the "sender" field.

func SenderLTE added in v0.1.7

func SenderLTE(v []byte) predicate.Msg

SenderLTE applies the LTE predicate on the "sender" field.

func SenderNEQ added in v0.1.7

func SenderNEQ(v []byte) predicate.Msg

SenderNEQ applies the NEQ predicate on the "sender" field.

func SenderNotIn added in v0.1.7

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

SenderNotIn applies the NotIn predicate on the "sender" field.

func SourceChainID

func SourceChainID(v uint64) predicate.Msg

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

func SourceChainIDEQ

func SourceChainIDEQ(v uint64) predicate.Msg

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

func SourceChainIDGT

func SourceChainIDGT(v uint64) predicate.Msg

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

func SourceChainIDGTE

func SourceChainIDGTE(v uint64) predicate.Msg

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

func SourceChainIDIn

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

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

func SourceChainIDLT

func SourceChainIDLT(v uint64) predicate.Msg

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

func SourceChainIDLTE

func SourceChainIDLTE(v uint64) predicate.Msg

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

func SourceChainIDNEQ

func SourceChainIDNEQ(v uint64) predicate.Msg

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

func SourceChainIDNotIn

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

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

func Status added in v0.1.4

func Status(v string) predicate.Msg

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains added in v0.1.4

func StatusContains(v string) predicate.Msg

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold added in v0.1.4

func StatusContainsFold(v string) predicate.Msg

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ added in v0.1.4

func StatusEQ(v string) predicate.Msg

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold added in v0.1.4

func StatusEqualFold(v string) predicate.Msg

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT added in v0.1.4

func StatusGT(v string) predicate.Msg

StatusGT applies the GT predicate on the "status" field.

func StatusGTE added in v0.1.4

func StatusGTE(v string) predicate.Msg

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix added in v0.1.4

func StatusHasPrefix(v string) predicate.Msg

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix added in v0.1.4

func StatusHasSuffix(v string) predicate.Msg

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn added in v0.1.4

func StatusIn(vs ...string) predicate.Msg

StatusIn applies the In predicate on the "status" field.

func StatusIsNil added in v0.1.4

func StatusIsNil() predicate.Msg

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT added in v0.1.4

func StatusLT(v string) predicate.Msg

StatusLT applies the LT predicate on the "status" field.

func StatusLTE added in v0.1.4

func StatusLTE(v string) predicate.Msg

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ added in v0.1.4

func StatusNEQ(v string) predicate.Msg

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn added in v0.1.4

func StatusNotIn(vs ...string) predicate.Msg

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil added in v0.1.4

func StatusNotNil() predicate.Msg

StatusNotNil applies the NotNil predicate on the "status" field.

func To added in v0.1.7

func To(v []byte) predicate.Msg

To applies equality check predicate on the "to" field. It's identical to ToEQ.

func ToEQ added in v0.1.7

func ToEQ(v []byte) predicate.Msg

ToEQ applies the EQ predicate on the "to" field.

func ToGT added in v0.1.7

func ToGT(v []byte) predicate.Msg

ToGT applies the GT predicate on the "to" field.

func ToGTE added in v0.1.7

func ToGTE(v []byte) predicate.Msg

ToGTE applies the GTE predicate on the "to" field.

func ToIn added in v0.1.7

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

ToIn applies the In predicate on the "to" field.

func ToLT added in v0.1.7

func ToLT(v []byte) predicate.Msg

ToLT applies the LT predicate on the "to" field.

func ToLTE added in v0.1.7

func ToLTE(v []byte) predicate.Msg

ToLTE applies the LTE predicate on the "to" field.

func ToNEQ added in v0.1.7

func ToNEQ(v []byte) predicate.Msg

ToNEQ applies the NEQ predicate on the "to" field.

func ToNotIn added in v0.1.7

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

ToNotIn applies the NotIn predicate on the "to" field.

func TxHash

func TxHash(v []byte) predicate.Msg

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

func TxHashEQ

func TxHashEQ(v []byte) predicate.Msg

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

func TxHashGT

func TxHashGT(v []byte) predicate.Msg

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

func TxHashGTE

func TxHashGTE(v []byte) predicate.Msg

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

func TxHashIn

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

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

func TxHashLT

func TxHashLT(v []byte) predicate.Msg

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

func TxHashLTE

func TxHashLTE(v []byte) predicate.Msg

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

func TxHashNEQ

func TxHashNEQ(v []byte) predicate.Msg

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

func TxHashNotIn

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

TxHashNotIn applies the NotIn predicate on the "tx_hash" 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 ByBlock added in v0.1.7

func ByBlock(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBlock orders the results by block terms.

func ByBlockCount added in v0.1.7

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

ByBlockCount orders the results by block count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDestChainID

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

ByDestChainID orders the results by the dest_chain_id field.

func ByGasLimit added in v0.1.7

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

ByGasLimit orders the results by the gas_limit field.

func ByID

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

ByID orders the results by the id field.

func ByOffset added in v0.1.7

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

ByOffset orders the results by the offset field.

func ByReceipts added in v0.1.3

func ByReceipts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByReceipts orders the results by receipts terms.

func ByReceiptsCount added in v0.1.3

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

ByReceiptsCount orders the results by receipts count.

func BySourceChainID

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

BySourceChainID orders the results by the source_chain_id field.

func ByStatus added in v0.1.4

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

ByStatus orders the results by the status field.

Jump to

Keyboard shortcuts

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