Generic datastore service with basic indexing and querying capabilities, ts client generation (#52)

This commit is contained in:
Janos Dobronszki
2021-02-03 13:20:07 +00:00
committed by GitHub
parent c19bf17fb5
commit a102d9e5f3
32 changed files with 5010 additions and 626 deletions

25
datastore/main.go Normal file
View File

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