sing-box/adapter/inbound.go

27 lines
389 B
Go
Raw Normal View History

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