mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-02 18:14:01 +00:00
24 lines
299 B
Go
24 lines
299 B
Go
|
package constant
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
|
||
|
"github.com/gofrs/uuid"
|
||
|
)
|
||
|
|
||
|
type PlainContext interface {
|
||
|
ID() uuid.UUID
|
||
|
}
|
||
|
|
||
|
type ConnContext interface {
|
||
|
PlainContext
|
||
|
Metadata() *Metadata
|
||
|
Conn() net.Conn
|
||
|
}
|
||
|
|
||
|
type PacketConnContext interface {
|
||
|
PlainContext
|
||
|
Metadata() *Metadata
|
||
|
PacketConn() net.PacketConn
|
||
|
}
|