Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetsRepository ¶
type AssetsRepository struct {
// contains filtered or unexported fields
}
AssetsRepository fetches and stores dca assets bought
func NewAssetsRepository ¶
func NewAssetsRepository(repo domain.Repository) *AssetsRepository
NewAssetsRepository returns an instance of dca AssetsRepository
type JobsRepository ¶
type JobsRepository struct {
// contains filtered or unexported fields
}
JobsRepository fetches and stores dca jobs
func NewJobsRepository ¶
func NewJobsRepository(repo domain.Repository) *JobsRepository
NewJobsRepository returns an instance of dca Jobsrepository
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service executes DCA operations
func NewService ¶
func NewService(broker domain.Broker, collector domain.Collector, dcaJobsRepo domain.DCAJobsRepository, dcaAssetsRepo domain.DCAAssetsRepository) *Service
NewService returns an instance of the DCAService
func (*Service) SetNotificationsService ¶
func (s *Service) SetNotificationsService(service domain.NotificationsService)
SetNotificationsService initializes service that will send notifications
Click to show internal directories.
Click to hide internal directories.