1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 06:16:53 -05:00
v2fly/config/config.go

32 lines
481 B
Go
Raw Normal View History

2015-10-06 17:11:08 -04:00
package config
type Type string
const (
TypeInbound = Type("inbound")
TypeOutbound = Type("outbound")
)
2015-09-12 16:11:54 -04:00
2015-10-28 18:18:07 -04:00
type RouterConfig interface {
Strategy() string
Settings() interface{}
}
type ConnectionTag string
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
}
type PointConfig interface {
2015-09-19 09:35:20 -04:00
Port() uint16
2015-10-09 11:43:27 -04:00
LogConfig() LogConfig
2015-09-19 09:35:20 -04:00
InboundConfig() ConnectionConfig
OutboundConfig() ConnectionConfig
2015-09-12 16:11:54 -04:00
}