1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-29 15:26:29 -04:00
v2fly/shell/point/config.go

47 lines
916 B
Go
Raw Normal View History

2015-12-06 10:41:41 -05:00
package point
2015-10-06 17:11:08 -04:00
2015-11-21 15:43:40 -05:00
import (
2015-12-06 05:00:10 -05:00
"github.com/v2ray/v2ray-core/app/dns"
2015-12-07 16:47:47 -05:00
"github.com/v2ray/v2ray-core/app/router"
2015-12-05 15:10:14 -05:00
"github.com/v2ray/v2ray-core/common/log"
2015-11-21 15:43:40 -05:00
v2net "github.com/v2ray/v2ray-core/common/net"
)
type ConnectionConfig interface {
2015-09-19 09:35:20 -04:00
Protocol() string
Settings() interface{}
2015-09-12 16:11:54 -04:00
}
2015-10-09 11:43:27 -04:00
type LogConfig interface {
AccessLog() string
2015-12-05 15:10:14 -05:00
ErrorLog() string
LogLevel() log.LogLevel
2015-10-09 11:43:27 -04:00
}
2015-12-06 05:00:10 -05:00
type DnsConfig interface {
Enabled() bool
Settings() dns.CacheConfig
}
2015-10-31 17:22:43 -04:00
type InboundDetourConfig interface {
2015-10-31 09:08:13 -04:00
Protocol() string
2015-11-21 15:43:40 -05:00
PortRange() v2net.PortRange
2015-10-31 17:22:43 -04:00
Settings() interface{}
2015-10-31 09:08:13 -04:00
}
2015-11-13 17:43:58 -05:00
type OutboundDetourConfig interface {
Protocol() string
Tag() string
2015-11-13 17:43:58 -05:00
Settings() interface{}
}
type PointConfig interface {
2015-12-02 15:44:01 -05:00
Port() v2net.Port
2015-10-09 11:43:27 -04:00
LogConfig() LogConfig
2015-12-07 16:47:47 -05:00
RouterConfig() router.RouterConfig
2015-09-19 09:35:20 -04:00
InboundConfig() ConnectionConfig
OutboundConfig() ConnectionConfig
2015-10-31 17:22:43 -04:00
InboundDetours() []InboundDetourConfig
2015-11-22 11:41:52 -05:00
OutboundDetours() []OutboundDetourConfig
2015-09-12 16:11:54 -04:00
}