Rename files service to file service (#115)

This commit is contained in:
Janos Dobronszki
2021-05-19 16:53:42 +01:00
committed by GitHub
parent 17cd2399c8
commit 90186703f9
15 changed files with 178 additions and 183 deletions

25
file/main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"github.com/micro/services/file/handler"
pb "github.com/micro/services/file/proto"
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
)
func main() {
// Create service
srv := service.New(
service.Name("file"),
service.Version("latest"),
)
// Register handler
pb.RegisterFileHandler(srv.Server(), handler.NewFile())
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}