refactor: remove net.URL and net.CIDR types, improved unmarshal handling

This commit is contained in:
yusing
2025-04-13 07:06:21 +08:00
parent 1eac48e899
commit fce96ff3be
37 changed files with 236 additions and 292 deletions

View File

@@ -2,15 +2,14 @@ package homepage
import (
"net/http"
net "github.com/yusing/go-proxy/internal/net/types"
"net/url"
)
type route interface {
TargetName() string
ProviderName() string
Reference() string
TargetURL() *net.URL
TargetURL() *url.URL
}
type httpRoute interface {