Documentation ¶
Index ¶
- func ProvideService(cfg *setting.Cfg, db db.DB, dashboardService dashboards.DashboardService) dashver.Service
- type Service
- func (s *Service) DeleteExpired(ctx context.Context, cmd *dashver.DeleteExpiredVersionsCommand) error
- func (s *Service) Get(ctx context.Context, query *dashver.GetDashboardVersionQuery) (*dashver.DashboardVersionDTO, error)
- func (s *Service) List(ctx context.Context, query *dashver.ListDashboardVersionsQuery) ([]*dashver.DashboardVersionDTO, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, db db.DB, dashboardService dashboards.DashboardService) dashver.Service
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DeleteExpired ¶
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, query *dashver.GetDashboardVersionQuery) (*dashver.DashboardVersionDTO, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, query *dashver.ListDashboardVersionsQuery) ([]*dashver.DashboardVersionDTO, error)
List all dashboard versions for the given dashboard ID.
Click to show internal directories.
Click to hide internal directories.