data

package
v0.1.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Package data holds the Store object that is used by our boutique instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	// Tracking is the current stocks we are tracking.
	Tracking map[string]Stock
}

State holds the data stored in boutique.Store.

type Stock

type Stock struct {
	// Symbol is the stock symbol: googl or msft.
	Symbol string
	// Current is the current price.
	Current float64
	// Buy is a point in which we want to buy this stock.
	Buy float64
	// Sell is a point when we want to sell this stock.
	Sell float64
}

Stock represents a stock we are tracking.

Jump to

Keyboard shortcuts

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