mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
513 B
20 lines
513 B
package internal
|
|
|
|
import (
|
|
"github.com/v2ray/v2ray-core/app"
|
|
"github.com/v2ray/v2ray-core/proxy"
|
|
)
|
|
|
|
type InboundHandlerManagerWithContext interface {
|
|
GetHandler(context app.Context, tag string) (proxy.InboundConnectionHandler, int)
|
|
}
|
|
|
|
type inboundHandlerManagerWithContext struct {
|
|
context app.Context
|
|
manager InboundHandlerManagerWithContext
|
|
}
|
|
|
|
func (this *inboundHandlerManagerWithContext) GetHandler(tag string) (proxy.InboundConnectionHandler, int) {
|
|
return this.manager.GetHandler(this.context, tag)
|
|
}
|