feat: rename package

This commit is contained in:
mzz2017
2023-01-23 20:01:24 +08:00
parent 6fba4f8570
commit ea409f16d5
26 changed files with 71 additions and 65 deletions

View File

@ -7,12 +7,12 @@ package routing
import (
"fmt"
consts2 "foo/common/consts"
"github.com/v2rayA/dae/common/consts"
"net/netip"
"strings"
)
var FakeOutbound_AND = consts2.OutboundLogicalAnd.String()
var FakeOutbound_AND = consts.OutboundLogicalAnd.String()
type MatcherBuilder interface {
AddDomain(key string, values []string, outbound string)
@ -20,8 +20,8 @@ type MatcherBuilder interface {
AddPort(values [][2]int, outbound string)
AddSource(values []netip.Prefix, outbound string)
AddSourcePort(values [][2]int, outbound string)
AddNetwork(values consts2.NetworkType, outbound string)
AddIpVersion(values consts2.IpVersion, outbound string)
AddNetwork(values consts.NetworkType, outbound string)
AddIpVersion(values consts.IpVersion, outbound string)
AddMac(values [][6]byte, outbound string)
AddFinal(outbound string)
AddAnyBefore(key string, values []string, outbound string)
@ -92,8 +92,8 @@ func (d *DefaultMatcherBuilder) AddIp(values []netip.Prefix, outbound string)
func (d *DefaultMatcherBuilder) AddPort(values [][2]int, outbound string) {}
func (d *DefaultMatcherBuilder) AddSource(values []netip.Prefix, outbound string) {}
func (d *DefaultMatcherBuilder) AddSourcePort(values [][2]int, outbound string) {}
func (d *DefaultMatcherBuilder) AddNetwork(values consts2.NetworkType, outbound string) {}
func (d *DefaultMatcherBuilder) AddIpVersion(values consts2.IpVersion, outbound string) {}
func (d *DefaultMatcherBuilder) AddNetwork(values consts.NetworkType, outbound string) {}
func (d *DefaultMatcherBuilder) AddIpVersion(values consts.IpVersion, outbound string) {}
func (d *DefaultMatcherBuilder) AddMac(values [][6]byte, outbound string) {}
func (d *DefaultMatcherBuilder) AddFinal(outbound string) {}
func (d *DefaultMatcherBuilder) AddAnyBefore(key string, values []string, outbound string) {}