1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-09 09:20:45 +00:00
v2fly/app/tun/device/device.go
2023-10-23 01:13:01 +01:00

22 lines
351 B
Go

package device
import (
"github.com/v2fly/v2ray-core/v5/common"
"gvisor.dev/gvisor/pkg/tcpip/stack"
)
//go:generate go run github.com/v2fly/v2ray-core/v5/common/errors/errorgen
type Device interface {
stack.LinkEndpoint
common.Closable
}
type Options struct {
Name string
MTU uint32
}
type DeviceConstructor func(Options) (Device, error)