Documentation
¶
Index ¶
- type Builder
- func (b *Builder) AddAssertion(a *model.Assertion) error
- func (b *Builder) AddClosing(close *model.Close)
- func (b *Builder) AddOpening(o *model.Open)
- func (b *Builder) AddPrice(p *model.Price)
- func (b *Builder) AddTransaction(t *model.Transaction) error
- func (b *Builder) AddValue(a *model.Value) error
- func (b *Builder) Build() Ledger
- func (b *Builder) Process(results <-chan interface{}) error
- type Ledger
- type Options
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder maps dates to steps
func (*Builder) AddAssertion ¶
AddAssertion adds an assertion directive.
func (*Builder) AddClosing ¶
AddClosing adds a close directive.
func (*Builder) AddOpening ¶
AddOpening adds an open directive.
func (*Builder) AddTransaction ¶
func (b *Builder) AddTransaction(t *model.Transaction) error
AddTransaction adds a transaction directive.
type Ledger ¶
type Ledger []*Step
Ledger is a ledger.
Click to show internal directories.
Click to hide internal directories.