service

package
v0.0.0-...-d5751c4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func (*Report) NewReport

func (r *Report) NewReport(ctx context.Context, report entity.Report) (string, error)

func (*Report) Report

func (r *Report) Report(ctx context.Context, id int) (*entity.Report, error)

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
}

type ReportService

type ReportService interface {
	Report(ctx context.Context, id int) (*entity.Report, error)
	NewReport(ctx context.Context, report entity.Report) (string, error)
}

Jump to

Keyboard shortcuts

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