user

package
v0.0.0-...-6e25d96 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldWords holds the string denoting the words field in the database.
	FieldWords = "words"
	// FieldNetwork holds the string denoting the network field in the database.
	FieldNetwork = "network"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldPrivateKey holds the string denoting the private_key field in the database.
	FieldPrivateKey = "private_key"
	// FieldBalance holds the string denoting the balance field in the database.
	FieldBalance = "balance"
	// FieldBalanceUpdateTime holds the string denoting the balance_update_time field in the database.
	FieldBalanceUpdateTime = "balance_update_time"
	// FieldTokenInfo holds the string denoting the token_info field in the database.
	FieldTokenInfo = "token_info"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldCreateDate holds the string denoting the create_date field in the database.
	FieldCreateDate = "create_date"
	// FieldIsTransfer holds the string denoting the is_transfer field in the database.
	FieldIsTransfer = "is_transfer"
	// FieldTotalTokenValue holds the string denoting the total_token_value field in the database.
	FieldTotalTokenValue = "total_token_value"
	// FieldTrxMode holds the string denoting the trx_mode field in the database.
	FieldTrxMode = "trx_mode"
	// FieldTrxAddrType holds the string denoting the trx_addr_type field in the database.
	FieldTrxAddrType = "trx_addr_type"
	// FieldTrxPrivAddr holds the string denoting the trx_priv_addr field in the database.
	FieldTrxPrivAddr = "trx_priv_addr"
	// FieldTrxPrivPkey holds the string denoting the trx_priv_pkey field in the database.
	FieldTrxPrivPkey = "trx_priv_pkey"
	// FieldAesType holds the string denoting the aes_type field in the database.
	FieldAesType = "aes_type"
	// Table holds the table name of the user in the database.
	Table = "user"
)
View Source
const DefaultTrxAddrType = TrxAddrTypeSingle

TrxAddrTypeSingle is the default value of the TrxAddrType enum.

View Source
const DefaultTrxMode = TrxModeTransfer

TrxModeTransfer is the default value of the TrxMode enum.

Variables

View Source
var (
	// DefaultWords holds the default value on creation for the "words" field.
	DefaultWords string
	// DefaultNetwork holds the default value on creation for the "network" field.
	DefaultNetwork string
	// DefaultAddress holds the default value on creation for the "address" field.
	DefaultAddress string
	// DefaultPrivateKey holds the default value on creation for the "private_key" field.
	DefaultPrivateKey string
	// DefaultBalance holds the default value on creation for the "balance" field.
	DefaultBalance decimal.Decimal
	// DefaultBalanceUpdateTime holds the default value on creation for the "balance_update_time" field.
	DefaultBalanceUpdateTime int
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime int
	// DefaultIsTransfer holds the default value on creation for the "is_transfer" field.
	DefaultIsTransfer int8
	// DefaultTotalTokenValue holds the default value on creation for the "total_token_value" field.
	DefaultTotalTokenValue decimal.Decimal
	// DefaultTrxPrivAddr holds the default value on creation for the "trx_priv_addr" field.
	DefaultTrxPrivAddr string
	// DefaultTrxPrivPkey holds the default value on creation for the "trx_priv_pkey" field.
	DefaultTrxPrivPkey string
	// DefaultAesType holds the default value on creation for the "aes_type" field.
	DefaultAesType int8
)

Columns holds all SQL columns for user fields.

Functions

func Address

func Address(v string) predicate.User

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

func AddressContains

func AddressContains(v string) predicate.User

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

func AddressContainsFold

func AddressContainsFold(v string) predicate.User

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

func AddressEQ

func AddressEQ(v string) predicate.User

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

func AddressEqualFold

func AddressEqualFold(v string) predicate.User

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

func AddressGT

func AddressGT(v string) predicate.User

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

func AddressGTE

func AddressGTE(v string) predicate.User

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

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.User

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

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.User

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

func AddressIn

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

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

func AddressIsNil

func AddressIsNil() predicate.User

AddressIsNil applies the IsNil predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.User

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

func AddressLTE

func AddressLTE(v string) predicate.User

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

func AddressNEQ

func AddressNEQ(v string) predicate.User

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

func AddressNotIn

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

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

func AddressNotNil

func AddressNotNil() predicate.User

AddressNotNil applies the NotNil predicate on the "address" field.

func AesType

func AesType(v int8) predicate.User

AesType applies equality check predicate on the "aes_type" field. It's identical to AesTypeEQ.

func AesTypeEQ

func AesTypeEQ(v int8) predicate.User

AesTypeEQ applies the EQ predicate on the "aes_type" field.

func AesTypeGT

func AesTypeGT(v int8) predicate.User

AesTypeGT applies the GT predicate on the "aes_type" field.

func AesTypeGTE

func AesTypeGTE(v int8) predicate.User

AesTypeGTE applies the GTE predicate on the "aes_type" field.

func AesTypeIn

func AesTypeIn(vs ...int8) predicate.User

AesTypeIn applies the In predicate on the "aes_type" field.

func AesTypeIsNil

func AesTypeIsNil() predicate.User

AesTypeIsNil applies the IsNil predicate on the "aes_type" field.

func AesTypeLT

func AesTypeLT(v int8) predicate.User

AesTypeLT applies the LT predicate on the "aes_type" field.

func AesTypeLTE

func AesTypeLTE(v int8) predicate.User

AesTypeLTE applies the LTE predicate on the "aes_type" field.

func AesTypeNEQ

func AesTypeNEQ(v int8) predicate.User

AesTypeNEQ applies the NEQ predicate on the "aes_type" field.

func AesTypeNotIn

func AesTypeNotIn(vs ...int8) predicate.User

AesTypeNotIn applies the NotIn predicate on the "aes_type" field.

func AesTypeNotNil

func AesTypeNotNil() predicate.User

AesTypeNotNil applies the NotNil predicate on the "aes_type" field.

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Balance

func Balance(v decimal.Decimal) predicate.User

Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.

func BalanceEQ

func BalanceEQ(v decimal.Decimal) predicate.User

BalanceEQ applies the EQ predicate on the "balance" field.

func BalanceGT

func BalanceGT(v decimal.Decimal) predicate.User

BalanceGT applies the GT predicate on the "balance" field.

func BalanceGTE

func BalanceGTE(v decimal.Decimal) predicate.User

BalanceGTE applies the GTE predicate on the "balance" field.

func BalanceIn

func BalanceIn(vs ...decimal.Decimal) predicate.User

BalanceIn applies the In predicate on the "balance" field.

func BalanceLT

func BalanceLT(v decimal.Decimal) predicate.User

BalanceLT applies the LT predicate on the "balance" field.

func BalanceLTE

func BalanceLTE(v decimal.Decimal) predicate.User

BalanceLTE applies the LTE predicate on the "balance" field.

func BalanceNEQ

func BalanceNEQ(v decimal.Decimal) predicate.User

BalanceNEQ applies the NEQ predicate on the "balance" field.

func BalanceNotIn

func BalanceNotIn(vs ...decimal.Decimal) predicate.User

BalanceNotIn applies the NotIn predicate on the "balance" field.

func BalanceUpdateTime

func BalanceUpdateTime(v int) predicate.User

BalanceUpdateTime applies equality check predicate on the "balance_update_time" field. It's identical to BalanceUpdateTimeEQ.

func BalanceUpdateTimeEQ

func BalanceUpdateTimeEQ(v int) predicate.User

BalanceUpdateTimeEQ applies the EQ predicate on the "balance_update_time" field.

func BalanceUpdateTimeGT

func BalanceUpdateTimeGT(v int) predicate.User

BalanceUpdateTimeGT applies the GT predicate on the "balance_update_time" field.

func BalanceUpdateTimeGTE

func BalanceUpdateTimeGTE(v int) predicate.User

BalanceUpdateTimeGTE applies the GTE predicate on the "balance_update_time" field.

func BalanceUpdateTimeIn

func BalanceUpdateTimeIn(vs ...int) predicate.User

BalanceUpdateTimeIn applies the In predicate on the "balance_update_time" field.

func BalanceUpdateTimeIsNil

func BalanceUpdateTimeIsNil() predicate.User

BalanceUpdateTimeIsNil applies the IsNil predicate on the "balance_update_time" field.

func BalanceUpdateTimeLT

func BalanceUpdateTimeLT(v int) predicate.User

BalanceUpdateTimeLT applies the LT predicate on the "balance_update_time" field.

func BalanceUpdateTimeLTE

func BalanceUpdateTimeLTE(v int) predicate.User

BalanceUpdateTimeLTE applies the LTE predicate on the "balance_update_time" field.

func BalanceUpdateTimeNEQ

func BalanceUpdateTimeNEQ(v int) predicate.User

BalanceUpdateTimeNEQ applies the NEQ predicate on the "balance_update_time" field.

func BalanceUpdateTimeNotIn

func BalanceUpdateTimeNotIn(vs ...int) predicate.User

BalanceUpdateTimeNotIn applies the NotIn predicate on the "balance_update_time" field.

func BalanceUpdateTimeNotNil

func BalanceUpdateTimeNotNil() predicate.User

BalanceUpdateTimeNotNil applies the NotNil predicate on the "balance_update_time" field.

func CreateDate

func CreateDate(v time.Time) predicate.User

CreateDate applies equality check predicate on the "create_date" field. It's identical to CreateDateEQ.

func CreateDateEQ

func CreateDateEQ(v time.Time) predicate.User

CreateDateEQ applies the EQ predicate on the "create_date" field.

func CreateDateGT

func CreateDateGT(v time.Time) predicate.User

CreateDateGT applies the GT predicate on the "create_date" field.

func CreateDateGTE

func CreateDateGTE(v time.Time) predicate.User

CreateDateGTE applies the GTE predicate on the "create_date" field.

func CreateDateIn

func CreateDateIn(vs ...time.Time) predicate.User

CreateDateIn applies the In predicate on the "create_date" field.

func CreateDateIsNil

func CreateDateIsNil() predicate.User

CreateDateIsNil applies the IsNil predicate on the "create_date" field.

func CreateDateLT

func CreateDateLT(v time.Time) predicate.User

CreateDateLT applies the LT predicate on the "create_date" field.

func CreateDateLTE

func CreateDateLTE(v time.Time) predicate.User

CreateDateLTE applies the LTE predicate on the "create_date" field.

func CreateDateNEQ

func CreateDateNEQ(v time.Time) predicate.User

CreateDateNEQ applies the NEQ predicate on the "create_date" field.

func CreateDateNotIn

func CreateDateNotIn(vs ...time.Time) predicate.User

CreateDateNotIn applies the NotIn predicate on the "create_date" field.

func CreateDateNotNil

func CreateDateNotNil() predicate.User

CreateDateNotNil applies the NotNil predicate on the "create_date" field.

func CreateTime

func CreateTime(v int) predicate.User

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v int) predicate.User

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v int) predicate.User

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v int) predicate.User

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...int) predicate.User

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeIsNil

func CreateTimeIsNil() predicate.User

CreateTimeIsNil applies the IsNil predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v int) predicate.User

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v int) predicate.User

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v int) predicate.User

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...int) predicate.User

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func CreateTimeNotNil

func CreateTimeNotNil() predicate.User

CreateTimeNotNil applies the NotNil predicate on the "create_time" field.

func ID

func ID(id uint) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func IsTransfer

func IsTransfer(v int8) predicate.User

IsTransfer applies equality check predicate on the "is_transfer" field. It's identical to IsTransferEQ.

func IsTransferEQ

func IsTransferEQ(v int8) predicate.User

IsTransferEQ applies the EQ predicate on the "is_transfer" field.

func IsTransferGT

func IsTransferGT(v int8) predicate.User

IsTransferGT applies the GT predicate on the "is_transfer" field.

func IsTransferGTE

func IsTransferGTE(v int8) predicate.User

IsTransferGTE applies the GTE predicate on the "is_transfer" field.

func IsTransferIn

func IsTransferIn(vs ...int8) predicate.User

IsTransferIn applies the In predicate on the "is_transfer" field.

func IsTransferIsNil

func IsTransferIsNil() predicate.User

IsTransferIsNil applies the IsNil predicate on the "is_transfer" field.

func IsTransferLT

func IsTransferLT(v int8) predicate.User

IsTransferLT applies the LT predicate on the "is_transfer" field.

func IsTransferLTE

func IsTransferLTE(v int8) predicate.User

IsTransferLTE applies the LTE predicate on the "is_transfer" field.

func IsTransferNEQ

func IsTransferNEQ(v int8) predicate.User

IsTransferNEQ applies the NEQ predicate on the "is_transfer" field.

func IsTransferNotIn

func IsTransferNotIn(vs ...int8) predicate.User

IsTransferNotIn applies the NotIn predicate on the "is_transfer" field.

func IsTransferNotNil

func IsTransferNotNil() predicate.User

IsTransferNotNil applies the NotNil predicate on the "is_transfer" field.

func Network

func Network(v string) predicate.User

Network applies equality check predicate on the "network" field. It's identical to NetworkEQ.

func NetworkContains

func NetworkContains(v string) predicate.User

NetworkContains applies the Contains predicate on the "network" field.

func NetworkContainsFold

func NetworkContainsFold(v string) predicate.User

NetworkContainsFold applies the ContainsFold predicate on the "network" field.

func NetworkEQ

func NetworkEQ(v string) predicate.User

NetworkEQ applies the EQ predicate on the "network" field.

func NetworkEqualFold

func NetworkEqualFold(v string) predicate.User

NetworkEqualFold applies the EqualFold predicate on the "network" field.

func NetworkGT

func NetworkGT(v string) predicate.User

NetworkGT applies the GT predicate on the "network" field.

func NetworkGTE

func NetworkGTE(v string) predicate.User

NetworkGTE applies the GTE predicate on the "network" field.

func NetworkHasPrefix

func NetworkHasPrefix(v string) predicate.User

NetworkHasPrefix applies the HasPrefix predicate on the "network" field.

func NetworkHasSuffix

func NetworkHasSuffix(v string) predicate.User

NetworkHasSuffix applies the HasSuffix predicate on the "network" field.

func NetworkIn

func NetworkIn(vs ...string) predicate.User

NetworkIn applies the In predicate on the "network" field.

func NetworkIsNil

func NetworkIsNil() predicate.User

NetworkIsNil applies the IsNil predicate on the "network" field.

func NetworkLT

func NetworkLT(v string) predicate.User

NetworkLT applies the LT predicate on the "network" field.

func NetworkLTE

func NetworkLTE(v string) predicate.User

NetworkLTE applies the LTE predicate on the "network" field.

func NetworkNEQ

func NetworkNEQ(v string) predicate.User

NetworkNEQ applies the NEQ predicate on the "network" field.

func NetworkNotIn

func NetworkNotIn(vs ...string) predicate.User

NetworkNotIn applies the NotIn predicate on the "network" field.

func NetworkNotNil

func NetworkNotNil() predicate.User

NetworkNotNil applies the NotNil predicate on the "network" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func PrivateKey

func PrivateKey(v string) predicate.User

PrivateKey applies equality check predicate on the "private_key" field. It's identical to PrivateKeyEQ.

func PrivateKeyContains

func PrivateKeyContains(v string) predicate.User

PrivateKeyContains applies the Contains predicate on the "private_key" field.

func PrivateKeyContainsFold

func PrivateKeyContainsFold(v string) predicate.User

PrivateKeyContainsFold applies the ContainsFold predicate on the "private_key" field.

func PrivateKeyEQ

func PrivateKeyEQ(v string) predicate.User

PrivateKeyEQ applies the EQ predicate on the "private_key" field.

func PrivateKeyEqualFold

func PrivateKeyEqualFold(v string) predicate.User

PrivateKeyEqualFold applies the EqualFold predicate on the "private_key" field.

func PrivateKeyGT

func PrivateKeyGT(v string) predicate.User

PrivateKeyGT applies the GT predicate on the "private_key" field.

func PrivateKeyGTE

func PrivateKeyGTE(v string) predicate.User

PrivateKeyGTE applies the GTE predicate on the "private_key" field.

func PrivateKeyHasPrefix

func PrivateKeyHasPrefix(v string) predicate.User

PrivateKeyHasPrefix applies the HasPrefix predicate on the "private_key" field.

func PrivateKeyHasSuffix

func PrivateKeyHasSuffix(v string) predicate.User

PrivateKeyHasSuffix applies the HasSuffix predicate on the "private_key" field.

func PrivateKeyIn

func PrivateKeyIn(vs ...string) predicate.User

PrivateKeyIn applies the In predicate on the "private_key" field.

func PrivateKeyIsNil

func PrivateKeyIsNil() predicate.User

PrivateKeyIsNil applies the IsNil predicate on the "private_key" field.

func PrivateKeyLT

func PrivateKeyLT(v string) predicate.User

PrivateKeyLT applies the LT predicate on the "private_key" field.

func PrivateKeyLTE

func PrivateKeyLTE(v string) predicate.User

PrivateKeyLTE applies the LTE predicate on the "private_key" field.

func PrivateKeyNEQ

func PrivateKeyNEQ(v string) predicate.User

PrivateKeyNEQ applies the NEQ predicate on the "private_key" field.

func PrivateKeyNotIn

func PrivateKeyNotIn(vs ...string) predicate.User

PrivateKeyNotIn applies the NotIn predicate on the "private_key" field.

func PrivateKeyNotNil

func PrivateKeyNotNil() predicate.User

PrivateKeyNotNil applies the NotNil predicate on the "private_key" field.

func TokenInfoIsNil

func TokenInfoIsNil() predicate.User

TokenInfoIsNil applies the IsNil predicate on the "token_info" field.

func TokenInfoNotNil

func TokenInfoNotNil() predicate.User

TokenInfoNotNil applies the NotNil predicate on the "token_info" field.

func TotalTokenValue

func TotalTokenValue(v decimal.Decimal) predicate.User

TotalTokenValue applies equality check predicate on the "total_token_value" field. It's identical to TotalTokenValueEQ.

func TotalTokenValueEQ

func TotalTokenValueEQ(v decimal.Decimal) predicate.User

TotalTokenValueEQ applies the EQ predicate on the "total_token_value" field.

func TotalTokenValueGT

func TotalTokenValueGT(v decimal.Decimal) predicate.User

TotalTokenValueGT applies the GT predicate on the "total_token_value" field.

func TotalTokenValueGTE

func TotalTokenValueGTE(v decimal.Decimal) predicate.User

TotalTokenValueGTE applies the GTE predicate on the "total_token_value" field.

func TotalTokenValueIn

func TotalTokenValueIn(vs ...decimal.Decimal) predicate.User

TotalTokenValueIn applies the In predicate on the "total_token_value" field.

func TotalTokenValueLT

func TotalTokenValueLT(v decimal.Decimal) predicate.User

TotalTokenValueLT applies the LT predicate on the "total_token_value" field.

func TotalTokenValueLTE

func TotalTokenValueLTE(v decimal.Decimal) predicate.User

TotalTokenValueLTE applies the LTE predicate on the "total_token_value" field.

func TotalTokenValueNEQ

func TotalTokenValueNEQ(v decimal.Decimal) predicate.User

TotalTokenValueNEQ applies the NEQ predicate on the "total_token_value" field.

func TotalTokenValueNotIn

func TotalTokenValueNotIn(vs ...decimal.Decimal) predicate.User

TotalTokenValueNotIn applies the NotIn predicate on the "total_token_value" field.

func TrxAddrTypeEQ

func TrxAddrTypeEQ(v TrxAddrType) predicate.User

TrxAddrTypeEQ applies the EQ predicate on the "trx_addr_type" field.

func TrxAddrTypeIn

func TrxAddrTypeIn(vs ...TrxAddrType) predicate.User

TrxAddrTypeIn applies the In predicate on the "trx_addr_type" field.

func TrxAddrTypeIsNil

func TrxAddrTypeIsNil() predicate.User

TrxAddrTypeIsNil applies the IsNil predicate on the "trx_addr_type" field.

func TrxAddrTypeNEQ

func TrxAddrTypeNEQ(v TrxAddrType) predicate.User

TrxAddrTypeNEQ applies the NEQ predicate on the "trx_addr_type" field.

func TrxAddrTypeNotIn

func TrxAddrTypeNotIn(vs ...TrxAddrType) predicate.User

TrxAddrTypeNotIn applies the NotIn predicate on the "trx_addr_type" field.

func TrxAddrTypeNotNil

func TrxAddrTypeNotNil() predicate.User

TrxAddrTypeNotNil applies the NotNil predicate on the "trx_addr_type" field.

func TrxAddrTypeValidator

func TrxAddrTypeValidator(tat TrxAddrType) error

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

func TrxModeEQ

func TrxModeEQ(v TrxMode) predicate.User

TrxModeEQ applies the EQ predicate on the "trx_mode" field.

func TrxModeIn

func TrxModeIn(vs ...TrxMode) predicate.User

TrxModeIn applies the In predicate on the "trx_mode" field.

func TrxModeIsNil

func TrxModeIsNil() predicate.User

TrxModeIsNil applies the IsNil predicate on the "trx_mode" field.

func TrxModeNEQ

func TrxModeNEQ(v TrxMode) predicate.User

TrxModeNEQ applies the NEQ predicate on the "trx_mode" field.

func TrxModeNotIn

func TrxModeNotIn(vs ...TrxMode) predicate.User

TrxModeNotIn applies the NotIn predicate on the "trx_mode" field.

func TrxModeNotNil

func TrxModeNotNil() predicate.User

TrxModeNotNil applies the NotNil predicate on the "trx_mode" field.

func TrxModeValidator

func TrxModeValidator(tm TrxMode) error

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

func TrxPrivAddr

func TrxPrivAddr(v string) predicate.User

TrxPrivAddr applies equality check predicate on the "trx_priv_addr" field. It's identical to TrxPrivAddrEQ.

func TrxPrivAddrContains

func TrxPrivAddrContains(v string) predicate.User

TrxPrivAddrContains applies the Contains predicate on the "trx_priv_addr" field.

func TrxPrivAddrContainsFold

func TrxPrivAddrContainsFold(v string) predicate.User

TrxPrivAddrContainsFold applies the ContainsFold predicate on the "trx_priv_addr" field.

func TrxPrivAddrEQ

func TrxPrivAddrEQ(v string) predicate.User

TrxPrivAddrEQ applies the EQ predicate on the "trx_priv_addr" field.

func TrxPrivAddrEqualFold

func TrxPrivAddrEqualFold(v string) predicate.User

TrxPrivAddrEqualFold applies the EqualFold predicate on the "trx_priv_addr" field.

func TrxPrivAddrGT

func TrxPrivAddrGT(v string) predicate.User

TrxPrivAddrGT applies the GT predicate on the "trx_priv_addr" field.

func TrxPrivAddrGTE

func TrxPrivAddrGTE(v string) predicate.User

TrxPrivAddrGTE applies the GTE predicate on the "trx_priv_addr" field.

func TrxPrivAddrHasPrefix

func TrxPrivAddrHasPrefix(v string) predicate.User

TrxPrivAddrHasPrefix applies the HasPrefix predicate on the "trx_priv_addr" field.

func TrxPrivAddrHasSuffix

func TrxPrivAddrHasSuffix(v string) predicate.User

TrxPrivAddrHasSuffix applies the HasSuffix predicate on the "trx_priv_addr" field.

func TrxPrivAddrIn

func TrxPrivAddrIn(vs ...string) predicate.User

TrxPrivAddrIn applies the In predicate on the "trx_priv_addr" field.

func TrxPrivAddrIsNil

func TrxPrivAddrIsNil() predicate.User

TrxPrivAddrIsNil applies the IsNil predicate on the "trx_priv_addr" field.

func TrxPrivAddrLT

func TrxPrivAddrLT(v string) predicate.User

TrxPrivAddrLT applies the LT predicate on the "trx_priv_addr" field.

func TrxPrivAddrLTE

func TrxPrivAddrLTE(v string) predicate.User

TrxPrivAddrLTE applies the LTE predicate on the "trx_priv_addr" field.

func TrxPrivAddrNEQ

func TrxPrivAddrNEQ(v string) predicate.User

TrxPrivAddrNEQ applies the NEQ predicate on the "trx_priv_addr" field.

func TrxPrivAddrNotIn

func TrxPrivAddrNotIn(vs ...string) predicate.User

TrxPrivAddrNotIn applies the NotIn predicate on the "trx_priv_addr" field.

func TrxPrivAddrNotNil

func TrxPrivAddrNotNil() predicate.User

TrxPrivAddrNotNil applies the NotNil predicate on the "trx_priv_addr" field.

func TrxPrivPkey

func TrxPrivPkey(v string) predicate.User

TrxPrivPkey applies equality check predicate on the "trx_priv_pkey" field. It's identical to TrxPrivPkeyEQ.

func TrxPrivPkeyContains

func TrxPrivPkeyContains(v string) predicate.User

TrxPrivPkeyContains applies the Contains predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyContainsFold

func TrxPrivPkeyContainsFold(v string) predicate.User

TrxPrivPkeyContainsFold applies the ContainsFold predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyEQ

func TrxPrivPkeyEQ(v string) predicate.User

TrxPrivPkeyEQ applies the EQ predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyEqualFold

func TrxPrivPkeyEqualFold(v string) predicate.User

TrxPrivPkeyEqualFold applies the EqualFold predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyGT

func TrxPrivPkeyGT(v string) predicate.User

TrxPrivPkeyGT applies the GT predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyGTE

func TrxPrivPkeyGTE(v string) predicate.User

TrxPrivPkeyGTE applies the GTE predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyHasPrefix

func TrxPrivPkeyHasPrefix(v string) predicate.User

TrxPrivPkeyHasPrefix applies the HasPrefix predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyHasSuffix

func TrxPrivPkeyHasSuffix(v string) predicate.User

TrxPrivPkeyHasSuffix applies the HasSuffix predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyIn

func TrxPrivPkeyIn(vs ...string) predicate.User

TrxPrivPkeyIn applies the In predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyIsNil

func TrxPrivPkeyIsNil() predicate.User

TrxPrivPkeyIsNil applies the IsNil predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyLT

func TrxPrivPkeyLT(v string) predicate.User

TrxPrivPkeyLT applies the LT predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyLTE

func TrxPrivPkeyLTE(v string) predicate.User

TrxPrivPkeyLTE applies the LTE predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyNEQ

func TrxPrivPkeyNEQ(v string) predicate.User

TrxPrivPkeyNEQ applies the NEQ predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyNotIn

func TrxPrivPkeyNotIn(vs ...string) predicate.User

TrxPrivPkeyNotIn applies the NotIn predicate on the "trx_priv_pkey" field.

func TrxPrivPkeyNotNil

func TrxPrivPkeyNotNil() predicate.User

TrxPrivPkeyNotNil applies the NotNil predicate on the "trx_priv_pkey" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Words

func Words(v string) predicate.User

Words applies equality check predicate on the "words" field. It's identical to WordsEQ.

func WordsContains

func WordsContains(v string) predicate.User

WordsContains applies the Contains predicate on the "words" field.

func WordsContainsFold

func WordsContainsFold(v string) predicate.User

WordsContainsFold applies the ContainsFold predicate on the "words" field.

func WordsEQ

func WordsEQ(v string) predicate.User

WordsEQ applies the EQ predicate on the "words" field.

func WordsEqualFold

func WordsEqualFold(v string) predicate.User

WordsEqualFold applies the EqualFold predicate on the "words" field.

func WordsGT

func WordsGT(v string) predicate.User

WordsGT applies the GT predicate on the "words" field.

func WordsGTE

func WordsGTE(v string) predicate.User

WordsGTE applies the GTE predicate on the "words" field.

func WordsHasPrefix

func WordsHasPrefix(v string) predicate.User

WordsHasPrefix applies the HasPrefix predicate on the "words" field.

func WordsHasSuffix

func WordsHasSuffix(v string) predicate.User

WordsHasSuffix applies the HasSuffix predicate on the "words" field.

func WordsIn

func WordsIn(vs ...string) predicate.User

WordsIn applies the In predicate on the "words" field.

func WordsIsNil

func WordsIsNil() predicate.User

WordsIsNil applies the IsNil predicate on the "words" field.

func WordsLT

func WordsLT(v string) predicate.User

WordsLT applies the LT predicate on the "words" field.

func WordsLTE

func WordsLTE(v string) predicate.User

WordsLTE applies the LTE predicate on the "words" field.

func WordsNEQ

func WordsNEQ(v string) predicate.User

WordsNEQ applies the NEQ predicate on the "words" field.

func WordsNotIn

func WordsNotIn(vs ...string) predicate.User

WordsNotIn applies the NotIn predicate on the "words" field.

func WordsNotNil

func WordsNotNil() predicate.User

WordsNotNil applies the NotNil predicate on the "words" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAddress

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

ByAddress orders the results by the address field.

func ByAesType

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

ByAesType orders the results by the aes_type field.

func ByBalance

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

ByBalance orders the results by the balance field.

func ByBalanceUpdateTime

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

ByBalanceUpdateTime orders the results by the balance_update_time field.

func ByCreateDate

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

ByCreateDate orders the results by the create_date field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByID

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

ByID orders the results by the id field.

func ByIsTransfer

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

ByIsTransfer orders the results by the is_transfer field.

func ByNetwork

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

ByNetwork orders the results by the network field.

func ByPrivateKey

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

ByPrivateKey orders the results by the private_key field.

func ByTotalTokenValue

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

ByTotalTokenValue orders the results by the total_token_value field.

func ByTrxAddrType

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

ByTrxAddrType orders the results by the trx_addr_type field.

func ByTrxMode

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

ByTrxMode orders the results by the trx_mode field.

func ByTrxPrivAddr

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

ByTrxPrivAddr orders the results by the trx_priv_addr field.

func ByTrxPrivPkey

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

ByTrxPrivPkey orders the results by the trx_priv_pkey field.

func ByWords

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

ByWords orders the results by the words field.

type TrxAddrType

type TrxAddrType string

TrxAddrType defines the type for the "trx_addr_type" enum field.

const (
	TrxAddrTypeSingle TrxAddrType = "single"
	TrxAddrTypeMulti  TrxAddrType = "multi"
)

TrxAddrType values.

func (TrxAddrType) String

func (tat TrxAddrType) String() string

type TrxMode

type TrxMode string

TrxMode defines the type for the "trx_mode" enum field.

const (
	TrxModeTransfer TrxMode = "transfer"
	TrxModeLock     TrxMode = "lock"
)

TrxMode values.

func (TrxMode) String

func (tm TrxMode) String() string

Jump to

Keyboard shortcuts

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