smegmesh/pkg/rpc/rpc.go

10 lines
280 B
Go
Raw Normal View History

2023-09-29 16:00:20 +02:00
package rpc
import grpc "google.golang.org/grpc"
2023-10-01 20:01:35 +02:00
func NewRpcServer(rpcServer *grpc.Server, server MeshCtrlServerServer, auth AuthenticationServer) *grpc.Server {
RegisterMeshCtrlServerServer(rpcServer, server)
RegisterAuthenticationServer(rpcServer, auth)
return rpcServer
2023-09-29 16:00:20 +02:00
}