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 DestAddress(v []byte) predicate.Msg
- func DestAddressEQ(v []byte) predicate.Msg
- func DestAddressGT(v []byte) predicate.Msg
- func DestAddressGTE(v []byte) predicate.Msg
- func DestAddressIn(vs ...[]byte) predicate.Msg
- func DestAddressLT(v []byte) predicate.Msg
- func DestAddressLTE(v []byte) predicate.Msg
- func DestAddressNEQ(v []byte) predicate.Msg
- func DestAddressNotIn(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 DestGasLimit(v uint64) predicate.Msg
- func DestGasLimitEQ(v uint64) predicate.Msg
- func DestGasLimitGT(v uint64) predicate.Msg
- func DestGasLimitGTE(v uint64) predicate.Msg
- func DestGasLimitIn(vs ...uint64) predicate.Msg
- func DestGasLimitLT(v uint64) predicate.Msg
- func DestGasLimitLTE(v uint64) predicate.Msg
- func DestGasLimitNEQ(v uint64) predicate.Msg
- func DestGasLimitNotIn(vs ...uint64) predicate.Msg
- func HasBlock() predicate.Msg
- func HasBlockWith(preds ...predicate.Block) 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 Or(predicates ...predicate.Msg) 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 SourceMsgSender(v []byte) predicate.Msg
- func SourceMsgSenderEQ(v []byte) predicate.Msg
- func SourceMsgSenderGT(v []byte) predicate.Msg
- func SourceMsgSenderGTE(v []byte) predicate.Msg
- func SourceMsgSenderIn(vs ...[]byte) predicate.Msg
- func SourceMsgSenderLT(v []byte) predicate.Msg
- func SourceMsgSenderLTE(v []byte) predicate.Msg
- func SourceMsgSenderNEQ(v []byte) predicate.Msg
- func SourceMsgSenderNotIn(vs ...[]byte) predicate.Msg
- func StreamOffset(v uint64) predicate.Msg
- func StreamOffsetEQ(v uint64) predicate.Msg
- func StreamOffsetGT(v uint64) predicate.Msg
- func StreamOffsetGTE(v uint64) predicate.Msg
- func StreamOffsetIn(vs ...uint64) predicate.Msg
- func StreamOffsetLT(v uint64) predicate.Msg
- func StreamOffsetLTE(v uint64) predicate.Msg
- func StreamOffsetNEQ(v uint64) predicate.Msg
- func StreamOffsetNotIn(vs ...uint64) 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 UUID(v uuid.UUID) predicate.Msg
- func UUIDEQ(v uuid.UUID) predicate.Msg
- func UUIDGT(v uuid.UUID) predicate.Msg
- func UUIDGTE(v uuid.UUID) predicate.Msg
- func UUIDIn(vs ...uuid.UUID) predicate.Msg
- func UUIDLT(v uuid.UUID) predicate.Msg
- func UUIDLTE(v uuid.UUID) predicate.Msg
- func UUIDNEQ(v uuid.UUID) predicate.Msg
- func UUIDNotIn(vs ...uuid.UUID) predicate.Msg
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlockField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDestChainID(opts ...sql.OrderTermOption) OrderOption
- func ByDestGasLimit(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySourceChainID(opts ...sql.OrderTermOption) OrderOption
- func ByStreamOffset(opts ...sql.OrderTermOption) OrderOption
- func ByUUID(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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldUUID, FieldSourceMsgSender, FieldDestAddress, FieldData, FieldDestGasLimit, FieldSourceChainID, FieldDestChainID, FieldStreamOffset, FieldTxHash, FieldCreatedAt, }
Columns holds all SQL columns for msg fields.
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 CreatedAt ¶
CreatedAt applies equality check predicate on the "CreatedAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "CreatedAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "CreatedAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "CreatedAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "CreatedAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "CreatedAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "CreatedAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "CreatedAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "CreatedAt" field.
func DestAddress ¶
DestAddress applies equality check predicate on the "DestAddress" field. It's identical to DestAddressEQ.
func DestAddressEQ ¶
DestAddressEQ applies the EQ predicate on the "DestAddress" field.
func DestAddressGT ¶
DestAddressGT applies the GT predicate on the "DestAddress" field.
func DestAddressGTE ¶
DestAddressGTE applies the GTE predicate on the "DestAddress" field.
func DestAddressIn ¶
DestAddressIn applies the In predicate on the "DestAddress" field.
func DestAddressLT ¶
DestAddressLT applies the LT predicate on the "DestAddress" field.
func DestAddressLTE ¶
DestAddressLTE applies the LTE predicate on the "DestAddress" field.
func DestAddressNEQ ¶
DestAddressNEQ applies the NEQ predicate on the "DestAddress" field.
func DestAddressNotIn ¶
DestAddressNotIn applies the NotIn predicate on the "DestAddress" field.
func DestChainID ¶
DestChainID applies equality check predicate on the "DestChainID" field. It's identical to DestChainIDEQ.
func DestChainIDEQ ¶
DestChainIDEQ applies the EQ predicate on the "DestChainID" field.
func DestChainIDGT ¶
DestChainIDGT applies the GT predicate on the "DestChainID" field.
func DestChainIDGTE ¶
DestChainIDGTE applies the GTE predicate on the "DestChainID" field.
func DestChainIDIn ¶
DestChainIDIn applies the In predicate on the "DestChainID" field.
func DestChainIDLT ¶
DestChainIDLT applies the LT predicate on the "DestChainID" field.
func DestChainIDLTE ¶
DestChainIDLTE applies the LTE predicate on the "DestChainID" field.
func DestChainIDNEQ ¶
DestChainIDNEQ applies the NEQ predicate on the "DestChainID" field.
func DestChainIDNotIn ¶
DestChainIDNotIn applies the NotIn predicate on the "DestChainID" field.
func DestGasLimit ¶
DestGasLimit applies equality check predicate on the "DestGasLimit" field. It's identical to DestGasLimitEQ.
func DestGasLimitEQ ¶
DestGasLimitEQ applies the EQ predicate on the "DestGasLimit" field.
func DestGasLimitGT ¶
DestGasLimitGT applies the GT predicate on the "DestGasLimit" field.
func DestGasLimitGTE ¶
DestGasLimitGTE applies the GTE predicate on the "DestGasLimit" field.
func DestGasLimitIn ¶
DestGasLimitIn applies the In predicate on the "DestGasLimit" field.
func DestGasLimitLT ¶
DestGasLimitLT applies the LT predicate on the "DestGasLimit" field.
func DestGasLimitLTE ¶
DestGasLimitLTE applies the LTE predicate on the "DestGasLimit" field.
func DestGasLimitNEQ ¶
DestGasLimitNEQ applies the NEQ predicate on the "DestGasLimit" field.
func DestGasLimitNotIn ¶
DestGasLimitNotIn applies the NotIn predicate on the "DestGasLimit" field.
func HasBlockWith ¶
HasBlockWith applies the HasEdge predicate on the "Block" edge with a given conditions (other predicates).
func SourceChainID ¶
SourceChainID applies equality check predicate on the "SourceChainID" field. It's identical to SourceChainIDEQ.
func SourceChainIDEQ ¶
SourceChainIDEQ applies the EQ predicate on the "SourceChainID" field.
func SourceChainIDGT ¶
SourceChainIDGT applies the GT predicate on the "SourceChainID" field.
func SourceChainIDGTE ¶
SourceChainIDGTE applies the GTE predicate on the "SourceChainID" field.
func SourceChainIDIn ¶
SourceChainIDIn applies the In predicate on the "SourceChainID" field.
func SourceChainIDLT ¶
SourceChainIDLT applies the LT predicate on the "SourceChainID" field.
func SourceChainIDLTE ¶
SourceChainIDLTE applies the LTE predicate on the "SourceChainID" field.
func SourceChainIDNEQ ¶
SourceChainIDNEQ applies the NEQ predicate on the "SourceChainID" field.
func SourceChainIDNotIn ¶
SourceChainIDNotIn applies the NotIn predicate on the "SourceChainID" field.
func SourceMsgSender ¶
SourceMsgSender applies equality check predicate on the "SourceMsgSender" field. It's identical to SourceMsgSenderEQ.
func SourceMsgSenderEQ ¶
SourceMsgSenderEQ applies the EQ predicate on the "SourceMsgSender" field.
func SourceMsgSenderGT ¶
SourceMsgSenderGT applies the GT predicate on the "SourceMsgSender" field.
func SourceMsgSenderGTE ¶
SourceMsgSenderGTE applies the GTE predicate on the "SourceMsgSender" field.
func SourceMsgSenderIn ¶
SourceMsgSenderIn applies the In predicate on the "SourceMsgSender" field.
func SourceMsgSenderLT ¶
SourceMsgSenderLT applies the LT predicate on the "SourceMsgSender" field.
func SourceMsgSenderLTE ¶
SourceMsgSenderLTE applies the LTE predicate on the "SourceMsgSender" field.
func SourceMsgSenderNEQ ¶
SourceMsgSenderNEQ applies the NEQ predicate on the "SourceMsgSender" field.
func SourceMsgSenderNotIn ¶
SourceMsgSenderNotIn applies the NotIn predicate on the "SourceMsgSender" field.
func StreamOffset ¶
StreamOffset applies equality check predicate on the "StreamOffset" field. It's identical to StreamOffsetEQ.
func StreamOffsetEQ ¶
StreamOffsetEQ applies the EQ predicate on the "StreamOffset" field.
func StreamOffsetGT ¶
StreamOffsetGT applies the GT predicate on the "StreamOffset" field.
func StreamOffsetGTE ¶
StreamOffsetGTE applies the GTE predicate on the "StreamOffset" field.
func StreamOffsetIn ¶
StreamOffsetIn applies the In predicate on the "StreamOffset" field.
func StreamOffsetLT ¶
StreamOffsetLT applies the LT predicate on the "StreamOffset" field.
func StreamOffsetLTE ¶
StreamOffsetLTE applies the LTE predicate on the "StreamOffset" field.
func StreamOffsetNEQ ¶
StreamOffsetNEQ applies the NEQ predicate on the "StreamOffset" field.
func StreamOffsetNotIn ¶
StreamOffsetNotIn applies the NotIn predicate on the "StreamOffset" field.
func TxHash ¶
TxHash applies equality check predicate on the "TxHash" field. It's identical to TxHashEQ.
func TxHashNotIn ¶
TxHashNotIn applies the NotIn predicate on the "TxHash" 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 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.