Documentation ¶
Index ¶
- Variables
- type Report
- type ReportSchedule
- func (r *ReportSchedule) DeleteReportSchedule(ctx context.Context, id int) error
- func (r *ReportSchedule) NewReportSchedule(ctx context.Context, report entity.ReportSchedule) error
- func (r *ReportSchedule) NewReportScheduleJob(ctx context.Context, schedule entity.ReportSchedule) error
- func (r *ReportSchedule) ReportSchedule(ctx context.Context, id int) (*entity.ReportSchedule, error)
- func (r *ReportSchedule) ReportSchedules(ctx context.Context, query string) ([]entity.ReportSchedule, error)
- func (r *ReportSchedule) RunReportSchedule(ctx context.Context, id int) error
- func (r *ReportSchedule) UpdateReportSchedule(ctx context.Context, id int, report entity.ReportSchedule) error
- type ReportScheduleService
- type ReportService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewReportService, NewReportScheduleService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func NewReportService ¶
func NewReportService(s *setting.Setting, logger *log.Logger, grafanaHTTPClient grafana.DashboardAdapter, browserPool cdp.BrowserPoolManager) *Report
type ReportSchedule ¶
type ReportSchedule struct {
// contains filtered or unexported fields
}
func NewReportScheduleService ¶
func NewReportScheduleService(logger *log.Logger, report ReportService, store store.ReportScheduleStoreManager, schedule *cron.Schedulers, sender smtp.Sender) *ReportSchedule
func (*ReportSchedule) DeleteReportSchedule ¶
func (r *ReportSchedule) DeleteReportSchedule(ctx context.Context, id int) error
func (*ReportSchedule) NewReportSchedule ¶
func (r *ReportSchedule) NewReportSchedule(ctx context.Context, report entity.ReportSchedule) error
func (*ReportSchedule) NewReportScheduleJob ¶
func (r *ReportSchedule) NewReportScheduleJob(ctx context.Context, schedule entity.ReportSchedule) error
func (*ReportSchedule) ReportSchedule ¶
func (r *ReportSchedule) ReportSchedule(ctx context.Context, id int) (*entity.ReportSchedule, error)
func (*ReportSchedule) ReportSchedules ¶
func (r *ReportSchedule) ReportSchedules(ctx context.Context, query string) ([]entity.ReportSchedule, error)
func (*ReportSchedule) RunReportSchedule ¶
func (r *ReportSchedule) RunReportSchedule(ctx context.Context, id int) error
func (*ReportSchedule) UpdateReportSchedule ¶
func (r *ReportSchedule) UpdateReportSchedule(ctx context.Context, id int, report entity.ReportSchedule) error
type ReportScheduleService ¶
type ReportScheduleService interface { ReportSchedule(ctx context.Context, id int) (*entity.ReportSchedule, error) ReportSchedules(ctx context.Context, query string) ([]entity.ReportSchedule, error) NewReportSchedule(ctx context.Context, report entity.ReportSchedule) error NewReportScheduleJob(ctx context.Context, schedule entity.ReportSchedule) error UpdateReportSchedule(ctx context.Context, id int, report entity.ReportSchedule) error DeleteReportSchedule(ctx context.Context, id int) error }
Click to show internal directories.
Click to hide internal directories.