Modify sp and services to use the protobuf module

This commit is contained in:
mitchell 2019-07-11 21:02:46 -04:00
parent 66ec035ee0
commit 4fc74b0994
23 changed files with 59 additions and 1025 deletions

View file

@ -15,8 +15,8 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
protobuf "github.com/mitchell/selfpass/protobuf/go"
"github.com/mitchell/selfpass/services/credentials/middleware"
"github.com/mitchell/selfpass/services/credentials/protobuf"
"github.com/mitchell/selfpass/services/credentials/repositories"
"github.com/mitchell/selfpass/services/credentials/service"
"github.com/mitchell/selfpass/services/credentials/transport"
@ -68,7 +68,7 @@ func main() {
gsrv := transport.NewGRPCServer(svc, logger)
srv := grpc.NewServer(grpc.Creds(creds))
protobuf.RegisterCredentialServiceServer(srv, gsrv)
protobuf.RegisterCredentialsServer(srv, gsrv)
addr := ":" + *port
lis, err := net.Listen("tcp", addr)