Versions in this module Expand all Collapse all v0 v0.10.0 Sep 19, 2022 Changes in this version + type KlinePublisher interface + Publish func() chan struct{} + Subscribe func() kline.Subscriber + type Service struct + KlinePublisher KlinePublisher + Logger *zap.Logger + Strategy Strategy + TickerPublisher TickerPublisher + func (s *Service) Serv(ctx context.Context) error + type Strategy interface + OnKlineUpdate func([]*indicator.Kline) + OnNotice func() + OnTickerUpdate func(*indicator.Ticker) bool + type TickerPublisher interface + Publish func() error + Subscribe func() ticker.Subscriber