Chore: Remove bus from Alerting API (#44894)

* assign handlers to httpserver

* turn sqlstore mock in to a pointer

* add search service interface

* fix tests for alerting and other apis

* once again, make linter happy
This commit is contained in:
Serge Zaitsev
2022-02-04 13:41:15 +01:00
committed by GitHub
parent b38d3f339a
commit 058e3ffc21
9 changed files with 274 additions and 290 deletions

View File

@@ -59,6 +59,11 @@ type FindPersistedDashboardsQuery struct {
Result HitList
}
type Service interface {
SearchHandler(context.Context, *Query) error
SortOptions() []SortOption
}
type SearchService struct {
Bus bus.Bus
Cfg *setting.Cfg