add notes (#218)

* add notes

* fix build

* Commit from GitHub Actions (Publish APIs & Clients)

Co-authored-by: asim <asim@users.noreply.github.com>
This commit is contained in:
Asim Aslam
2021-09-29 14:02:28 +01:00
committed by GitHub
parent 29aea04423
commit 3c38d96881
29 changed files with 2223 additions and 1 deletions

27
notes/main.go Normal file
View File

@@ -0,0 +1,27 @@
package main
import (
"github.com/micro/micro/v3/service"
log "github.com/micro/micro/v3/service/logger"
"github.com/micro/services/notes/handler"
pb "github.com/micro/services/notes/proto"
)
func main() {
// New Service
srv := service.New(
service.Name("notes"),
service.Version("latest"),
)
// Initialise service
srv.Init()
// Register Handler
pb.RegisterNotesHandler(srv.Server(), handler.New(srv.Client()))
// Run service
if err := srv.Run(); err != nil {
log.Fatal(err)
}
}