Seen Service (#39)

* Seen Service

* Fixes for model

* Update import

* More fixes

* Complete seen service
This commit is contained in:
ben-toogood
2021-02-04 11:05:32 +00:00
committed by GitHub
parent bc30a8ad81
commit b02d4dacb5
12 changed files with 1302 additions and 1 deletions

29
seen/main.go Normal file
View File

@@ -0,0 +1,29 @@
package main
import (
"github.com/micro/services/seen/domain"
"github.com/micro/services/seen/handler"
pb "github.com/micro/services/seen/proto"
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
"github.com/micro/micro/v3/service/store"
)
func main() {
// Create service
srv := service.New(
service.Name("seen"),
service.Version("latest"),
)
// Register handler
pb.RegisterSeenHandler(srv.Server(), &handler.Seen{
Domain: domain.New(store.DefaultStore),
})
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}