mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-12 17:41:08 +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
|
|
}
|