mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-14 13:27:21 +00:00
Modify sp and services to use the protobuf module
This commit is contained in:
parent
66ec035ee0
commit
4fc74b0994
23 changed files with 59 additions and 1025 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue