add space aapi

This commit is contained in:
Asim Aslam
2021-11-26 12:34:31 +00:00
parent 4d73e04a43
commit fc8786baa4
13 changed files with 463 additions and 0 deletions

24
space/main.go Normal file
View File

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