mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
* Change of sqlstore to use sqlx * Use sqlx in the playlist store * Refectory of the interface * update playlist service * go mod tidy * some refectory on interface * fix kyle
17 lines
623 B
Go
17 lines
623 B
Go
package playlistimpl
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/playlist"
|
|
)
|
|
|
|
type store interface {
|
|
Insert(context.Context, *playlist.CreatePlaylistCommand) (*playlist.Playlist, error)
|
|
Delete(context.Context, *playlist.DeletePlaylistCommand) error
|
|
Get(context.Context, *playlist.GetPlaylistByUidQuery) (*playlist.Playlist, error)
|
|
GetItems(context.Context, *playlist.GetPlaylistItemsByUidQuery) ([]playlist.PlaylistItem, error)
|
|
List(context.Context, *playlist.GetPlaylistsQuery) (playlist.Playlists, error)
|
|
Update(context.Context, *playlist.UpdatePlaylistCommand) (*playlist.PlaylistDTO, error)
|
|
}
|