mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-28 11:55:25 -05:00
unified dispatcher interface
This commit is contained in:
@@ -13,8 +13,6 @@ import (
|
||||
type InboundHandlerManager interface {
|
||||
GetHandler(ctx context.Context, tag string) (InboundHandler, error)
|
||||
AddHandler(ctx context.Context, config *InboundHandlerConfig) error
|
||||
Start() error
|
||||
Close()
|
||||
}
|
||||
|
||||
type InboundHandler interface {
|
||||
@@ -29,8 +27,6 @@ type OutboundHandlerManager interface {
|
||||
GetHandler(tag string) OutboundHandler
|
||||
GetDefaultHandler() OutboundHandler
|
||||
AddHandler(ctx context.Context, config *OutboundHandlerConfig) error
|
||||
Start() error
|
||||
Close()
|
||||
}
|
||||
|
||||
type OutboundHandler interface {
|
||||
|
||||
Reference in New Issue
Block a user