# Variables
ErrRejected is a special error that indicates the request is rejected.
# Structs
Config is the configuration for a Router.
CriterionGroupOR groups multiple criteria together with OR logic.
DestDomainExpectedIPCriterion restricts the destination domain and its resolved IP address.
DestGeoIPCountryCriterion restricts the destination IP address by GeoIP country.
DestResolvedGeoIPCountryCriterion restricts the destination IP address or the destination domain's resolved IP address by GeoIP country.
DestResolvedIPCriterion restricts the destination IP address or the destination domain's resolved IP address.
InvertedCriterion is like the inner criterion, but inverted.
NetworkTCPCriterion restricts the network to TCP.
NetworkUDPCriterion restricts the network to UDP.
RequestInfo contains information about a request that can be met by one or more criteria.
Route controls which client a request is routed to.
RouteConfig is a routing rule.
Router looks up the destination client for requests received by servers.
SourceGeoIPCountryCriterion restricts the source IP address by GeoIP country.
# Interfaces
Criterion is used by [Route] to determine whether a request matches the route.
# Type aliases
DestDomainCriterion restricts the destination domain.
DestIPCriterion restricts the destination IP address.
DestPortCriterion restricts the destination port.
DestPortRangeSetCriterion restricts the destination port to ports in a port range set.
DestPortSetCriterion restricts the destination port to ports in a port set.
SourceIPCriterion restricts the source IP address.
SourcePortCriterion restricts the source port.
SourcePortRangeSetCriterion restricts the source port to ports in a port range set.
SourcePortSetCriterion restricts the source port to ports in a port set.
SourceServerCriterion restricts the source server.
SourceUserCriterion restricts the source user.