github.com/sagernet/sing-box@v1.9.0-rc.20/transport/wireguard/device.go (about) 1 package wireguard 2 3 import ( 4 N "github.com/sagernet/sing/common/network" 5 "github.com/sagernet/wireguard-go/tun" 6 ) 7 8 type Device interface { 9 tun.Device 10 N.Dialer 11 Start() error 12 // NewEndpoint() (stack.LinkEndpoint, error) 13 }