-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwire_gen.go
More file actions
33 lines (28 loc) · 927 Bytes
/
wire_gen.go
File metadata and controls
33 lines (28 loc) · 927 Bytes
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
// Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire
//+build !wireinject
package main
import (
"context"
"simplerick/internal"
"simplerick/internal/discord"
"simplerick/webhooks/github"
"simplerick/webhooks/sentry"
)
// Injectors from wire.go:
func setupApplication(ctx context.Context) (application, error) {
executor := discord.ProvideExecutor()
githubWebhookConfig, err := internal.ProvideGithubWebhookConfig()
if err != nil {
return application{}, err
}
webhookHandler := github.ProvideWebhookHandler(executor, githubWebhookConfig)
sentryWebhookConfig, err := internal.ProvideSentryWebhookConfig()
if err != nil {
return application{}, err
}
sentryWebhookHandler := sentry.ProvideWebhookHandler(executor, sentryWebhookConfig)
router := newRouter(webhookHandler, sentryWebhookHandler)
mainApplication := newApplication(router)
return mainApplication, nil
}