Add selector outbound

This commit is contained in:
世界
2022-07-21 21:03:41 +08:00
parent 2946ee1267
commit 544fca8257
14 changed files with 463 additions and 91 deletions

View File

@@ -16,6 +16,7 @@ import (
type Router interface {
Service
Outbounds() []Outbound
Outbound(tag string) (Outbound, bool)
DefaultOutbound(network string) Outbound

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
}