Files
services/seen/main.go
ben-toogood b02d4dacb5 Seen Service (#39)
* Seen Service

* Fixes for model

* Update import

* More fixes

* Complete seen service
2021-02-04 11:05:32 +00:00

30 lines
585 B
Go

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)
}
}