Documentation ¶
Index ¶
- func SetRepository(rep Repository)
- type DashboardRepository
- func (dr *DashboardRepository) GetProvisionedDashboardData(name string) ([]*models.DashboardProvisioning, error)
- func (dr *DashboardRepository) SaveDashboard(dto *SaveDashboardDTO) (*models.Dashboard, error)
- func (dr *DashboardRepository) SaveProvisionedDashboard(dto *SaveDashboardDTO, provisioning *models.DashboardProvisioning) (*models.Dashboard, error)
- type Repository
- type SaveDashboardDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRepository ¶
func SetRepository(rep Repository)
Types ¶
type DashboardRepository ¶
type DashboardRepository struct{}
func (*DashboardRepository) GetProvisionedDashboardData ¶
func (dr *DashboardRepository) GetProvisionedDashboardData(name string) ([]*models.DashboardProvisioning, error)
func (*DashboardRepository) SaveDashboard ¶
func (dr *DashboardRepository) SaveDashboard(dto *SaveDashboardDTO) (*models.Dashboard, error)
func (*DashboardRepository) SaveProvisionedDashboard ¶
func (dr *DashboardRepository) SaveProvisionedDashboard(dto *SaveDashboardDTO, provisioning *models.DashboardProvisioning) (*models.Dashboard, error)
type Repository ¶
type Repository interface { SaveDashboard(*SaveDashboardDTO) (*models.Dashboard, error) SaveProvisionedDashboard(dto *SaveDashboardDTO, provisioning *models.DashboardProvisioning) (*models.Dashboard, error) GetProvisionedDashboardData(name string) ([]*models.DashboardProvisioning, error) }
func GetRepository ¶
func GetRepository() Repository
Click to show internal directories.
Click to hide internal directories.