replace users with user (#113)

This commit is contained in:
Asim Aslam
2021-05-19 14:08:50 +01:00
committed by GitHub
parent bd8e354e1c
commit d4e19d5b61
10 changed files with 491 additions and 427 deletions

22
user/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
"github.com/micro/services/user/handler"
proto "github.com/micro/services/user/proto"
)
func main() {
service := service.New(
service.Name("user"),
)
service.Init()
proto.RegisterUserHandler(service.Server(), handler.NewUser())
if err := service.Run(); err != nil {
logger.Fatal(err)
}
}