mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-19 02:46:33 -05:00
23 lines
352 B
Go
23 lines
352 B
Go
package device
|
|
|
|
import (
|
|
"gvisor.dev/gvisor/pkg/tcpip/stack"
|
|
|
|
"github.com/v2fly/v2ray-core/v5/common"
|
|
)
|
|
|
|
//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)
|