This commit is contained in:
Asim Aslam
2021-11-02 13:47:29 +00:00
parent 5b430aa22d
commit 18e5e61f79
14 changed files with 767 additions and 0 deletions

24
mq/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/mq/handler"
pb "github.com/micro/services/mq/proto"
)
func main() {
// Create service
srv := service.New(
service.Name("mq"),
service.Version("latest"),
)
// Register handler
pb.RegisterMQHandler(srv.Server(), new(handler.MQ))
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}