This commit is contained in:
Janos Dobronszki
2021-05-17 15:01:22 +01:00
committed by GitHub
parent a2dc68b385
commit 114fa6735b
8 changed files with 93 additions and 99 deletions

View File

@@ -11,12 +11,12 @@ import (
func main() {
// Create service
srv := service.New(
service.Name("url-shortener"),
service.Name("url"),
service.Version("latest"),
)
// Register handler
pb.RegisterUrlShortenerHandler(srv.Server(), handler.NewUrl())
pb.RegisterUrlHandler(srv.Server(), handler.NewUrl())
// Run service
if err := srv.Run(); err != nil {