lib

package
v0.0.0-...-3aaceaf Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location int
const (
	Unknown            Location = -1
	ThetfordMarket     Location = 0
	LymhurstMarket     Location = 1000
	BridgewatchMarket  Location = 2000
	BlackMarket        Location = 3003
	MartlockMarket     Location = 3004
	CaerleonMarket     Location = 3005
	FortSterlingMarket Location = 4000

	SwampCrossMarket    Location = 4
	ForestCrossMarket   Location = 1006
	SteppeCrossMarket   Location = 2002
	HighlandCrossMarket Location = 3002
	MountainCrossMarket Location = 4006
)

func Locations

func Locations() []Location

func NewLocationFromId

func NewLocationFromId(locationID int) (Location, error)

func (Location) String

func (l Location) String() string

type ModelGoldprices

type ModelGoldprices struct {
	gorm.Model
	Timestamp time.Time `gorm:"index"`
	Price     int
}

func (ModelGoldprices) TableName

func (m ModelGoldprices) TableName() string

type ModelMarketOrder

type ModelMarketOrder struct {
	AlbionID         uint   `gorm:"not null;unique_index"`
	ItemID           string `gorm:"index:item_id,main"`
	QualityLevel     int8   `gorm:"size:1"`
	EnchantmentLevel int8   `gorm:"size:1"`
	Price            int
	InitialAmount    int
	Amount           int
	AuctionType      string `gorm:"index:main"`
	Expires          time.Time
	Location         Location `gorm:"not null;index:main"`
	ID               uint     `gorm:"primary_key"`
	CreatedAt        time.Time
	UpdatedAt        time.Time  `gorm:"index:item_id,main"`
	DeletedAt        *time.Time `gorm:"index:item_id,main"`
}

func NewModelMarketOrder

func NewModelMarketOrder() ModelMarketOrder

func (ModelMarketOrder) TableName

func (m ModelMarketOrder) TableName() string

type ModelMarketStats

type ModelMarketStats struct {
	ID        int      `gorm:"primary_key"`
	ItemID    string   `gorm:"index"`
	Location  Location `gorm:"index"`
	PriceMin  int
	PriceMax  int
	PriceAvg  float64
	Timestamp *time.Time `gorm:"index"`
}

func (ModelMarketStats) TableName

func (m ModelMarketStats) TableName() string

Jump to

Keyboard shortcuts

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