Documentation ¶
Index ¶
- type Service
- func (s Service) Create(ctx context.Context, namespaceID uint, req *request.CreateDashboardRequest) (*models.Dashboard, error)
- func (s Service) Delete(ctx context.Context, namespaceID uint, req *request.DeleteDashboardRequest) error
- func (s Service) Get(ctx context.Context, namespaceID uint, req *request.GetDashboardRequest) (*models.Dashboard, error)
- func (s Service) GetDashboards(ctx context.Context, namespaceID uint) ([]models.Dashboard, error)
- func (s Service) Update(ctx context.Context, namespaceID uint, req *request.UpdateDashboardRequest) (*models.Dashboard, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides service layer to work with `dashboard` business logic.
func NewService ¶
func NewService( dashboardRepo repositories.DashboardRepositoryProvider, appRepo repositories.AppRepositoryProvider, ) *Service
NewService creates new Service instance.
func (Service) Create ¶
func (s Service) Create( ctx context.Context, namespaceID uint, req *request.CreateDashboardRequest, ) (*models.Dashboard, error)
Create creates new dashboard object.
func (Service) Delete ¶
func (s Service) Delete(ctx context.Context, namespaceID uint, req *request.DeleteDashboardRequest) error
Delete deletes existing object.
func (Service) Get ¶
func (s Service) Get( ctx context.Context, namespaceID uint, req *request.GetDashboardRequest, ) (*models.Dashboard, error)
Get returns dashboard object.
func (Service) GetDashboards ¶
GetDashboards returns the list of active dashboards.
Click to show internal directories.
Click to hide internal directories.