Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TransactionLog) predicate.TransactionLog
- func CreatedAt(v time.Time) predicate.TransactionLog
- func CreatedAtEQ(v time.Time) predicate.TransactionLog
- func CreatedAtGT(v time.Time) predicate.TransactionLog
- func CreatedAtGTE(v time.Time) predicate.TransactionLog
- func CreatedAtIn(vs ...time.Time) predicate.TransactionLog
- func CreatedAtLT(v time.Time) predicate.TransactionLog
- func CreatedAtLTE(v time.Time) predicate.TransactionLog
- func CreatedAtNEQ(v time.Time) predicate.TransactionLog
- func CreatedAtNotIn(vs ...time.Time) predicate.TransactionLog
- func GatewayID(v string) predicate.TransactionLog
- func GatewayIDContains(v string) predicate.TransactionLog
- func GatewayIDContainsFold(v string) predicate.TransactionLog
- func GatewayIDEQ(v string) predicate.TransactionLog
- func GatewayIDEqualFold(v string) predicate.TransactionLog
- func GatewayIDGT(v string) predicate.TransactionLog
- func GatewayIDGTE(v string) predicate.TransactionLog
- func GatewayIDHasPrefix(v string) predicate.TransactionLog
- func GatewayIDHasSuffix(v string) predicate.TransactionLog
- func GatewayIDIn(vs ...string) predicate.TransactionLog
- func GatewayIDIsNil() predicate.TransactionLog
- func GatewayIDLT(v string) predicate.TransactionLog
- func GatewayIDLTE(v string) predicate.TransactionLog
- func GatewayIDNEQ(v string) predicate.TransactionLog
- func GatewayIDNotIn(vs ...string) predicate.TransactionLog
- func GatewayIDNotNil() predicate.TransactionLog
- func ID(id uuid.UUID) predicate.TransactionLog
- func IDEQ(id uuid.UUID) predicate.TransactionLog
- func IDGT(id uuid.UUID) predicate.TransactionLog
- func IDGTE(id uuid.UUID) predicate.TransactionLog
- func IDIn(ids ...uuid.UUID) predicate.TransactionLog
- func IDLT(id uuid.UUID) predicate.TransactionLog
- func IDLTE(id uuid.UUID) predicate.TransactionLog
- func IDNEQ(id uuid.UUID) predicate.TransactionLog
- func IDNotIn(ids ...uuid.UUID) predicate.TransactionLog
- func Network(v string) predicate.TransactionLog
- func NetworkContains(v string) predicate.TransactionLog
- func NetworkContainsFold(v string) predicate.TransactionLog
- func NetworkEQ(v string) predicate.TransactionLog
- func NetworkEqualFold(v string) predicate.TransactionLog
- func NetworkGT(v string) predicate.TransactionLog
- func NetworkGTE(v string) predicate.TransactionLog
- func NetworkHasPrefix(v string) predicate.TransactionLog
- func NetworkHasSuffix(v string) predicate.TransactionLog
- func NetworkIn(vs ...string) predicate.TransactionLog
- func NetworkIsNil() predicate.TransactionLog
- func NetworkLT(v string) predicate.TransactionLog
- func NetworkLTE(v string) predicate.TransactionLog
- func NetworkNEQ(v string) predicate.TransactionLog
- func NetworkNotIn(vs ...string) predicate.TransactionLog
- func NetworkNotNil() predicate.TransactionLog
- func Not(p predicate.TransactionLog) predicate.TransactionLog
- func Or(predicates ...predicate.TransactionLog) predicate.TransactionLog
- func StatusEQ(v Status) predicate.TransactionLog
- func StatusIn(vs ...Status) predicate.TransactionLog
- func StatusNEQ(v Status) predicate.TransactionLog
- func StatusNotIn(vs ...Status) predicate.TransactionLog
- func StatusValidator(s Status) error
- func TxHash(v string) predicate.TransactionLog
- func TxHashContains(v string) predicate.TransactionLog
- func TxHashContainsFold(v string) predicate.TransactionLog
- func TxHashEQ(v string) predicate.TransactionLog
- func TxHashEqualFold(v string) predicate.TransactionLog
- func TxHashGT(v string) predicate.TransactionLog
- func TxHashGTE(v string) predicate.TransactionLog
- func TxHashHasPrefix(v string) predicate.TransactionLog
- func TxHashHasSuffix(v string) predicate.TransactionLog
- func TxHashIn(vs ...string) predicate.TransactionLog
- func TxHashIsNil() predicate.TransactionLog
- func TxHashLT(v string) predicate.TransactionLog
- func TxHashLTE(v string) predicate.TransactionLog
- func TxHashNEQ(v string) predicate.TransactionLog
- func TxHashNotIn(vs ...string) predicate.TransactionLog
- func TxHashNotNil() predicate.TransactionLog
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGatewayID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNetwork(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTxHash(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the transactionlog type in the database. Label = "transaction_log" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldGatewayID holds the string denoting the gateway_id field in the database. FieldGatewayID = "gateway_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldNetwork holds the string denoting the network field in the database. FieldNetwork = "network" // FieldTxHash holds the string denoting the tx_hash field in the database. FieldTxHash = "tx_hash" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the transactionlog in the database. Table = "transaction_logs" )
const DefaultStatus = StatusOrderInitiated
StatusOrderInitiated is the default value of the Status enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldGatewayID, FieldStatus, FieldNetwork, FieldTxHash, FieldMetadata, FieldCreatedAt, }
Columns holds all SQL columns for transactionlog fields.
var ForeignKeys = []string{
"lock_payment_order_transactions",
"payment_order_transactions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "transaction_logs" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.TransactionLog) predicate.TransactionLog
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.TransactionLog
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.TransactionLog
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.TransactionLog
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.TransactionLog
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.TransactionLog
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.TransactionLog
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.TransactionLog
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.TransactionLog
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.TransactionLog
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func GatewayID ¶
func GatewayID(v string) predicate.TransactionLog
GatewayID applies equality check predicate on the "gateway_id" field. It's identical to GatewayIDEQ.
func GatewayIDContains ¶
func GatewayIDContains(v string) predicate.TransactionLog
GatewayIDContains applies the Contains predicate on the "gateway_id" field.
func GatewayIDContainsFold ¶
func GatewayIDContainsFold(v string) predicate.TransactionLog
GatewayIDContainsFold applies the ContainsFold predicate on the "gateway_id" field.
func GatewayIDEQ ¶
func GatewayIDEQ(v string) predicate.TransactionLog
GatewayIDEQ applies the EQ predicate on the "gateway_id" field.
func GatewayIDEqualFold ¶
func GatewayIDEqualFold(v string) predicate.TransactionLog
GatewayIDEqualFold applies the EqualFold predicate on the "gateway_id" field.
func GatewayIDGT ¶
func GatewayIDGT(v string) predicate.TransactionLog
GatewayIDGT applies the GT predicate on the "gateway_id" field.
func GatewayIDGTE ¶
func GatewayIDGTE(v string) predicate.TransactionLog
GatewayIDGTE applies the GTE predicate on the "gateway_id" field.
func GatewayIDHasPrefix ¶
func GatewayIDHasPrefix(v string) predicate.TransactionLog
GatewayIDHasPrefix applies the HasPrefix predicate on the "gateway_id" field.
func GatewayIDHasSuffix ¶
func GatewayIDHasSuffix(v string) predicate.TransactionLog
GatewayIDHasSuffix applies the HasSuffix predicate on the "gateway_id" field.
func GatewayIDIn ¶
func GatewayIDIn(vs ...string) predicate.TransactionLog
GatewayIDIn applies the In predicate on the "gateway_id" field.
func GatewayIDIsNil ¶
func GatewayIDIsNil() predicate.TransactionLog
GatewayIDIsNil applies the IsNil predicate on the "gateway_id" field.
func GatewayIDLT ¶
func GatewayIDLT(v string) predicate.TransactionLog
GatewayIDLT applies the LT predicate on the "gateway_id" field.
func GatewayIDLTE ¶
func GatewayIDLTE(v string) predicate.TransactionLog
GatewayIDLTE applies the LTE predicate on the "gateway_id" field.
func GatewayIDNEQ ¶
func GatewayIDNEQ(v string) predicate.TransactionLog
GatewayIDNEQ applies the NEQ predicate on the "gateway_id" field.
func GatewayIDNotIn ¶
func GatewayIDNotIn(vs ...string) predicate.TransactionLog
GatewayIDNotIn applies the NotIn predicate on the "gateway_id" field.
func GatewayIDNotNil ¶
func GatewayIDNotNil() predicate.TransactionLog
GatewayIDNotNil applies the NotNil predicate on the "gateway_id" field.
func ID ¶
func ID(id uuid.UUID) predicate.TransactionLog
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TransactionLog
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TransactionLog
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TransactionLog
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.TransactionLog
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.TransactionLog
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TransactionLog
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TransactionLog
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.TransactionLog
IDNotIn applies the NotIn predicate on the ID field.
func Network ¶
func Network(v string) predicate.TransactionLog
Network applies equality check predicate on the "network" field. It's identical to NetworkEQ.
func NetworkContains ¶
func NetworkContains(v string) predicate.TransactionLog
NetworkContains applies the Contains predicate on the "network" field.
func NetworkContainsFold ¶
func NetworkContainsFold(v string) predicate.TransactionLog
NetworkContainsFold applies the ContainsFold predicate on the "network" field.
func NetworkEQ ¶
func NetworkEQ(v string) predicate.TransactionLog
NetworkEQ applies the EQ predicate on the "network" field.
func NetworkEqualFold ¶
func NetworkEqualFold(v string) predicate.TransactionLog
NetworkEqualFold applies the EqualFold predicate on the "network" field.
func NetworkGT ¶
func NetworkGT(v string) predicate.TransactionLog
NetworkGT applies the GT predicate on the "network" field.
func NetworkGTE ¶
func NetworkGTE(v string) predicate.TransactionLog
NetworkGTE applies the GTE predicate on the "network" field.
func NetworkHasPrefix ¶
func NetworkHasPrefix(v string) predicate.TransactionLog
NetworkHasPrefix applies the HasPrefix predicate on the "network" field.
func NetworkHasSuffix ¶
func NetworkHasSuffix(v string) predicate.TransactionLog
NetworkHasSuffix applies the HasSuffix predicate on the "network" field.
func NetworkIn ¶
func NetworkIn(vs ...string) predicate.TransactionLog
NetworkIn applies the In predicate on the "network" field.
func NetworkIsNil ¶
func NetworkIsNil() predicate.TransactionLog
NetworkIsNil applies the IsNil predicate on the "network" field.
func NetworkLT ¶
func NetworkLT(v string) predicate.TransactionLog
NetworkLT applies the LT predicate on the "network" field.
func NetworkLTE ¶
func NetworkLTE(v string) predicate.TransactionLog
NetworkLTE applies the LTE predicate on the "network" field.
func NetworkNEQ ¶
func NetworkNEQ(v string) predicate.TransactionLog
NetworkNEQ applies the NEQ predicate on the "network" field.
func NetworkNotIn ¶
func NetworkNotIn(vs ...string) predicate.TransactionLog
NetworkNotIn applies the NotIn predicate on the "network" field.
func NetworkNotNil ¶
func NetworkNotNil() predicate.TransactionLog
NetworkNotNil applies the NotNil predicate on the "network" field.
func Not ¶
func Not(p predicate.TransactionLog) predicate.TransactionLog
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TransactionLog) predicate.TransactionLog
Or groups predicates with the OR operator between them.
func StatusEQ ¶
func StatusEQ(v Status) predicate.TransactionLog
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...Status) predicate.TransactionLog
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v Status) predicate.TransactionLog
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...Status) predicate.TransactionLog
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TxHash ¶
func TxHash(v string) predicate.TransactionLog
TxHash applies equality check predicate on the "tx_hash" field. It's identical to TxHashEQ.
func TxHashContains ¶
func TxHashContains(v string) predicate.TransactionLog
TxHashContains applies the Contains predicate on the "tx_hash" field.
func TxHashContainsFold ¶
func TxHashContainsFold(v string) predicate.TransactionLog
TxHashContainsFold applies the ContainsFold predicate on the "tx_hash" field.
func TxHashEQ ¶
func TxHashEQ(v string) predicate.TransactionLog
TxHashEQ applies the EQ predicate on the "tx_hash" field.
func TxHashEqualFold ¶
func TxHashEqualFold(v string) predicate.TransactionLog
TxHashEqualFold applies the EqualFold predicate on the "tx_hash" field.
func TxHashGT ¶
func TxHashGT(v string) predicate.TransactionLog
TxHashGT applies the GT predicate on the "tx_hash" field.
func TxHashGTE ¶
func TxHashGTE(v string) predicate.TransactionLog
TxHashGTE applies the GTE predicate on the "tx_hash" field.
func TxHashHasPrefix ¶
func TxHashHasPrefix(v string) predicate.TransactionLog
TxHashHasPrefix applies the HasPrefix predicate on the "tx_hash" field.
func TxHashHasSuffix ¶
func TxHashHasSuffix(v string) predicate.TransactionLog
TxHashHasSuffix applies the HasSuffix predicate on the "tx_hash" field.
func TxHashIn ¶
func TxHashIn(vs ...string) predicate.TransactionLog
TxHashIn applies the In predicate on the "tx_hash" field.
func TxHashIsNil ¶
func TxHashIsNil() predicate.TransactionLog
TxHashIsNil applies the IsNil predicate on the "tx_hash" field.
func TxHashLT ¶
func TxHashLT(v string) predicate.TransactionLog
TxHashLT applies the LT predicate on the "tx_hash" field.
func TxHashLTE ¶
func TxHashLTE(v string) predicate.TransactionLog
TxHashLTE applies the LTE predicate on the "tx_hash" field.
func TxHashNEQ ¶
func TxHashNEQ(v string) predicate.TransactionLog
TxHashNEQ applies the NEQ predicate on the "tx_hash" field.
func TxHashNotIn ¶
func TxHashNotIn(vs ...string) predicate.TransactionLog
TxHashNotIn applies the NotIn predicate on the "tx_hash" field.
func TxHashNotNil ¶
func TxHashNotNil() predicate.TransactionLog
TxHashNotNil applies the NotNil 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 TransactionLog queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGatewayID ¶
func ByGatewayID(opts ...sql.OrderTermOption) OrderOption
ByGatewayID orders the results by the gateway_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNetwork ¶
func ByNetwork(opts ...sql.OrderTermOption) OrderOption
ByNetwork orders the results by the network field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTxHash ¶
func ByTxHash(opts ...sql.OrderTermOption) OrderOption
ByTxHash orders the results by the tx_hash field.
type Status ¶
type Status string
Status defines the type for the "status" enum field.
const ( StatusOrderInitiated Status = "order_initiated" StatusCryptoDeposited Status = "crypto_deposited" StatusOrderCreated Status = "order_created" StatusOrderProcessing Status = "order_processing" StatusOrderFulfilled Status = "order_fulfilled" StatusOrderValidated Status = "order_validated" StatusOrderSettled Status = "order_settled" StatusOrderRefunded Status = "order_refunded" StatusGasPrefunded Status = "gas_prefunded" StatusGatewayApproved Status = "gateway_approved" )
Status values.