1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-03 04:25:23 +00:00
v2fly/config/config.go

20 lines
320 B
Go
Raw Normal View History

2015-10-06 21:11:08 +00:00
package config
type Type string
const (
TypeInbound = Type("inbound")
TypeOutbound = Type("outbound")
)
2015-09-12 20:11:54 +00:00
type ConnectionConfig interface {
2015-09-19 13:35:20 +00:00
Protocol() string
2015-10-06 21:11:08 +00:00
Settings(configType Type) interface{}
2015-09-12 20:11:54 +00:00
}
type PointConfig interface {
2015-09-19 13:35:20 +00:00
Port() uint16
InboundConfig() ConnectionConfig
OutboundConfig() ConnectionConfig
2015-09-12 20:11:54 +00:00
}