mongodb

package
v0.0.0-...-ca11e16 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameTransactions

type GameTransactions struct {
	GameUuid string `bson:"game_uuid"`
	Amount   int64  `bson:"amount"`
}

type User

type User struct {
	ID               primitive.ObjectID `bson:"_id,omitempty"`
	CreationTime     int64              `bson:"creation_time"`
	Ip               string             `bson:"ip"`
	Uuid             string             `bson:"uuid"`
	Username         string             `bson:"username"`
	Password         string             `bson:"password"`
	ZanoAddress      string             `bson:"zano_address"`
	ZanoPaymentId    string             `bson:"zano_payment_id"`
	ExternalAddress  string             `bson:"external_address"`
	ZanoDeposits     []ZanoDeposits     `bson:"zano_deposits"`
	GameTransactions []GameTransactions `bson:"game_transactions"`
	Withdrawals      []Withdrawals      `bson:"withdrawals"`
	Balance          int64              `bson:"balance"`
}

func FetchUser

func FetchUser(mongoUri string, paymentId string) (User, error)

type Withdrawals

type Withdrawals struct {
	TxHash string `bson:"tx_hash"`
	Amount int64  `bson:"amount"`
}

type ZanoDeposits

type ZanoDeposits struct {
	TxHash string `bson:"tx_hash"`
	Amount int64  `bson:"amount"`
}

Jump to

Keyboard shortcuts

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