Documentation ¶
Index ¶
- type Service
- func (s *Service) AddPriceFeed(ctx context.Context, market ports.Market, source, ticker string) (string, error)
- func (s *Service) Close()
- func (s *Service) GetPriceFeed(ctx context.Context, id string) (ports.PriceFeedInfo, error)
- func (s *Service) ListPriceFeeds(ctx context.Context) ([]ports.PriceFeedInfo, error)
- func (s *Service) ListSources(ctx context.Context) []string
- func (s *Service) RemovePriceFeed(ctx context.Context, id string) error
- func (s *Service) StartPriceFeed(ctx context.Context, id string) error
- func (s *Service) StopPriceFeed(ctx context.Context, id string) error
- func (s *Service) UpdatePriceFeed(ctx context.Context, id, source, ticker string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( feederSvc ports.PriceFeeder, repoManager ports.RepoManager, ) (*Service, error)
func (*Service) AddPriceFeed ¶
func (*Service) GetPriceFeed ¶
func (*Service) ListPriceFeeds ¶
func (*Service) RemovePriceFeed ¶
func (*Service) StartPriceFeed ¶
func (*Service) StopPriceFeed ¶
Click to show internal directories.
Click to hide internal directories.