sing-box/experimental/libbox/platform/interface.go

17 lines
307 B
Go
Raw Normal View History

2022-10-25 12:55:00 +08:00
package platform
import (
"io"
"github.com/sagernet/sing-box/common/process"
"github.com/sagernet/sing-tun"
"github.com/sagernet/sing/common/control"
)
type Interface interface {
AutoDetectInterfaceControl() control.Func
OpenTun(options tun.Options) (tun.Tun, error)
process.Searcher
io.Writer
}