e93156e71e
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
24 lines
409 B
Go
24 lines
409 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net"
|
|
|
|
"github.com/kubernetes/kubernetes/pkg/kubelet/api/v1alpha1/runtime"
|
|
"github.com/mrunalp/ocid/server"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
const (
|
|
port = ":49999"
|
|
)
|
|
|
|
func main() {
|
|
lis, err := net.Listen("tcp", port)
|
|
if err != nil {
|
|
log.Fatalf("failed to listen: %v", err)
|
|
}
|
|
s := grpc.NewServer()
|
|
runtime.RegisterRuntimeServiceServer(s, &server.Server{})
|
|
s.Serve(lis)
|
|
}
|