mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-27 12:35:39 +08:00
26 lines
353 B
Go
26 lines
353 B
Go
package constant
|
|
|
|
import (
|
|
"net"
|
|
|
|
N "github.com/Dreamacro/clash/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
|
|
}
|