api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertUserToUUID

func ConvertUserToUUID(username string) string

Types

type Auctions

type Auctions struct {
	Success  bool `json:"success,omitempty"`
	Auctions []struct {
		UUID        string   `json:"uuid,omitempty"`
		Auctioneer  string   `json:"auctioneer,omitempty"`
		ProfileID   string   `json:"profile_id,omitempty"`
		Coop        []string `json:"coop,omitempty"`
		Start       int64    `json:"start,omitempty"`
		End         int64    `json:"end,omitempty"`
		ItemName    string   `json:"item_name,omitempty"`
		ItemLore    string   `json:"item_lore,omitempty"`
		Extra       string   `json:"extra,omitempty"`
		Category    string   `json:"category,omitempty"`
		Tier        string   `json:"tier,omitempty"`
		StartingBid int      `json:"starting_bid,omitempty"`
		ItemBytes   struct {
			Type int    `json:"type,omitempty"`
			Data string `json:"data,omitempty"`
		} `json:"item_bytes,omitempty"`
		Claimed          bool  `json:"claimed,omitempty"`
		ClaimedBidders   []any `json:"claimed_bidders,omitempty"`
		HighestBidAmount int   `json:"highest_bid_amount,omitempty"`
		Bids             []struct {
			AuctionID string `json:"auction_id,omitempty"`
			Bidder    string `json:"bidder,omitempty"`
			ProfileID string `json:"profile_id,omitempty"`
			Amount    int    `json:"amount,omitempty"`
			Timestamp int64  `json:"timestamp,omitempty"`
		} `json:"bids,omitempty"`
	} `json:"auctions,omitempty"`
}

func GetAuctions

func GetAuctions(username string) Auctions

auctions seem to be kinda broken or just nobot has any auctions up 💀

type Bazaar

type Bazaar struct {
	Success     bool               `json:"success"`
	LastUpdated int64              `json:"lastUpdated"`
	Products    map[string]Product `json:"products"`
}

func GetBazaar

func GetBazaar(product string) Bazaar

type Product

type Product struct {
	ProductID   string `json:"product_id"`
	SellSummary []struct {
		Amount       int     `json:"amount"`
		PricePerUnit float64 `json:"pricePerUnit"`
		Orders       int     `json:"orders"`
	} `json:"sell_summary"`
	BuySummary []struct {
		Amount       int     `json:"amount"`
		PricePerUnit float64 `json:"pricePerUnit"`
		Orders       int     `json:"orders"`
	} `json:"buy_summary"`
	QuickStatus struct {
		ProductID      string  `json:"productId"`
		SellPrice      float64 `json:"sellPrice"`
		SellVolume     int     `json:"sellVolume"`
		SellMovingWeek int     `json:"sellMovingWeek"`
		SellOrders     int     `json:"sellOrders"`
		BuyPrice       float64 `json:"buyPrice"`
		BuyVolume      int     `json:"buyVolume"`
		BuyMovingWeek  int     `json:"buyMovingWeek"`
		BuyOrders      int     `json:"buyOrders"`
	} `json:"quick_status"`
}

type UserResponse

type UserResponse struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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