Documentation
¶
Index ¶
- type Config
- func (config *Config) InboundConfig() config.ConnectionConfig
- func (this *Config) InboundDetours() []config.InboundDetourConfig
- func (config *Config) LogConfig() config.LogConfig
- func (config *Config) OutboundConfig() config.ConnectionConfig
- func (this *Config) OutboundDetours() []config.OutboundDetourConfig
- func (config *Config) Port() uint16
- func (this *Config) RouterConfig() routerconfig.RouterConfig
- type ConnectionConfig
- type InboundDetourConfig
- type LogConfig
- type OutboundDetourConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PortValue uint16 `json:"port"` // Port of this Point server.
LogConfigValue *LogConfig `json:"log"`
RouterConfigValue *routerconfigjson.RouterConfig `json:"routing"`
InboundConfigValue *ConnectionConfig `json:"inbound"`
OutboundConfigValue *ConnectionConfig `json:"outbound"`
InboundDetoursValue []*InboundDetourConfig `json:"inboundDetour"`
OutboundDetoursValue []*OutboundDetourConfig `json:"outboundDetour"`
}
Config is the config for Point server.
func LoadConfig ¶
func (*Config) InboundConfig ¶
func (config *Config) InboundConfig() config.ConnectionConfig
func (*Config) InboundDetours ¶
func (this *Config) InboundDetours() []config.InboundDetourConfig
func (*Config) OutboundConfig ¶
func (config *Config) OutboundConfig() config.ConnectionConfig
func (*Config) OutboundDetours ¶
func (this *Config) OutboundDetours() []config.OutboundDetourConfig
func (*Config) RouterConfig ¶
func (this *Config) RouterConfig() routerconfig.RouterConfig
type ConnectionConfig ¶
type ConnectionConfig struct {
ProtocolString string `json:"protocol"`
SettingsMessage json.RawMessage `json:"settings"`
Type proxyconfig.Type `json:"-"`
}
func (*ConnectionConfig) Protocol ¶
func (c *ConnectionConfig) Protocol() string
func (*ConnectionConfig) Settings ¶
func (c *ConnectionConfig) Settings() interface{}
type InboundDetourConfig ¶
type InboundDetourConfig struct {
ProtocolValue string `json:"protocol"`
PortRangeValue *v2netjson.PortRange `json:"port"`
SettingsValue json.RawMessage `json:"settings"`
}
func (*InboundDetourConfig) PortRange ¶
func (this *InboundDetourConfig) PortRange() v2net.PortRange
func (*InboundDetourConfig) Protocol ¶
func (this *InboundDetourConfig) Protocol() string
func (*InboundDetourConfig) Settings ¶
func (this *InboundDetourConfig) Settings() interface{}
type OutboundDetourConfig ¶
type OutboundDetourConfig struct {
ProtocolValue string `json:"protocol"`
TagValue string `json:"tag"`
SettingsValue json.RawMessage `json:"settings"`
}
func (*OutboundDetourConfig) Protocol ¶
func (this *OutboundDetourConfig) Protocol() string
func (*OutboundDetourConfig) Settings ¶
func (this *OutboundDetourConfig) Settings() interface{}
func (*OutboundDetourConfig) Tag ¶
func (this *OutboundDetourConfig) Tag() config.DetourTag
Click to show internal directories.
Click to hide internal directories.