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

18 lines
389 B
Go
Raw Permalink Normal View History

2022-10-25 04:55:00 +00:00
package platform
import (
"io"
"github.com/sagernet/sing-box/common/process"
2023-02-28 11:02:27 +00:00
"github.com/sagernet/sing-box/option"
2022-10-25 04:55:00 +00:00
"github.com/sagernet/sing-tun"
"github.com/sagernet/sing/common/control"
)
type Interface interface {
AutoDetectInterfaceControl() control.Func
2023-02-28 11:02:27 +00:00
OpenTun(options tun.Options, platformOptions option.TunPlatformOptions) (tun.Tun, error)
2022-10-25 04:55:00 +00:00
process.Searcher
io.Writer
}