update ingress.proto

This commit is contained in:
ginuerzh
2023-10-15 15:37:45 +08:00
parent bc86458bf2
commit fc558b9a31
5 changed files with 212 additions and 17 deletions

View File

@ -21,10 +21,17 @@ type server struct {
func (s *server) Get(ctx context.Context, in *proto.GetRequest) (*proto.GetReply, error) {
reply := &proto.GetReply{}
log.Printf("ingress: %s", in.GetHost())
log.Printf("ingress get: %s", in.GetHost())
return reply, nil
}
func (s *server) Set(ctx context.Context, in *proto.SetRequest) (*proto.SetReply, error) {
reply := &proto.SetReply{}
log.Printf("ingress set: %s -> %s", in.GetHost(), in.GetEndpoint())
return reply, nil
}
func main() {
flag.Parse()
lis, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))