handlers.go 513 B

12345678910111213141516171819
  1. package internal
  2. import (
  3. "github.com/v2ray/v2ray-core/app"
  4. "github.com/v2ray/v2ray-core/proxy"
  5. )
  6. type InboundHandlerManagerWithContext interface {
  7. GetHandler(context app.Context, tag string) (proxy.InboundConnectionHandler, int)
  8. }
  9. type inboundHandlerManagerWithContext struct {
  10. context app.Context
  11. manager InboundHandlerManagerWithContext
  12. }
  13. func (this *inboundHandlerManagerWithContext) GetHandler(tag string) (proxy.InboundConnectionHandler, int) {
  14. return this.manager.GetHandler(this.context, tag)
  15. }