interface.go 307 B

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