We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333770b commit c988630Copy full SHA for c988630
router/router.go
@@ -19,6 +19,7 @@ func IDOption(id string) Option {
19
20
type Route struct {
21
// Net is the destination network, e.g. 192.168.0.0/16, 172.10.10.0/24.
22
+ // Deprecated by Dst.
23
Net *net.IPNet
24
// Dst is the destination.
25
Dst string
@@ -27,6 +28,6 @@ type Route struct {
27
28
}
29
30
type Router interface {
- // GetRoute queries a route by destination IP address.
31
- GetRoute(ctx context.Context, dst net.IP, opts ...Option) *Route
+ // GetRoute queries a route by destination.
32
+ GetRoute(ctx context.Context, dst string, opts ...Option) *Route
33
0 commit comments