mirror of https://github.com/Dreamacro/clash.git
24 lines
302 B
Go
24 lines
302 B
Go
package constant
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/gofrs/uuid/v5"
|
|
)
|
|
|
|
type PlainContext interface {
|
|
ID() uuid.UUID
|
|
}
|
|
|
|
type ConnContext interface {
|
|
PlainContext
|
|
Metadata() *Metadata
|
|
Conn() net.Conn
|
|
}
|
|
|
|
type PacketConnContext interface {
|
|
PlainContext
|
|
Metadata() *Metadata
|
|
PacketConn() net.PacketConn
|
|
}
|