Skip to content

Commit

Permalink
feature: added notification service
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedReach committed Jun 16, 2024
1 parent be6d7da commit f76ba05
Show file tree
Hide file tree
Showing 18 changed files with 1,053 additions and 71 deletions.
17 changes: 17 additions & 0 deletions Docker.notification
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.22-alpine3.19 as build

WORKDIR /usr/src/app

# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .

RUN go build -o /app /usr/src/app/cmd/notification_service/main.go


FROM alpine:3.19
COPY --from=build /app /app
EXPOSE 8080
CMD ["/app"]
Binary file modified README.md
Binary file not shown.
17 changes: 17 additions & 0 deletions cmd/notification_service/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package main

import (
"github.com/joho/godotenv"
"monify/lib/utils"
"monify/services/notification"
)

func main() {
//Load secrets
_ = godotenv.Load()
secrets, err := utils.LoadSecrets(utils.LoadEnv())
if err != nil {
panic(err)
}
notification.Start(notification.NewConfig(secrets))
}
342 changes: 283 additions & 59 deletions protobuf/gen/go/group.pb.go

Large diffs are not rendered by default.

206 changes: 206 additions & 0 deletions protobuf/gen/go/group.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 74 additions & 0 deletions protobuf/gen/go/group_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f76ba05

Please sign in to comment.