Documentation
¶
Index ¶
- func CreateOffer(mongoUri string, sugar *zap.SugaredLogger, alias string, address string, ...) error
- func CreateTx(mongoUri string, sugar *zap.SugaredLogger, amount int64, assetId string, ...) error
- func UpdateBalance(mongoUri string, mongoId primitive.ObjectID, asset string, ...) error
- type Address
- type Balance
- type BazaarSchema
- type BazaarsDb
- type Owner
- type TxSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOffer ¶
Types ¶
type BazaarSchema ¶
type BazaarSchema struct { ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` CreationTime int64 `json:"creation_time" bson:"creation_time"` Alias string `json:"alias" bson:"alias"` Address Address `json:"address" bson:"address"` Balance Balance `json:"balance" bson:"balance"` Owner Owner `json:"owner" bson:"owner"` Uuid string `json:"uuid" bson:"uuid"` }
func ReadBazaar ¶
func ReadBazaar(mongoUri string, paymentId string) (BazaarSchema, error)
func ReadOffers ¶
func ReadOffers(mongoUri string, sugar *zap.SugaredLogger) ([]BazaarSchema, error)
type BazaarsDb ¶
type BazaarsDb struct { ID string `bson:"_id,omitempty"` Alias string `bson:"alias,omitempty"` Address struct { IntegratedAddress string `bson:"integrated_address,omitempty"` PaymentId string `bson:"payment_id,omitempty"` Comment string `json:"comment"` } `json:"address_details"` Balance struct { Zano int64 `bson:"zano,omitempty"` Rack int64 `bson:"rack,omitempty"` } `json:"balance"` BazaarUuid string `json:"bazaar_uuid"` }
type TxSchema ¶
type TxSchema struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` CreationTime int64 `json:"creation_time" bson:"creation_time"` Amount int64 `json:"amount" bson:"amount"` AssetId string `json:"asset_id" bson:"asset_id"` PaymentId string `json:"payment_id" bson:"payment_id"` TxHash string `json:"tx_hash" bson:"tx_hash"` }
Click to show internal directories.
Click to hide internal directories.