interface.go 389 B

1234567891011121314151617
  1. package platform
  2. import (
  3. "io"
  4. "github.com/sagernet/sing-box/common/process"
  5. "github.com/sagernet/sing-box/option"
  6. "github.com/sagernet/sing-tun"
  7. "github.com/sagernet/sing/common/control"
  8. )
  9. type Interface interface {
  10. AutoDetectInterfaceControl() control.Func
  11. OpenTun(options tun.Options, platformOptions option.TunPlatformOptions) (tun.Tun, error)
  12. process.Searcher
  13. io.Writer
  14. }