mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-28 23:06:14 -04:00
20 lines
275 B
Go
20 lines
275 B
Go
package device
|
|
|
|
import (
|
|
"github.com/v2fly/v2ray-core/v5/common"
|
|
"gvisor.dev/gvisor/pkg/tcpip/stack"
|
|
)
|
|
|
|
type Device interface {
|
|
stack.LinkEndpoint
|
|
|
|
common.Closable
|
|
}
|
|
|
|
type Options struct {
|
|
Name string
|
|
MTU uint32
|
|
}
|
|
|
|
type DeviceConstructor func(Options) (Device, error)
|