transactionlog

package
v0.0.0-...-6269356 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultStatus = StatusOrderInitiated

StatusOrderInitiated is the default value of the Status enum.

Variables

View Source
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
)

Columns holds all SQL columns for transactionlog fields.

View Source
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

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

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

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

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TxHash

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

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 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.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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