add tunnel handler and connector

This commit is contained in:
ginuerzh
2023-10-15 15:39:25 +08:00
parent 033151a770
commit 497915f465
24 changed files with 1375 additions and 63 deletions

View File

@ -37,3 +37,12 @@ func (w *ingressWrapper) Get(ctx context.Context, host string) string {
}
return v.Get(ctx, host)
}
func (w *ingressWrapper) Set(ctx context.Context, host, endpoint string) {
v := w.r.get(w.name)
if v == nil {
return
}
v.Set(ctx, host, endpoint)
}