1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-18 13:35:23 +00:00
This commit is contained in:
Darien Raymond 2018-10-13 12:09:58 +02:00
parent 4f7aa625e4
commit 2440d276f1
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ type Client interface {
LookupIP(host string) ([]net.IP, error)
}
// ClientType returns the type of Client interface. Can be used for implementing common.HasType.
func ClientType() interface{} {
return (*Client)(nil)
}

View File

@ -30,6 +30,7 @@ type Manager interface {
RemoveHandler(ctx context.Context, tag string) error
}
// ManagerType returns the type of Manager interface. Can be used for implementing common.HasType.
func ManagerType() interface{} {
return (*Manager)(nil)
}