Darien Raymond 7 年之前
父節點
當前提交
2440d276f1
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      features/dns/client.go
  2. 1 0
      features/inbound/inbound.go

+ 1 - 0
features/dns/client.go

@@ -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)
 }

+ 1 - 0
features/inbound/inbound.go

@@ -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)
 }