mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-01 17:04:23 +03:00
Add selector outbound
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
type Router interface {
|
||||
Service
|
||||
|
||||
Outbounds() []Outbound
|
||||
Outbound(tag string) (Outbound, bool)
|
||||
DefaultOutbound(network string) Outbound
|
||||
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
package adapter
|
||||
|
||||
type Service interface {
|
||||
import "io"
|
||||
|
||||
type Starter interface {
|
||||
Start() error
|
||||
Close() error
|
||||
}
|
||||
|
||||
type Service interface {
|
||||
Starter
|
||||
io.Closer
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user