1
0
forked from extern/smegmesh
smegmesh/pkg/rpc/rpc.go
2023-09-29 15:00:20 +01:00

10 lines
198 B
Go

package rpc
import grpc "google.golang.org/grpc"
func NewRpcServer(server MeshCtrlServerServer) *grpc.Server {
grpc := grpc.NewServer()
RegisterMeshCtrlServerServer(grpc, server)
return grpc
}