forked from covid19cz/erouska-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.go
49 lines (39 loc) · 1.51 KB
/
functions.go
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
package functions
import (
"context"
"github.com/covid19cz/erouska-backend/internal/pubsub"
"github.com/covid19cz/erouska-backend/internal/functions/changepushtoken"
"github.com/covid19cz/erouska-backend/internal/functions/coviddata"
"github.com/covid19cz/erouska-backend/internal/functions/isehridactive"
"github.com/covid19cz/erouska-backend/internal/functions/registerehrid"
"github.com/covid19cz/erouska-backend/internal/functions/registernotification"
"net/http"
)
// RegisterEhrid Registration handler.
func RegisterEhrid(w http.ResponseWriter, r *http.Request) {
registerehrid.RegisterEhrid(w, r)
}
// IsEhridActive IsEhridActive handler.
func IsEhridActive(w http.ResponseWriter, r *http.Request) {
isehridactive.IsEhridActive(w, r)
}
// ChangePushToken ChangePushToken handler.
func ChangePushToken(w http.ResponseWriter, r *http.Request) {
changepushtoken.ChangePushToken(w, r)
}
// RegisterNotification RegisterNotification handler.
func RegisterNotification(w http.ResponseWriter, r *http.Request) {
registernotification.RegisterNotification(w, r)
}
// RegisterNotificationAfterMath RegisterNotificationAfterMath handler.
func RegisterNotificationAfterMath(ctx context.Context, m pubsub.Message) error {
return registernotification.AfterMath(ctx, m)
}
// DownloadCovidDataTotal handler.
func DownloadCovidDataTotal(w http.ResponseWriter, r *http.Request) {
coviddata.DownloadCovidDataTotal(w, r)
}
// GetCovidData handler.
func GetCovidData(w http.ResponseWriter, r *http.Request) {
coviddata.GetCovidData(w, r)
}