File size: 1,692 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
package app
import (
"context"
"github.com/target/goalert/graphql2/graphqlapp"
)
func (app *App) initGraphQL(ctx context.Context) error {
app.graphql2 = &graphqlapp.App{
DB: app.db,
AuthBasicStore: app.AuthBasicStore,
UserStore: app.UserStore,
CMStore: app.ContactMethodStore,
NRStore: app.NotificationRuleStore,
NCStore: app.NCStore,
AlertStore: app.AlertStore,
AlertLogStore: app.AlertLogStore,
AlertMetricsStore: app.AlertMetricsStore,
ServiceStore: app.ServiceStore,
FavoriteStore: app.FavoriteStore,
PolicyStore: app.EscalationStore,
ScheduleStore: app.ScheduleStore,
CalSubStore: app.CalSubStore,
RotationStore: app.RotationStore,
OnCallStore: app.OnCallStore,
TimeZoneStore: app.TimeZoneStore,
IntKeyStore: app.IntegrationKeyStore,
LabelStore: app.LabelStore,
RuleStore: app.ScheduleRuleStore,
OverrideStore: app.OverrideStore,
ConfigStore: app.ConfigStore,
LimitStore: app.LimitStore,
NotificationStore: app.NotificationStore,
SlackStore: app.slackChan,
HeartbeatStore: app.HeartbeatStore,
NoticeStore: app.NoticeStore,
Twilio: app.twilioConfig,
AuthHandler: app.AuthHandler,
NotificationManager: app.notificationManager,
AuthLinkStore: app.AuthLinkStore,
SWO: app.cfg.SWO,
APIKeyStore: app.APIKeyStore,
DestReg: app.DestRegistry,
EventBus: app.EventBus,
EncryptionKeys: app.cfg.EncryptionKeys,
}
return nil
}
|