nft coming soon

This commit is contained in:
Asim Aslam
2021-11-26 12:26:13 +00:00
parent 2209b9e081
commit 274575d92b
13 changed files with 464 additions and 0 deletions

24
nft/main.go Normal file
View File

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