Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartWriter ¶
type ChartWriter struct {
// contains filtered or unexported fields
}
func NewChartWriter ¶
func NewChartWriter(db *gorm.DB) *ChartWriter
func (*ChartWriter) Appender ¶
func (w *ChartWriter) Appender() chan<- models.Chart
func (*ChartWriter) Start ¶
func (w *ChartWriter) Start()
type DurationPairWatcher ¶
type DurationPairWatcher struct {
// contains filtered or unexported fields
}
func NewDurationPairWatcher ¶
func NewDurationPairWatcher(pair *api.CurrencyPair, eapi api.ExchangeApi, writer *ChartWriter, interval time.Duration, duration time.Duration, exchangeId models.ExchangeID) *DurationPairWatcher
func (*DurationPairWatcher) Start ¶
func (w *DurationPairWatcher) Start()
type PairWatcher ¶
type PairWatcher struct {
// contains filtered or unexported fields
}
func NewPairWatcher ¶
func NewPairWatcher(pair *api.CurrencyPair, eapi api.ExchangeApi, writer *ChartWriter) *PairWatcher
* interval: rate check interval * duration: rate update duration
func (*PairWatcher) Start ¶
func (w *PairWatcher) Start(exchangeId models.ExchangeID)
Click to show internal directories.
Click to hide internal directories.