model

package
v0.0.0-...-a847336 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id"`
	ChatID    int64              `json:"chat_id,omitempty" bson:"chat_id"`
	CreatedAt time.Time          `json:"created_at" bson:"created_at"`
}

type AlertMessage

type AlertMessage struct {
	ID        string           `json:"_id" bson:"_id"`
	Threshold float64          `json:"threshold" bson:"threshold"`
	CreatedAt time.Time        `json:"created_at" bson:"created_at"`
	Cards     []CardPriceAlert `json:"cards" bson:"cards"`
}

type Card

type Card struct {
	ID          string   `json:"id" bson:"id"`
	Name        string   `json:"name" bson:"name"`
	ScryfallURL string   `json:"scryfall_uri" bson:"scryfall_uri"`
	TypeLine    string   `json:"type_line" bson:"type_line"`
	Colors      []string `json:"colors" bson:"colors"`
	Rarity      string   `json:"rarity" bson:"rarity"`
	Set         string   `json:"set" bson:"set"`
	SetName     string   `json:"set_name" bson:"set_name"`
	Prices      Price    `json:"prices" bson:"prices"`
}

type CardPriceAlert

type CardPriceAlert struct {
	ID                       string  `json:"id" bson:"id"`
	Name                     string  `json:"name" bson:"name"`
	LastPrice                float64 `json:"last_price" bson:"last_price"`
	NormalMovementMoney      float64 `json:"normal_movement_money" bson:"normal_movement_money"`
	NormalMovementPercentage float64 `json:"normal_movement_percentage" bson:"normal_movement_percentage"`
}

type Price

type Price struct {
	ID     string      `json:"id" bson:"id"`
	Prices []PriceItem `json:"price_history" bson:"price_history"`
}

type PriceItem

type PriceItem struct {
	PrintingType       string    `json:"printing_type" bson:"printingType"`
	MarketPrice        float64   `json:"market_price" bson:"marketPrice"`
	BuylistMarketPrice float64   `json:"buylist_market_price" bson:"buylistMarketPrice"`
	ListedMedianPrice  float64   `json:"listed_median_price" bson:"listedMedianPrice"`
	CreatedAt          time.Time `json:"created_at" bson:"created_at"`
}

Jump to

Keyboard shortcuts

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