Notes Service (#12)

* Notes Service

* go mod tidy

* go mod tidy
This commit is contained in:
ben-toogood
2020-10-16 13:13:18 +01:00
committed by GitHub
parent 2083802ed5
commit 25993c656a
7 changed files with 929 additions and 61 deletions

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