wallet

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the wallet type in the database.
	Label = "wallet"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldUserId holds the string denoting the userid field in the database.
	FieldUserId = "user_id"
	// FieldAccount holds the string denoting the account field in the database.
	FieldAccount = "account"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldPrivateKey holds the string denoting the privatekey field in the database.
	FieldPrivateKey = "private_key"
	// Table holds the table name of the wallet in the database.
	Table = "wallets"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// AccountValidator is a validator for the "account" field. It is called by the builders before save.
	AccountValidator func(string) error
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// PrivateKeyValidator is a validator for the "privateKey" field. It is called by the builders before save.
	PrivateKeyValidator func(string) error
)

Columns holds all SQL columns for wallet fields.

Functions

func Account

func Account(v string) predicate.Wallet

Account applies equality check predicate on the "account" field. It's identical to AccountEQ.

func AccountContains

func AccountContains(v string) predicate.Wallet

AccountContains applies the Contains predicate on the "account" field.

func AccountContainsFold

func AccountContainsFold(v string) predicate.Wallet

AccountContainsFold applies the ContainsFold predicate on the "account" field.

func AccountEQ

func AccountEQ(v string) predicate.Wallet

AccountEQ applies the EQ predicate on the "account" field.

func AccountEqualFold

func AccountEqualFold(v string) predicate.Wallet

AccountEqualFold applies the EqualFold predicate on the "account" field.

func AccountGT

func AccountGT(v string) predicate.Wallet

AccountGT applies the GT predicate on the "account" field.

func AccountGTE

func AccountGTE(v string) predicate.Wallet

AccountGTE applies the GTE predicate on the "account" field.

func AccountHasPrefix

func AccountHasPrefix(v string) predicate.Wallet

AccountHasPrefix applies the HasPrefix predicate on the "account" field.

func AccountHasSuffix

func AccountHasSuffix(v string) predicate.Wallet

AccountHasSuffix applies the HasSuffix predicate on the "account" field.

func AccountIn

func AccountIn(vs ...string) predicate.Wallet

AccountIn applies the In predicate on the "account" field.

func AccountLT

func AccountLT(v string) predicate.Wallet

AccountLT applies the LT predicate on the "account" field.

func AccountLTE

func AccountLTE(v string) predicate.Wallet

AccountLTE applies the LTE predicate on the "account" field.

func AccountNEQ

func AccountNEQ(v string) predicate.Wallet

AccountNEQ applies the NEQ predicate on the "account" field.

func AccountNotIn

func AccountNotIn(vs ...string) predicate.Wallet

AccountNotIn applies the NotIn predicate on the "account" field.

func And

func And(predicates ...predicate.Wallet) predicate.Wallet

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Wallet

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Wallet

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Wallet

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Wallet

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

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Wallet

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Wallet

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Wallet

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Wallet

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

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Wallet

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

func ID

func ID(id int) predicate.Wallet

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Wallet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Wallet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Wallet

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Wallet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Wallet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Wallet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Wallet) predicate.Wallet

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.Wallet

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.Wallet

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.Wallet

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.Wallet

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.Wallet

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.Wallet

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.Wallet

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.Wallet

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.Wallet

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.Wallet

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.Wallet

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.Wallet

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.Wallet

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.Wallet

PasswordNotIn applies the NotIn predicate on the "password" field.

func PrivateKey

func PrivateKey(v string) predicate.Wallet

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

func PrivateKeyContains

func PrivateKeyContains(v string) predicate.Wallet

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

func PrivateKeyContainsFold

func PrivateKeyContainsFold(v string) predicate.Wallet

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

func PrivateKeyEQ

func PrivateKeyEQ(v string) predicate.Wallet

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

func PrivateKeyEqualFold

func PrivateKeyEqualFold(v string) predicate.Wallet

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

func PrivateKeyGT

func PrivateKeyGT(v string) predicate.Wallet

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

func PrivateKeyGTE

func PrivateKeyGTE(v string) predicate.Wallet

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

func PrivateKeyHasPrefix

func PrivateKeyHasPrefix(v string) predicate.Wallet

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

func PrivateKeyHasSuffix

func PrivateKeyHasSuffix(v string) predicate.Wallet

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

func PrivateKeyIn

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

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

func PrivateKeyLT

func PrivateKeyLT(v string) predicate.Wallet

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

func PrivateKeyLTE

func PrivateKeyLTE(v string) predicate.Wallet

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

func PrivateKeyNEQ

func PrivateKeyNEQ(v string) predicate.Wallet

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

func PrivateKeyNotIn

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

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

func UpdateTime

func UpdateTime(v time.Time) predicate.Wallet

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Wallet

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Wallet

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Wallet

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Wallet

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Wallet

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Wallet

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Wallet

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Wallet

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserId

func UserId(v int64) predicate.Wallet

UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.

func UserIdEQ

func UserIdEQ(v int64) predicate.Wallet

UserIdEQ applies the EQ predicate on the "userId" field.

func UserIdGT

func UserIdGT(v int64) predicate.Wallet

UserIdGT applies the GT predicate on the "userId" field.

func UserIdGTE

func UserIdGTE(v int64) predicate.Wallet

UserIdGTE applies the GTE predicate on the "userId" field.

func UserIdIn

func UserIdIn(vs ...int64) predicate.Wallet

UserIdIn applies the In predicate on the "userId" field.

func UserIdLT

func UserIdLT(v int64) predicate.Wallet

UserIdLT applies the LT predicate on the "userId" field.

func UserIdLTE

func UserIdLTE(v int64) predicate.Wallet

UserIdLTE applies the LTE predicate on the "userId" field.

func UserIdNEQ

func UserIdNEQ(v int64) predicate.Wallet

UserIdNEQ applies the NEQ predicate on the "userId" field.

func UserIdNotIn

func UserIdNotIn(vs ...int64) predicate.Wallet

UserIdNotIn applies the NotIn predicate on the "userId" 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 Wallet queries.

func ByAccount

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

ByAccount orders the results by the account 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 ByPassword

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

ByPassword orders the results by the password field.

func ByPrivateKey

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

ByPrivateKey orders the results by the privateKey field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

func ByUserId

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

ByUserId orders the results by the userId field.

Jump to

Keyboard shortcuts

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