mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
6e9419ea80
The DashboardVersion struct is the database object; the DashboardVersionDTO is the object that should be sent to the API layer. In the future I'd like to move DashboardVersion to dashverimpl and un-export it, but there are a few places that Insert directly into that table, not all of which are test fixtures, so that should wait until we clean up at least the DashboardService's use of it.
12 lines
299 B
Go
12 lines
299 B
Go
package dashver
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
Get(context.Context, *GetDashboardVersionQuery) (*DashboardVersionDTO, error)
|
|
DeleteExpired(context.Context, *DeleteExpiredVersionsCommand) error
|
|
List(context.Context, *ListDashboardVersionsQuery) ([]*DashboardVersionDTO, error)
|
|
}
|