Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Receipt) predicate.Receipt
- func CreatedAt(v time.Time) predicate.Receipt
- func CreatedAtEQ(v time.Time) predicate.Receipt
- func CreatedAtGT(v time.Time) predicate.Receipt
- func CreatedAtGTE(v time.Time) predicate.Receipt
- func CreatedAtIn(vs ...time.Time) predicate.Receipt
- func CreatedAtLT(v time.Time) predicate.Receipt
- func CreatedAtLTE(v time.Time) predicate.Receipt
- func CreatedAtNEQ(v time.Time) predicate.Receipt
- func CreatedAtNotIn(vs ...time.Time) predicate.Receipt
- func DestChainID(v uint64) predicate.Receipt
- func DestChainIDEQ(v uint64) predicate.Receipt
- func DestChainIDGT(v uint64) predicate.Receipt
- func DestChainIDGTE(v uint64) predicate.Receipt
- func DestChainIDIn(vs ...uint64) predicate.Receipt
- func DestChainIDLT(v uint64) predicate.Receipt
- func DestChainIDLTE(v uint64) predicate.Receipt
- func DestChainIDNEQ(v uint64) predicate.Receipt
- func DestChainIDNotIn(vs ...uint64) predicate.Receipt
- func GasUsed(v uint64) predicate.Receipt
- func GasUsedEQ(v uint64) predicate.Receipt
- func GasUsedGT(v uint64) predicate.Receipt
- func GasUsedGTE(v uint64) predicate.Receipt
- func GasUsedIn(vs ...uint64) predicate.Receipt
- func GasUsedLT(v uint64) predicate.Receipt
- func GasUsedLTE(v uint64) predicate.Receipt
- func GasUsedNEQ(v uint64) predicate.Receipt
- func GasUsedNotIn(vs ...uint64) predicate.Receipt
- func HasBlock() predicate.Receipt
- func HasBlockWith(preds ...predicate.Block) predicate.Receipt
- func ID(id int) predicate.Receipt
- func IDEQ(id int) predicate.Receipt
- func IDGT(id int) predicate.Receipt
- func IDGTE(id int) predicate.Receipt
- func IDIn(ids ...int) predicate.Receipt
- func IDLT(id int) predicate.Receipt
- func IDLTE(id int) predicate.Receipt
- func IDNEQ(id int) predicate.Receipt
- func IDNotIn(ids ...int) predicate.Receipt
- func Not(p predicate.Receipt) predicate.Receipt
- func Or(predicates ...predicate.Receipt) predicate.Receipt
- func RelayerAddress(v []byte) predicate.Receipt
- func RelayerAddressEQ(v []byte) predicate.Receipt
- func RelayerAddressGT(v []byte) predicate.Receipt
- func RelayerAddressGTE(v []byte) predicate.Receipt
- func RelayerAddressIn(vs ...[]byte) predicate.Receipt
- func RelayerAddressLT(v []byte) predicate.Receipt
- func RelayerAddressLTE(v []byte) predicate.Receipt
- func RelayerAddressNEQ(v []byte) predicate.Receipt
- func RelayerAddressNotIn(vs ...[]byte) predicate.Receipt
- func SourceChainID(v uint64) predicate.Receipt
- func SourceChainIDEQ(v uint64) predicate.Receipt
- func SourceChainIDGT(v uint64) predicate.Receipt
- func SourceChainIDGTE(v uint64) predicate.Receipt
- func SourceChainIDIn(vs ...uint64) predicate.Receipt
- func SourceChainIDLT(v uint64) predicate.Receipt
- func SourceChainIDLTE(v uint64) predicate.Receipt
- func SourceChainIDNEQ(v uint64) predicate.Receipt
- func SourceChainIDNotIn(vs ...uint64) predicate.Receipt
- func StreamOffset(v uint64) predicate.Receipt
- func StreamOffsetEQ(v uint64) predicate.Receipt
- func StreamOffsetGT(v uint64) predicate.Receipt
- func StreamOffsetGTE(v uint64) predicate.Receipt
- func StreamOffsetIn(vs ...uint64) predicate.Receipt
- func StreamOffsetLT(v uint64) predicate.Receipt
- func StreamOffsetLTE(v uint64) predicate.Receipt
- func StreamOffsetNEQ(v uint64) predicate.Receipt
- func StreamOffsetNotIn(vs ...uint64) predicate.Receipt
- func Success(v bool) predicate.Receipt
- func SuccessEQ(v bool) predicate.Receipt
- func SuccessNEQ(v bool) predicate.Receipt
- func TxHash(v []byte) predicate.Receipt
- func TxHashEQ(v []byte) predicate.Receipt
- func TxHashGT(v []byte) predicate.Receipt
- func TxHashGTE(v []byte) predicate.Receipt
- func TxHashIn(vs ...[]byte) predicate.Receipt
- func TxHashLT(v []byte) predicate.Receipt
- func TxHashLTE(v []byte) predicate.Receipt
- func TxHashNEQ(v []byte) predicate.Receipt
- func TxHashNotIn(vs ...[]byte) predicate.Receipt
- func UUID(v uuid.UUID) predicate.Receipt
- func UUIDEQ(v uuid.UUID) predicate.Receipt
- func UUIDGT(v uuid.UUID) predicate.Receipt
- func UUIDGTE(v uuid.UUID) predicate.Receipt
- func UUIDIn(vs ...uuid.UUID) predicate.Receipt
- func UUIDLT(v uuid.UUID) predicate.Receipt
- func UUIDLTE(v uuid.UUID) predicate.Receipt
- func UUIDNEQ(v uuid.UUID) predicate.Receipt
- func UUIDNotIn(vs ...uuid.UUID) predicate.Receipt
- 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 ByGasUsed(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySourceChainID(opts ...sql.OrderTermOption) OrderOption
- func ByStreamOffset(opts ...sql.OrderTermOption) OrderOption
- func BySuccess(opts ...sql.OrderTermOption) OrderOption
- func ByUUID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the receipt type in the database. Label = "receipt" // 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" // FieldGasUsed holds the string denoting the gasused field in the database. FieldGasUsed = "gas_used" // FieldSuccess holds the string denoting the success field in the database. FieldSuccess = "success" // FieldRelayerAddress holds the string denoting the relayeraddress field in the database. FieldRelayerAddress = "relayer_address" // 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 receipt in the database. Table = "receipts" // BlockTable is the table that holds the Block relation/edge. BlockTable = "receipts" // 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_receipts" )
Variables ¶
var ( // DefaultUUID holds the default value on creation for the "UUID" field. DefaultUUID func() uuid.UUID // RelayerAddressValidator is a validator for the "RelayerAddress" field. It is called by the builders before save. RelayerAddressValidator 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, FieldGasUsed, FieldSuccess, FieldRelayerAddress, FieldSourceChainID, FieldDestChainID, FieldStreamOffset, FieldTxHash, FieldCreatedAt, }
Columns holds all SQL columns for receipt fields.
var ForeignKeys = []string{
"block_receipts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "receipts" 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 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 GasUsed ¶
GasUsed applies equality check predicate on the "GasUsed" field. It's identical to GasUsedEQ.
func GasUsedGTE ¶
GasUsedGTE applies the GTE predicate on the "GasUsed" field.
func GasUsedLTE ¶
GasUsedLTE applies the LTE predicate on the "GasUsed" field.
func GasUsedNEQ ¶
GasUsedNEQ applies the NEQ predicate on the "GasUsed" field.
func GasUsedNotIn ¶
GasUsedNotIn applies the NotIn predicate on the "GasUsed" field.
func HasBlockWith ¶
HasBlockWith applies the HasEdge predicate on the "Block" edge with a given conditions (other predicates).
func RelayerAddress ¶
RelayerAddress applies equality check predicate on the "RelayerAddress" field. It's identical to RelayerAddressEQ.
func RelayerAddressEQ ¶
RelayerAddressEQ applies the EQ predicate on the "RelayerAddress" field.
func RelayerAddressGT ¶
RelayerAddressGT applies the GT predicate on the "RelayerAddress" field.
func RelayerAddressGTE ¶
RelayerAddressGTE applies the GTE predicate on the "RelayerAddress" field.
func RelayerAddressIn ¶
RelayerAddressIn applies the In predicate on the "RelayerAddress" field.
func RelayerAddressLT ¶
RelayerAddressLT applies the LT predicate on the "RelayerAddress" field.
func RelayerAddressLTE ¶
RelayerAddressLTE applies the LTE predicate on the "RelayerAddress" field.
func RelayerAddressNEQ ¶
RelayerAddressNEQ applies the NEQ predicate on the "RelayerAddress" field.
func RelayerAddressNotIn ¶
RelayerAddressNotIn applies the NotIn predicate on the "RelayerAddress" field.
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 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 Success ¶
Success applies equality check predicate on the "Success" field. It's identical to SuccessEQ.
func SuccessNEQ ¶
SuccessNEQ applies the NEQ predicate on the "Success" 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 Receipt 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 ByGasUsed ¶
func ByGasUsed(opts ...sql.OrderTermOption) OrderOption
ByGasUsed orders the results by the GasUsed 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 BySuccess ¶
func BySuccess(opts ...sql.OrderTermOption) OrderOption
BySuccess orders the results by the Success field.
func ByUUID ¶
func ByUUID(opts ...sql.OrderTermOption) OrderOption
ByUUID orders the results by the UUID field.