github.com/igoogolx/clash@v1.19.8/constant/context.go (about) 1 package constant 2 3 import ( 4 "net" 5 6 "github.com/gofrs/uuid/v5" 7 ) 8 9 type PlainContext interface { 10 ID() uuid.UUID 11 } 12 13 type ConnContext interface { 14 PlainContext 15 Metadata() *Metadata 16 Conn() net.Conn 17 } 18 19 type PacketConnContext interface { 20 PlainContext 21 Metadata() *Metadata 22 PacketConn() net.PacketConn 23 }