2022-06-30 13:27:56 +00:00
|
|
|
package adapter
|
|
|
|
|
2022-07-01 11:34:02 +00:00
|
|
|
import (
|
|
|
|
M "github.com/sagernet/sing/common/metadata"
|
|
|
|
)
|
|
|
|
|
2022-06-30 13:27:56 +00:00
|
|
|
type Inbound interface {
|
|
|
|
Service
|
|
|
|
Type() string
|
|
|
|
Tag() string
|
|
|
|
}
|
2022-07-01 11:34:02 +00:00
|
|
|
|
|
|
|
type InboundContext struct {
|
|
|
|
Inbound string
|
|
|
|
Network string
|
2022-07-02 06:07:50 +00:00
|
|
|
Source M.Socksaddr
|
|
|
|
Destination M.Socksaddr
|
2022-07-01 11:34:02 +00:00
|
|
|
Domain string
|
2022-07-02 06:07:50 +00:00
|
|
|
Protocol string
|
2022-07-02 14:55:10 +00:00
|
|
|
|
|
|
|
// cache
|
|
|
|
|
|
|
|
SourceGeoIPCode string
|
|
|
|
GeoIPCode string
|
|
|
|
ProcessPath string
|
2022-07-01 11:34:02 +00:00
|
|
|
}
|