forked from extern/smegmesh
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
|
|
}
|