@@ -13,15 +13,6 @@ import (
13
13
"strings"
14
14
"sync"
15
15
16
- "github.com/grafana/grafana/pkg/login/social"
17
- "github.com/grafana/grafana/pkg/services/cleanup"
18
- "github.com/grafana/grafana/pkg/services/ngalert"
19
- "github.com/grafana/grafana/pkg/services/notifications"
20
-
21
- "github.com/grafana/grafana/pkg/services/libraryelements"
22
- "github.com/grafana/grafana/pkg/services/librarypanels"
23
- "github.com/grafana/grafana/pkg/services/oauthtoken"
24
-
25
16
"github.com/grafana/grafana/pkg/api/routing"
26
17
httpstatic "github.com/grafana/grafana/pkg/api/static"
27
18
"github.com/grafana/grafana/pkg/bus"
@@ -32,6 +23,7 @@ import (
32
23
"github.com/grafana/grafana/pkg/infra/remotecache"
33
24
"github.com/grafana/grafana/pkg/infra/tracing"
34
25
"github.com/grafana/grafana/pkg/infra/usagestats"
26
+ "github.com/grafana/grafana/pkg/login/social"
35
27
"github.com/grafana/grafana/pkg/middleware"
36
28
"github.com/grafana/grafana/pkg/models"
37
29
"github.com/grafana/grafana/pkg/plugins"
@@ -40,13 +32,20 @@ import (
40
32
"github.com/grafana/grafana/pkg/plugins/plugincontext"
41
33
"github.com/grafana/grafana/pkg/services/accesscontrol"
42
34
"github.com/grafana/grafana/pkg/services/alerting"
35
+ "github.com/grafana/grafana/pkg/services/cleanup"
43
36
"github.com/grafana/grafana/pkg/services/contexthandler"
44
37
"github.com/grafana/grafana/pkg/services/datasourceproxy"
45
38
"github.com/grafana/grafana/pkg/services/datasources"
39
+ "github.com/grafana/grafana/pkg/services/encryption"
46
40
"github.com/grafana/grafana/pkg/services/hooks"
41
+ "github.com/grafana/grafana/pkg/services/libraryelements"
42
+ "github.com/grafana/grafana/pkg/services/librarypanels"
47
43
"github.com/grafana/grafana/pkg/services/live"
48
44
"github.com/grafana/grafana/pkg/services/live/pushhttp"
49
45
"github.com/grafana/grafana/pkg/services/login"
46
+ "github.com/grafana/grafana/pkg/services/ngalert"
47
+ "github.com/grafana/grafana/pkg/services/notifications"
48
+ "github.com/grafana/grafana/pkg/services/oauthtoken"
50
49
"github.com/grafana/grafana/pkg/services/provisioning"
51
50
"github.com/grafana/grafana/pkg/services/quota"
52
51
"github.com/grafana/grafana/pkg/services/rendering"
@@ -56,7 +55,6 @@ import (
56
55
"github.com/grafana/grafana/pkg/services/sqlstore"
57
56
"github.com/grafana/grafana/pkg/setting"
58
57
"github.com/grafana/grafana/pkg/tsdb"
59
-
60
58
"github.com/grafana/grafana/pkg/util/errutil"
61
59
"github.com/prometheus/client_golang/prometheus"
62
60
"github.com/prometheus/client_golang/prometheus/promhttp"
@@ -107,6 +105,7 @@ type HTTPServer struct {
107
105
SocialService social.Service
108
106
OAuthTokenService oauthtoken.OAuthTokenService
109
107
Listener net.Listener
108
+ EncryptionService encryption.Service
110
109
cleanUpService * cleanup.CleanUpService
111
110
tracingService * tracing.TracingService
112
111
internalMetricsSvc * metrics.InternalMetricsService
@@ -133,7 +132,8 @@ func ProvideHTTPServer(opts ServerOptions, cfg *setting.Cfg, routeRegister routi
133
132
libraryPanelService librarypanels.Service , libraryElementService libraryelements.Service ,
134
133
notificationService * notifications.NotificationService , tracingService * tracing.TracingService ,
135
134
internalMetricsSvc * metrics.InternalMetricsService , quotaService * quota.QuotaService ,
136
- socialService social.Service , oauthTokenService oauthtoken.OAuthTokenService ) (* HTTPServer , error ) {
135
+ socialService social.Service , oauthTokenService oauthtoken.OAuthTokenService ,
136
+ encryptionService encryption.Service ) (* HTTPServer , error ) {
137
137
macaron .Env = cfg .Env
138
138
m := macaron .New ()
139
139
@@ -180,6 +180,7 @@ func ProvideHTTPServer(opts ServerOptions, cfg *setting.Cfg, routeRegister routi
180
180
Listener : opts .Listener ,
181
181
SocialService : socialService ,
182
182
OAuthTokenService : oauthTokenService ,
183
+ EncryptionService : encryptionService ,
183
184
}
184
185
if hs .Listener != nil {
185
186
hs .log .Debug ("Using provided listener" )
0 commit comments