mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
24 lines
588 B
Go
24 lines
588 B
Go
// Package proxyman defines applications for manageing inbound and outbound proxies.
|
|
package proxyman
|
|
|
|
import (
|
|
"v2ray.com/core/app"
|
|
"v2ray.com/core/proxy"
|
|
)
|
|
|
|
const (
|
|
APP_ID_INBOUND_MANAGER = app.ID(4)
|
|
APP_ID_OUTBOUND_MANAGER = app.ID(6)
|
|
)
|
|
|
|
type InboundHandlerManager interface {
|
|
GetHandler(tag string) (proxy.InboundHandler, int)
|
|
}
|
|
|
|
type OutboundHandlerManager interface {
|
|
GetHandler(tag string) proxy.OutboundHandler
|
|
GetDefaultHandler() proxy.OutboundHandler
|
|
SetDefaultHandler(handler proxy.OutboundHandler) error
|
|
SetHandler(tag string, handler proxy.OutboundHandler) error
|
|
}
|