grafana/pkg/services/star/star.go
ying-jeanne 2d4065600c
star sqlstore split (#45851)
* start for stars split

* some updates
2022-05-16 22:42:02 +08:00

13 lines
353 B
Go

package star
import (
"context"
)
type Service interface {
Add(ctx context.Context, cmd *StarDashboardCommand) error
Delete(ctx context.Context, cmd *UnstarDashboardCommand) error
IsStarredByUser(ctx context.Context, query *IsStarredByUserQuery) (bool, error)
GetByUser(ctx context.Context, cmd *GetUserStarsQuery) (*GetUserStarsResult, error)
}