1
0
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:
Darien Raymond
2017-02-03 22:50:01 +01:00
parent c4d0227977
commit 43fb425fd7
6 changed files with 43 additions and 52 deletions

View File

@@ -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 {