mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-12 20:31:17 +08:00
26 lines
354 B
Go
26 lines
354 B
Go
package constant
|
|
|
|
import (
|
|
"net"
|
|
|
|
N "github.com/metacubex/mihomo/common/net"
|
|
|
|
"github.com/gofrs/uuid/v5"
|
|
)
|
|
|
|
type PlainContext interface {
|
|
ID() uuid.UUID
|
|
}
|
|
|
|
type ConnContext interface {
|
|
PlainContext
|
|
Metadata() *Metadata
|
|
Conn() *N.BufferedConn
|
|
}
|
|
|
|
type PacketConnContext interface {
|
|
PlainContext
|
|
Metadata() *Metadata
|
|
PacketConn() net.PacketConn
|
|
}
|