mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
591 B
37 lines
591 B
package config
|
|
|
|
type RouterConfig interface {
|
|
Strategy() string
|
|
Settings() interface{}
|
|
}
|
|
|
|
type ConnectionTag string
|
|
|
|
type ConnectionConfig interface {
|
|
Protocol() string
|
|
Settings() interface{}
|
|
}
|
|
|
|
type LogConfig interface {
|
|
AccessLog() string
|
|
}
|
|
|
|
type PortRange interface {
|
|
From() uint16
|
|
To() uint16
|
|
}
|
|
|
|
type InboundDetourConfig interface {
|
|
Protocol() string
|
|
PortRange() PortRange
|
|
Settings() interface{}
|
|
}
|
|
|
|
type PointConfig interface {
|
|
Port() uint16
|
|
LogConfig() LogConfig
|
|
InboundConfig() ConnectionConfig
|
|
OutboundConfig() ConnectionConfig
|
|
InboundDetours() []InboundDetourConfig
|
|
}
|