Add selector outbound

This commit is contained in:
世界
2022-07-21 21:13:16 +08:00
parent 385c42e638
commit 8004ff51f0
14 changed files with 463 additions and 91 deletions
+1
View File
@@ -16,6 +16,7 @@ import (
type Router interface {
Service
Outbounds() []Outbound
Outbound(tag string) (Outbound, bool)
DefaultOutbound(network string) Outbound
+8 -2
View File
@@ -1,6 +1,12 @@
package adapter
type Service interface {
import "io"
type Starter interface {
Start() error
Close() error
}
type Service interface {
Starter
io.Closer
}