Documentation
¶
Index ¶
- Constants
- func AnalyzeSystem(system *System)
- type System
- func (system *System) CreateRandomCoins(trader *pkg.Trader, done <-chan bool, errors chan<- error)
- func (system *System) Init(numTraders, numRandomVoters, numBadVoters int, coinTypeCount uint) error
- func (system *System) ProcessCoin(coin pkg.CoinTable) error
- func (system *System) Save(filePath string) error
- func (system *System) Start(finish <-chan bool)
Constants ¶
View Source
const ( Debug = false RunFractals = true )
Variables ¶
This section is empty.
Functions ¶
func AnalyzeSystem ¶
func AnalyzeSystem(system *System)
Types ¶
type System ¶
type System struct { BadAcceptCount int BadRejectCount int FractalCounter int Locker sync.Mutex SubmitCount map[string]int AcceptedCount map[string]int Traders map[string]*pkg.Trader Coins map[string]pkg.CoinTable Fractals map[string]*pkg.FractalRing }
func (*System) CreateRandomCoins ¶
Click to show internal directories.
Click to hide internal directories.