mongodb

package
v0.0.0-...-da1cbac Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
	Owner struct {
		Username string `bson:"username,omitempty"`
		UserId   string `bson:"user_id,omitempty"`
	} `json:"owner"`
	Uuid string `json:"uuid"`
}

func GetBazaar

func GetBazaar(mongoUri string, bazaarUuid string) (BazaarsDb, error)

func GetBazaars

func GetBazaars(mongoUri string) ([]BazaarsDb, error)

type Moderated

type Moderated struct {
	ID   string `bson:"_id,omitempty"`
	Uuid string `bson:"uuid,omitempty"`
}

func GetModerated

func GetModerated(mongoUri string) ([]Moderated, error)

Jump to

Keyboard shortcuts

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