mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
Add DispatchLink
This commit is contained in:
@ -17,6 +17,7 @@ type Dispatcher interface {
|
||||
|
||||
// Dispatch returns a Ray for transporting data for the given request.
|
||||
Dispatch(ctx context.Context, dest net.Destination) (*transport.Link, error)
|
||||
DispatchLink(ctx context.Context, dest net.Destination, link *transport.Link) error
|
||||
}
|
||||
|
||||
// DispatcherType returns the type of Dispatcher interface. Can be used to implement common.HasType.
|
||||
|
Reference in New Issue
Block a user