1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-23 02:26:49 -05:00
v2fly/app/tun/device/device.go

23 lines
352 B
Go
Raw Normal View History

2023-05-28 00:18:58 -04:00
package device
import (
"gvisor.dev/gvisor/pkg/tcpip/stack"
2023-10-22 20:44:36 -04:00
"github.com/v2fly/v2ray-core/v5/common"
2023-05-28 00:18:58 -04:00
)
//go:generate go run github.com/v2fly/v2ray-core/v5/common/errors/errorgen
2023-05-28 00:18:58 -04:00
type Device interface {
stack.LinkEndpoint
common.Closable
}
type Options struct {
Name string
MTU uint32
}
2023-05-28 03:20:06 -04:00
type DeviceConstructor func(Options) (Device, error)