Files service (#63)

* Files service

* Readme change

* Fix doc
This commit is contained in:
Janos Dobronszki
2021-02-04 16:31:04 +00:00
committed by GitHub
parent 460e7a103a
commit b850b61085
12 changed files with 794 additions and 0 deletions

25
files/main.go Normal file
View File

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