receiveaddress

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 receiveaddress type in the database.
	Label = "receive_address"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldSalt holds the string denoting the salt field in the database.
	FieldSalt = "salt"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldLastIndexedBlock holds the string denoting the last_indexed_block field in the database.
	FieldLastIndexedBlock = "last_indexed_block"
	// FieldLastUsed holds the string denoting the last_used field in the database.
	FieldLastUsed = "last_used"
	// FieldTxHash holds the string denoting the tx_hash field in the database.
	FieldTxHash = "tx_hash"
	// FieldValidUntil holds the string denoting the valid_until field in the database.
	FieldValidUntil = "valid_until"
	// EdgePaymentOrder holds the string denoting the payment_order edge name in mutations.
	EdgePaymentOrder = "payment_order"
	// Table holds the table name of the receiveaddress in the database.
	Table = "receive_addresses"
	// PaymentOrderTable is the table that holds the payment_order relation/edge.
	PaymentOrderTable = "receive_addresses"
	// PaymentOrderInverseTable is the table name for the PaymentOrder entity.
	// It exists in this package in order to avoid circular dependency with the "paymentorder" package.
	PaymentOrderInverseTable = "payment_orders"
	// PaymentOrderColumn is the table column denoting the payment_order relation/edge.
	PaymentOrderColumn = "payment_order_receive_address"
)
View Source
const DefaultStatus = StatusUnused

StatusUnused 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
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// TxHashValidator is a validator for the "tx_hash" field. It is called by the builders before save.
	TxHashValidator func(string) error
)

Columns holds all SQL columns for receiveaddress fields.

View Source
var ForeignKeys = []string{
	"payment_order_receive_address",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "receive_addresses" table and are not defined as standalone fields in the schema.

Functions

func Address

func Address(v string) predicate.ReceiveAddress

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.ReceiveAddress

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.ReceiveAddress

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.ReceiveAddress

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.ReceiveAddress

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.ReceiveAddress

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.ReceiveAddress

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.ReceiveAddress

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.ReceiveAddress

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.ReceiveAddress

AddressIn applies the In predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.ReceiveAddress

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.ReceiveAddress

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.ReceiveAddress

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.ReceiveAddress

AddressNotIn applies the NotIn predicate on the "address" field.

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ReceiveAddress

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ReceiveAddress

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ReceiveAddress

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ReceiveAddress

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.ReceiveAddress

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ReceiveAddress

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ReceiveAddress

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ReceiveAddress

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.ReceiveAddress

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasPaymentOrder

func HasPaymentOrder() predicate.ReceiveAddress

HasPaymentOrder applies the HasEdge predicate on the "payment_order" edge.

func HasPaymentOrderWith

func HasPaymentOrderWith(preds ...predicate.PaymentOrder) predicate.ReceiveAddress

HasPaymentOrderWith applies the HasEdge predicate on the "payment_order" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.ReceiveAddress

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.ReceiveAddress

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.ReceiveAddress

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.ReceiveAddress

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.ReceiveAddress

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.ReceiveAddress

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.ReceiveAddress

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.ReceiveAddress

IDNotIn applies the NotIn predicate on the ID field.

func LastIndexedBlock

func LastIndexedBlock(v int64) predicate.ReceiveAddress

LastIndexedBlock applies equality check predicate on the "last_indexed_block" field. It's identical to LastIndexedBlockEQ.

func LastIndexedBlockEQ

func LastIndexedBlockEQ(v int64) predicate.ReceiveAddress

LastIndexedBlockEQ applies the EQ predicate on the "last_indexed_block" field.

func LastIndexedBlockGT

func LastIndexedBlockGT(v int64) predicate.ReceiveAddress

LastIndexedBlockGT applies the GT predicate on the "last_indexed_block" field.

func LastIndexedBlockGTE

func LastIndexedBlockGTE(v int64) predicate.ReceiveAddress

LastIndexedBlockGTE applies the GTE predicate on the "last_indexed_block" field.

func LastIndexedBlockIn

func LastIndexedBlockIn(vs ...int64) predicate.ReceiveAddress

LastIndexedBlockIn applies the In predicate on the "last_indexed_block" field.

func LastIndexedBlockIsNil

func LastIndexedBlockIsNil() predicate.ReceiveAddress

LastIndexedBlockIsNil applies the IsNil predicate on the "last_indexed_block" field.

func LastIndexedBlockLT

func LastIndexedBlockLT(v int64) predicate.ReceiveAddress

LastIndexedBlockLT applies the LT predicate on the "last_indexed_block" field.

func LastIndexedBlockLTE

func LastIndexedBlockLTE(v int64) predicate.ReceiveAddress

LastIndexedBlockLTE applies the LTE predicate on the "last_indexed_block" field.

func LastIndexedBlockNEQ

func LastIndexedBlockNEQ(v int64) predicate.ReceiveAddress

LastIndexedBlockNEQ applies the NEQ predicate on the "last_indexed_block" field.

func LastIndexedBlockNotIn

func LastIndexedBlockNotIn(vs ...int64) predicate.ReceiveAddress

LastIndexedBlockNotIn applies the NotIn predicate on the "last_indexed_block" field.

func LastIndexedBlockNotNil

func LastIndexedBlockNotNil() predicate.ReceiveAddress

LastIndexedBlockNotNil applies the NotNil predicate on the "last_indexed_block" field.

func LastUsed

func LastUsed(v time.Time) predicate.ReceiveAddress

LastUsed applies equality check predicate on the "last_used" field. It's identical to LastUsedEQ.

func LastUsedEQ

func LastUsedEQ(v time.Time) predicate.ReceiveAddress

LastUsedEQ applies the EQ predicate on the "last_used" field.

func LastUsedGT

func LastUsedGT(v time.Time) predicate.ReceiveAddress

LastUsedGT applies the GT predicate on the "last_used" field.

func LastUsedGTE

func LastUsedGTE(v time.Time) predicate.ReceiveAddress

LastUsedGTE applies the GTE predicate on the "last_used" field.

func LastUsedIn

func LastUsedIn(vs ...time.Time) predicate.ReceiveAddress

LastUsedIn applies the In predicate on the "last_used" field.

func LastUsedIsNil

func LastUsedIsNil() predicate.ReceiveAddress

LastUsedIsNil applies the IsNil predicate on the "last_used" field.

func LastUsedLT

func LastUsedLT(v time.Time) predicate.ReceiveAddress

LastUsedLT applies the LT predicate on the "last_used" field.

func LastUsedLTE

func LastUsedLTE(v time.Time) predicate.ReceiveAddress

LastUsedLTE applies the LTE predicate on the "last_used" field.

func LastUsedNEQ

func LastUsedNEQ(v time.Time) predicate.ReceiveAddress

LastUsedNEQ applies the NEQ predicate on the "last_used" field.

func LastUsedNotIn

func LastUsedNotIn(vs ...time.Time) predicate.ReceiveAddress

LastUsedNotIn applies the NotIn predicate on the "last_used" field.

func LastUsedNotNil

func LastUsedNotNil() predicate.ReceiveAddress

LastUsedNotNil applies the NotNil predicate on the "last_used" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Salt

func Salt(v []byte) predicate.ReceiveAddress

Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.

func SaltEQ

func SaltEQ(v []byte) predicate.ReceiveAddress

SaltEQ applies the EQ predicate on the "salt" field.

func SaltGT

func SaltGT(v []byte) predicate.ReceiveAddress

SaltGT applies the GT predicate on the "salt" field.

func SaltGTE

func SaltGTE(v []byte) predicate.ReceiveAddress

SaltGTE applies the GTE predicate on the "salt" field.

func SaltIn

func SaltIn(vs ...[]byte) predicate.ReceiveAddress

SaltIn applies the In predicate on the "salt" field.

func SaltLT

func SaltLT(v []byte) predicate.ReceiveAddress

SaltLT applies the LT predicate on the "salt" field.

func SaltLTE

func SaltLTE(v []byte) predicate.ReceiveAddress

SaltLTE applies the LTE predicate on the "salt" field.

func SaltNEQ

func SaltNEQ(v []byte) predicate.ReceiveAddress

SaltNEQ applies the NEQ predicate on the "salt" field.

func SaltNotIn

func SaltNotIn(vs ...[]byte) predicate.ReceiveAddress

SaltNotIn applies the NotIn predicate on the "salt" field.

func StatusEQ

func StatusEQ(v Status) predicate.ReceiveAddress

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.ReceiveAddress

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.ReceiveAddress

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.ReceiveAddress

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

TxHashContains applies the Contains predicate on the "tx_hash" field.

func TxHashContainsFold

func TxHashContainsFold(v string) predicate.ReceiveAddress

TxHashContainsFold applies the ContainsFold predicate on the "tx_hash" field.

func TxHashEQ

func TxHashEQ(v string) predicate.ReceiveAddress

TxHashEQ applies the EQ predicate on the "tx_hash" field.

func TxHashEqualFold

func TxHashEqualFold(v string) predicate.ReceiveAddress

TxHashEqualFold applies the EqualFold predicate on the "tx_hash" field.

func TxHashGT

func TxHashGT(v string) predicate.ReceiveAddress

TxHashGT applies the GT predicate on the "tx_hash" field.

func TxHashGTE

func TxHashGTE(v string) predicate.ReceiveAddress

TxHashGTE applies the GTE predicate on the "tx_hash" field.

func TxHashHasPrefix

func TxHashHasPrefix(v string) predicate.ReceiveAddress

TxHashHasPrefix applies the HasPrefix predicate on the "tx_hash" field.

func TxHashHasSuffix

func TxHashHasSuffix(v string) predicate.ReceiveAddress

TxHashHasSuffix applies the HasSuffix predicate on the "tx_hash" field.

func TxHashIn

func TxHashIn(vs ...string) predicate.ReceiveAddress

TxHashIn applies the In predicate on the "tx_hash" field.

func TxHashIsNil

func TxHashIsNil() predicate.ReceiveAddress

TxHashIsNil applies the IsNil predicate on the "tx_hash" field.

func TxHashLT

func TxHashLT(v string) predicate.ReceiveAddress

TxHashLT applies the LT predicate on the "tx_hash" field.

func TxHashLTE

func TxHashLTE(v string) predicate.ReceiveAddress

TxHashLTE applies the LTE predicate on the "tx_hash" field.

func TxHashNEQ

func TxHashNEQ(v string) predicate.ReceiveAddress

TxHashNEQ applies the NEQ predicate on the "tx_hash" field.

func TxHashNotIn

func TxHashNotIn(vs ...string) predicate.ReceiveAddress

TxHashNotIn applies the NotIn predicate on the "tx_hash" field.

func TxHashNotNil

func TxHashNotNil() predicate.ReceiveAddress

TxHashNotNil applies the NotNil predicate on the "tx_hash" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ReceiveAddress

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ReceiveAddress

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ReceiveAddress

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ReceiveAddress

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.ReceiveAddress

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ReceiveAddress

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ReceiveAddress

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ReceiveAddress

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.ReceiveAddress

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func ValidUntil

func ValidUntil(v time.Time) predicate.ReceiveAddress

ValidUntil applies equality check predicate on the "valid_until" field. It's identical to ValidUntilEQ.

func ValidUntilEQ

func ValidUntilEQ(v time.Time) predicate.ReceiveAddress

ValidUntilEQ applies the EQ predicate on the "valid_until" field.

func ValidUntilGT

func ValidUntilGT(v time.Time) predicate.ReceiveAddress

ValidUntilGT applies the GT predicate on the "valid_until" field.

func ValidUntilGTE

func ValidUntilGTE(v time.Time) predicate.ReceiveAddress

ValidUntilGTE applies the GTE predicate on the "valid_until" field.

func ValidUntilIn

func ValidUntilIn(vs ...time.Time) predicate.ReceiveAddress

ValidUntilIn applies the In predicate on the "valid_until" field.

func ValidUntilIsNil

func ValidUntilIsNil() predicate.ReceiveAddress

ValidUntilIsNil applies the IsNil predicate on the "valid_until" field.

func ValidUntilLT

func ValidUntilLT(v time.Time) predicate.ReceiveAddress

ValidUntilLT applies the LT predicate on the "valid_until" field.

func ValidUntilLTE

func ValidUntilLTE(v time.Time) predicate.ReceiveAddress

ValidUntilLTE applies the LTE predicate on the "valid_until" field.

func ValidUntilNEQ

func ValidUntilNEQ(v time.Time) predicate.ReceiveAddress

ValidUntilNEQ applies the NEQ predicate on the "valid_until" field.

func ValidUntilNotIn

func ValidUntilNotIn(vs ...time.Time) predicate.ReceiveAddress

ValidUntilNotIn applies the NotIn predicate on the "valid_until" field.

func ValidUntilNotNil

func ValidUntilNotNil() predicate.ReceiveAddress

ValidUntilNotNil applies the NotNil predicate on the "valid_until" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ReceiveAddress queries.

func ByAddress

func ByAddress(opts ...sql.OrderTermOption) OrderOption

ByAddress orders the results by the address field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLastIndexedBlock

func ByLastIndexedBlock(opts ...sql.OrderTermOption) OrderOption

ByLastIndexedBlock orders the results by the last_indexed_block field.

func ByLastUsed

func ByLastUsed(opts ...sql.OrderTermOption) OrderOption

ByLastUsed orders the results by the last_used field.

func ByPaymentOrderField

func ByPaymentOrderField(field string, opts ...sql.OrderTermOption) OrderOption

ByPaymentOrderField orders the results by payment_order 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.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByValidUntil

func ByValidUntil(opts ...sql.OrderTermOption) OrderOption

ByValidUntil orders the results by the valid_until field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusUnused  Status = "unused"
	StatusUsed    Status = "used"
	StatusExpired Status = "expired"
)

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