mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 01:50:53 +01:00
10 lines
280 B
Go
10 lines
280 B
Go
package rpc
|
|
|
|
import grpc "google.golang.org/grpc"
|
|
|
|
func NewRpcServer(rpcServer *grpc.Server, server MeshCtrlServerServer, auth AuthenticationServer) *grpc.Server {
|
|
RegisterMeshCtrlServerServer(rpcServer, server)
|
|
RegisterAuthenticationServer(rpcServer, auth)
|
|
return rpcServer
|
|
}
|