concatenator

package
v0.0.0-...-b4905c4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PriceStats

type PriceStats struct {
	Mean, Min, Max float64
	Volume         uint64
}

func NewPrice

func NewPrice(price float64, volume uint64) *PriceStats

func (*PriceStats) Add

func (this *PriceStats) Add(price float64, volume uint64)

func (*PriceStats) Merge

func (this *PriceStats) Merge(other *PriceStats)

func (*PriceStats) String

func (this *PriceStats) String() string

type Region

type Region struct {
	Prices   map[uint64]map[uint64]*PriceStats
	RegionID uint64
}

func NewRegion

func NewRegion() *Region

func (*Region) Add

func (this *Region) Add(price float64, volume, stationID, itemID uint64)

func (*Region) ConstructSQL

func (this *Region) ConstructSQL() (string, error)

func (*Region) Merge

func (this *Region) Merge(other *Region)

func (*Region) UnmarshalJSON

func (this *Region) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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