mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-06-26 09:25:23 +00:00
16 lines
311 B
Go
16 lines
311 B
Go
package routing
|
|
|
|
import (
|
|
"context"
|
|
|
|
"v2ray.com/core/features"
|
|
)
|
|
|
|
// Router is a feature to choose an outbound tag for the given request.
|
|
type Router interface {
|
|
features.Feature
|
|
|
|
// PickRoute returns a tag of an OutboundHandler based on the given context.
|
|
PickRoute(ctx context.Context) (string, error)
|
|
}
|