2016-01-01 17:44:11 -05:00
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/v2ray/v2ray-core/app"
|
2016-01-02 17:32:18 -05:00
|
|
|
"github.com/v2ray/v2ray-core/proxy"
|
2016-01-01 17:44:11 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
type InboundHandlerManagerWithContext interface {
|
2016-01-25 11:18:24 -05:00
|
|
|
GetHandler(context app.Context, tag string) (proxy.InboundHandler, int)
|
2016-01-01 17:44:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type inboundHandlerManagerWithContext struct {
|
|
|
|
context app.Context
|
|
|
|
manager InboundHandlerManagerWithContext
|
|
|
|
}
|
|
|
|
|
2016-01-25 11:18:24 -05:00
|
|
|
func (this *inboundHandlerManagerWithContext) GetHandler(tag string) (proxy.InboundHandler, int) {
|
2016-01-01 17:44:11 -05:00
|
|
|
return this.manager.GetHandler(this.context, tag)
|
|
|
|
}
|