Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Msg) predicate.Msg
- func CreatedAt(v time.Time) predicate.Msg
- func CreatedAtEQ(v time.Time) predicate.Msg
- func CreatedAtGT(v time.Time) predicate.Msg
- func CreatedAtGTE(v time.Time) predicate.Msg
- func CreatedAtIn(vs ...time.Time) predicate.Msg
- func CreatedAtLT(v time.Time) predicate.Msg
- func CreatedAtLTE(v time.Time) predicate.Msg
- func CreatedAtNEQ(v time.Time) predicate.Msg
- func CreatedAtNotIn(vs ...time.Time) predicate.Msg
- func Data(v []byte) predicate.Msg
- func DataEQ(v []byte) predicate.Msg
- func DataGT(v []byte) predicate.Msg
- func DataGTE(v []byte) predicate.Msg
- func DataIn(vs ...[]byte) predicate.Msg
- func DataLT(v []byte) predicate.Msg
- func DataLTE(v []byte) predicate.Msg
- func DataNEQ(v []byte) predicate.Msg
- func DataNotIn(vs ...[]byte) predicate.Msg
- func DestChainID(v uint64) predicate.Msg
- func DestChainIDEQ(v uint64) predicate.Msg
- func DestChainIDGT(v uint64) predicate.Msg
- func DestChainIDGTE(v uint64) predicate.Msg
- func DestChainIDIn(vs ...uint64) predicate.Msg
- func DestChainIDLT(v uint64) predicate.Msg
- func DestChainIDLTE(v uint64) predicate.Msg
- func DestChainIDNEQ(v uint64) predicate.Msg
- func DestChainIDNotIn(vs ...uint64) predicate.Msg
- func GasLimit(v uint64) predicate.Msg
- func GasLimitEQ(v uint64) predicate.Msg
- func GasLimitGT(v uint64) predicate.Msg
- func GasLimitGTE(v uint64) predicate.Msg
- func GasLimitIn(vs ...uint64) predicate.Msg
- func GasLimitLT(v uint64) predicate.Msg
- func GasLimitLTE(v uint64) predicate.Msg
- func GasLimitNEQ(v uint64) predicate.Msg
- func GasLimitNotIn(vs ...uint64) predicate.Msg
- func HasBlock() predicate.Msg
- func HasBlockWith(preds ...predicate.Block) predicate.Msg
- func HasReceipts() predicate.Msg
- func HasReceiptsWith(preds ...predicate.Receipt) predicate.Msg
- func ID(id int) predicate.Msg
- func IDEQ(id int) predicate.Msg
- func IDGT(id int) predicate.Msg
- func IDGTE(id int) predicate.Msg
- func IDIn(ids ...int) predicate.Msg
- func IDLT(id int) predicate.Msg
- func IDLTE(id int) predicate.Msg
- func IDNEQ(id int) predicate.Msg
- func IDNotIn(ids ...int) predicate.Msg
- func Not(p predicate.Msg) predicate.Msg
- func Offset(v uint64) predicate.Msg
- func OffsetEQ(v uint64) predicate.Msg
- func OffsetGT(v uint64) predicate.Msg
- func OffsetGTE(v uint64) predicate.Msg
- func OffsetIn(vs ...uint64) predicate.Msg
- func OffsetLT(v uint64) predicate.Msg
- func OffsetLTE(v uint64) predicate.Msg
- func OffsetNEQ(v uint64) predicate.Msg
- func OffsetNotIn(vs ...uint64) predicate.Msg
- func Or(predicates ...predicate.Msg) predicate.Msg
- func ReceiptHash(v []byte) predicate.Msg
- func ReceiptHashEQ(v []byte) predicate.Msg
- func ReceiptHashGT(v []byte) predicate.Msg
- func ReceiptHashGTE(v []byte) predicate.Msg
- func ReceiptHashIn(vs ...[]byte) predicate.Msg
- func ReceiptHashIsNil() predicate.Msg
- func ReceiptHashLT(v []byte) predicate.Msg
- func ReceiptHashLTE(v []byte) predicate.Msg
- func ReceiptHashNEQ(v []byte) predicate.Msg
- func ReceiptHashNotIn(vs ...[]byte) predicate.Msg
- func ReceiptHashNotNil() predicate.Msg
- func Sender(v []byte) predicate.Msg
- func SenderEQ(v []byte) predicate.Msg
- func SenderGT(v []byte) predicate.Msg
- func SenderGTE(v []byte) predicate.Msg
- func SenderIn(vs ...[]byte) predicate.Msg
- func SenderLT(v []byte) predicate.Msg
- func SenderLTE(v []byte) predicate.Msg
- func SenderNEQ(v []byte) predicate.Msg
- func SenderNotIn(vs ...[]byte) predicate.Msg
- func SourceChainID(v uint64) predicate.Msg
- func SourceChainIDEQ(v uint64) predicate.Msg
- func SourceChainIDGT(v uint64) predicate.Msg
- func SourceChainIDGTE(v uint64) predicate.Msg
- func SourceChainIDIn(vs ...uint64) predicate.Msg
- func SourceChainIDLT(v uint64) predicate.Msg
- func SourceChainIDLTE(v uint64) predicate.Msg
- func SourceChainIDNEQ(v uint64) predicate.Msg
- func SourceChainIDNotIn(vs ...uint64) predicate.Msg
- func Status(v string) predicate.Msg
- func StatusContains(v string) predicate.Msg
- func StatusContainsFold(v string) predicate.Msg
- func StatusEQ(v string) predicate.Msg
- func StatusEqualFold(v string) predicate.Msg
- func StatusGT(v string) predicate.Msg
- func StatusGTE(v string) predicate.Msg
- func StatusHasPrefix(v string) predicate.Msg
- func StatusHasSuffix(v string) predicate.Msg
- func StatusIn(vs ...string) predicate.Msg
- func StatusIsNil() predicate.Msg
- func StatusLT(v string) predicate.Msg
- func StatusLTE(v string) predicate.Msg
- func StatusNEQ(v string) predicate.Msg
- func StatusNotIn(vs ...string) predicate.Msg
- func StatusNotNil() predicate.Msg
- func To(v []byte) predicate.Msg
- func ToEQ(v []byte) predicate.Msg
- func ToGT(v []byte) predicate.Msg
- func ToGTE(v []byte) predicate.Msg
- func ToIn(vs ...[]byte) predicate.Msg
- func ToLT(v []byte) predicate.Msg
- func ToLTE(v []byte) predicate.Msg
- func ToNEQ(v []byte) predicate.Msg
- func ToNotIn(vs ...[]byte) predicate.Msg
- func TxHash(v []byte) predicate.Msg
- func TxHashEQ(v []byte) predicate.Msg
- func TxHashGT(v []byte) predicate.Msg
- func TxHashGTE(v []byte) predicate.Msg
- func TxHashIn(vs ...[]byte) predicate.Msg
- func TxHashLT(v []byte) predicate.Msg
- func TxHashLTE(v []byte) predicate.Msg
- func TxHashNEQ(v []byte) predicate.Msg
- func TxHashNotIn(vs ...[]byte) predicate.Msg
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlock(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDestChainID(opts ...sql.OrderTermOption) OrderOption
- func ByGasLimit(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOffset(opts ...sql.OrderTermOption) OrderOption
- func ByReceipts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReceiptsCount(opts ...sql.OrderTermOption) OrderOption
- func BySourceChainID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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"
var Columns = []string{ FieldID, FieldSender, FieldTo, FieldData, FieldGasLimit, FieldSourceChainID, FieldDestChainID, FieldOffset, FieldTxHash, FieldReceiptHash, FieldStatus, FieldCreatedAt, }
Columns holds all SQL columns for msg fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DestChainID ¶
DestChainID applies equality check predicate on the "dest_chain_id" field. It's identical to DestChainIDEQ.
func DestChainIDEQ ¶
DestChainIDEQ applies the EQ predicate on the "dest_chain_id" field.
func DestChainIDGT ¶
DestChainIDGT applies the GT predicate on the "dest_chain_id" field.
func DestChainIDGTE ¶
DestChainIDGTE applies the GTE predicate on the "dest_chain_id" field.
func DestChainIDIn ¶
DestChainIDIn applies the In predicate on the "dest_chain_id" field.
func DestChainIDLT ¶
DestChainIDLT applies the LT predicate on the "dest_chain_id" field.
func DestChainIDLTE ¶
DestChainIDLTE applies the LTE predicate on the "dest_chain_id" field.
func DestChainIDNEQ ¶
DestChainIDNEQ applies the NEQ predicate on the "dest_chain_id" field.
func DestChainIDNotIn ¶
DestChainIDNotIn applies the NotIn predicate on the "dest_chain_id" field.
func GasLimit ¶ added in v0.1.7
GasLimit applies equality check predicate on the "gas_limit" field. It's identical to GasLimitEQ.
func GasLimitEQ ¶ added in v0.1.7
GasLimitEQ applies the EQ predicate on the "gas_limit" field.
func GasLimitGT ¶ added in v0.1.7
GasLimitGT applies the GT predicate on the "gas_limit" field.
func GasLimitGTE ¶ added in v0.1.7
GasLimitGTE applies the GTE predicate on the "gas_limit" field.
func GasLimitIn ¶ added in v0.1.7
GasLimitIn applies the In predicate on the "gas_limit" field.
func GasLimitLT ¶ added in v0.1.7
GasLimitLT applies the LT predicate on the "gas_limit" field.
func GasLimitLTE ¶ added in v0.1.7
GasLimitLTE applies the LTE predicate on the "gas_limit" field.
func GasLimitNEQ ¶ added in v0.1.7
GasLimitNEQ applies the NEQ predicate on the "gas_limit" field.
func GasLimitNotIn ¶ added in v0.1.7
GasLimitNotIn applies the NotIn predicate on the "gas_limit" field.
func HasBlockWith ¶
HasBlockWith applies the HasEdge predicate on the "block" edge with a given conditions (other predicates).
func HasReceipts ¶ added in v0.1.3
HasReceipts applies the HasEdge predicate on the "receipts" edge.
func HasReceiptsWith ¶ added in v0.1.3
HasReceiptsWith applies the HasEdge predicate on the "receipts" edge with a given conditions (other predicates).
func Offset ¶ added in v0.1.7
Offset applies equality check predicate on the "offset" field. It's identical to OffsetEQ.
func OffsetNotIn ¶ added in v0.1.7
OffsetNotIn applies the NotIn predicate on the "offset" field.
func ReceiptHash ¶ added in v0.1.4
ReceiptHash applies equality check predicate on the "receipt_hash" field. It's identical to ReceiptHashEQ.
func ReceiptHashEQ ¶ added in v0.1.4
ReceiptHashEQ applies the EQ predicate on the "receipt_hash" field.
func ReceiptHashGT ¶ added in v0.1.4
ReceiptHashGT applies the GT predicate on the "receipt_hash" field.
func ReceiptHashGTE ¶ added in v0.1.4
ReceiptHashGTE applies the GTE predicate on the "receipt_hash" field.
func ReceiptHashIn ¶ added in v0.1.4
ReceiptHashIn applies the In predicate on the "receipt_hash" field.
func ReceiptHashIsNil ¶ added in v0.1.4
ReceiptHashIsNil applies the IsNil predicate on the "receipt_hash" field.
func ReceiptHashLT ¶ added in v0.1.4
ReceiptHashLT applies the LT predicate on the "receipt_hash" field.
func ReceiptHashLTE ¶ added in v0.1.4
ReceiptHashLTE applies the LTE predicate on the "receipt_hash" field.
func ReceiptHashNEQ ¶ added in v0.1.4
ReceiptHashNEQ applies the NEQ predicate on the "receipt_hash" field.
func ReceiptHashNotIn ¶ added in v0.1.4
ReceiptHashNotIn applies the NotIn predicate on the "receipt_hash" field.
func ReceiptHashNotNil ¶ added in v0.1.4
ReceiptHashNotNil applies the NotNil predicate on the "receipt_hash" field.
func Sender ¶ added in v0.1.7
Sender applies equality check predicate on the "sender" field. It's identical to SenderEQ.
func SenderNotIn ¶ added in v0.1.7
SenderNotIn applies the NotIn predicate on the "sender" field.
func SourceChainID ¶
SourceChainID applies equality check predicate on the "source_chain_id" field. It's identical to SourceChainIDEQ.
func SourceChainIDEQ ¶
SourceChainIDEQ applies the EQ predicate on the "source_chain_id" field.
func SourceChainIDGT ¶
SourceChainIDGT applies the GT predicate on the "source_chain_id" field.
func SourceChainIDGTE ¶
SourceChainIDGTE applies the GTE predicate on the "source_chain_id" field.
func SourceChainIDIn ¶
SourceChainIDIn applies the In predicate on the "source_chain_id" field.
func SourceChainIDLT ¶
SourceChainIDLT applies the LT predicate on the "source_chain_id" field.
func SourceChainIDLTE ¶
SourceChainIDLTE applies the LTE predicate on the "source_chain_id" field.
func SourceChainIDNEQ ¶
SourceChainIDNEQ applies the NEQ predicate on the "source_chain_id" field.
func SourceChainIDNotIn ¶
SourceChainIDNotIn applies the NotIn predicate on the "source_chain_id" field.
func Status ¶ added in v0.1.4
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶ added in v0.1.4
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶ added in v0.1.4
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶ added in v0.1.4
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶ added in v0.1.4
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶ added in v0.1.4
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIsNil ¶ added in v0.1.4
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶ added in v0.1.4
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶ added in v0.1.4
StatusNotNil applies the NotNil predicate on the "status" field.
func To ¶ added in v0.1.7
To applies equality check predicate on the "to" field. It's identical to ToEQ.
func TxHash ¶
TxHash applies equality check predicate on the "tx_hash" field. It's identical to TxHashEQ.
func TxHashNotIn ¶
TxHashNotIn applies the NotIn predicate on the "tx_hash" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.