2017-01-03 14:21:59 +01:00
|
|
|
// Package proxyman defines applications for manageing inbound and outbound proxies.
|
2016-01-31 17:01:28 +01:00
|
|
|
package proxyman
|
|
|
|
|
|
|
|
import (
|
2016-08-20 20:55:45 +02:00
|
|
|
"v2ray.com/core/app"
|
|
|
|
"v2ray.com/core/proxy"
|
2016-01-31 17:01:28 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2016-05-17 23:05:52 -07:00
|
|
|
APP_ID_INBOUND_MANAGER = app.ID(4)
|
|
|
|
APP_ID_OUTBOUND_MANAGER = app.ID(6)
|
2016-01-31 17:01:28 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type InboundHandlerManager interface {
|
|
|
|
GetHandler(tag string) (proxy.InboundHandler, int)
|
|
|
|
}
|
|
|
|
|
2016-05-17 23:05:52 -07:00
|
|
|
type OutboundHandlerManager interface {
|
|
|
|
GetHandler(tag string) proxy.OutboundHandler
|
|
|
|
GetDefaultHandler() proxy.OutboundHandler
|
2016-12-16 23:02:11 +01:00
|
|
|
SetDefaultHandler(handler proxy.OutboundHandler) error
|
|
|
|
SetHandler(tag string, handler proxy.OutboundHandler) error
|
2016-01-31 17:01:28 +01:00
|
|
|
}
|