2016-01-31 16:01:28 +00:00
|
|
|
package proxyman
|
|
|
|
|
|
|
|
import (
|
2016-08-20 18:55:45 +00:00
|
|
|
"v2ray.com/core/app"
|
|
|
|
"v2ray.com/core/proxy"
|
2016-01-31 16:01:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2016-05-18 06:05:52 +00:00
|
|
|
APP_ID_INBOUND_MANAGER = app.ID(4)
|
|
|
|
APP_ID_OUTBOUND_MANAGER = app.ID(6)
|
2016-01-31 16:01:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type InboundHandlerManager interface {
|
|
|
|
GetHandler(tag string) (proxy.InboundHandler, int)
|
|
|
|
}
|
|
|
|
|
2016-05-18 06:05:52 +00:00
|
|
|
type OutboundHandlerManager interface {
|
|
|
|
GetHandler(tag string) proxy.OutboundHandler
|
|
|
|
GetDefaultHandler() proxy.OutboundHandler
|
2016-12-16 22:02:11 +00:00
|
|
|
SetDefaultHandler(handler proxy.OutboundHandler) error
|
|
|
|
SetHandler(tag string, handler proxy.OutboundHandler) error
|
2016-01-31 16:01:28 +00:00
|
|
|
}
|