Prayer Service (Islam) (#214)

* checkpoint

* add fixes

* fix timezone parsing

* update

* fix error
This commit is contained in:
Asim Aslam
2021-09-22 12:41:51 +01:00
committed by GitHub
parent 17c116f27a
commit 3e814fb85c
14 changed files with 779 additions and 0 deletions

24
prayer/main.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
"github.com/micro/services/prayer/handler"
pb "github.com/micro/services/prayer/proto"
)
func main() {
// Create service
srv := service.New(
service.Name("prayer"),
service.Version("latest"),
)
// Register handler
pb.RegisterPrayerHandler(srv.Server(), handler.New(srv.Client()))
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}