server

package
v0.0.0-...-5621b75 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 6 Imported by: 0

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)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(eIds []models.ExchangeID, db *gorm.DB) *Server

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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