mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 01:50:53 +01:00
16 lines
292 B
Go
16 lines
292 B
Go
/*
|
|
* RPC component of the server
|
|
*/
|
|
package ctrlserver
|
|
|
|
import (
|
|
"github.com/tim-beatham/wgmesh/pkg/rpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
func NewRpcServer(server rpc.MeshCtrlServerServer) *grpc.Server {
|
|
grpc := grpc.NewServer()
|
|
rpc.RegisterMeshCtrlServerServer(grpc, server)
|
|
return grpc
|
|
}
|