1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 14:35:37 -05:00

Require Type() for Feature

This commit is contained in:
Darien Raymond
2018-10-12 23:57:56 +02:00
parent dcd26ec61f
commit d730637239
30 changed files with 162 additions and 49 deletions

View File

@@ -23,9 +23,13 @@ type Manager interface {
features.Feature
// GetHandlers returns an InboundHandler for the given tag.
GetHandler(ctx context.Context, tag string) (Handler, error)
// AddHandler adds the given handler into this InboundHandlerManager.
// AddHandler adds the given handler into this Manager.
AddHandler(ctx context.Context, handler Handler) error
// RemoveHandler removes a handler from InboundHandlerManager.
// RemoveHandler removes a handler from Manager.
RemoveHandler(ctx context.Context, tag string) error
}
func ManagerType() interface{} {
return (*Manager)(nil)
}