emdn

package
v0.0.0-...-99c6b1f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2014 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheRead

func CacheRead() <-chan Message

func Subscribe

func Subscribe() (<-chan Message, error)

func TestSubscribe

func TestSubscribe() (<-chan Message, error)

Types

type Message

type Message struct {
	Transaction Transaction `json:"message"`
	Type        string      `json:"type"`
}

type Transaction

type Transaction struct {
	BuyPrice  float64 `json:"buyPrice"`
	Category  string  `json:"categoryName"`
	Demand    int     `json:"demand"`
	Supply    int     `json:"stationStock"`
	Item      string  `json:"itemName"`
	SellPrice float64 `json:"sellPrice"`
	Station   string  `json:"stationName"`
}

Jump to

Keyboard shortcuts

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