v2ray-core/config/config.go

32 lines
496 B
Go
Raw Normal View History

2015-10-06 23:11:08 +02:00
package config
type Type string
const (
TypeInbound = Type("inbound")
TypeOutbound = Type("outbound")
)
2015-09-12 22:11:54 +02:00
2015-10-28 23:18:07 +01:00
type RouterConfig interface {
Strategy() string
Settings() interface{}
}
type ConnectionTag string
type ConnectionConfig interface {
2015-09-19 15:35:20 +02:00
Protocol() string
2015-10-06 23:11:08 +02:00
Settings(configType Type) interface{}
2015-09-12 22:11:54 +02:00
}
2015-10-09 17:43:27 +02:00
type LogConfig interface {
AccessLog() string
}
type PointConfig interface {
2015-09-19 15:35:20 +02:00
Port() uint16
2015-10-09 17:43:27 +02:00
LogConfig() LogConfig
2015-09-19 15:35:20 +02:00
InboundConfig() ConnectionConfig
OutboundConfig() ConnectionConfig
2015-09-12 22:11:54 +02:00
}