dashboard

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

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

func (s Service) GetDashboards(ctx context.Context, namespaceID uint) ([]models.Dashboard, error)

GetDashboards returns the list of active dashboards.

func (Service) Update

func (s Service) Update(
	ctx context.Context, namespaceID uint, req *request.UpdateDashboardRequest,
) (*models.Dashboard, error)

Update updates existing dashboard object.

Jump to

Keyboard shortcuts

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