Documentation
¶
Index ¶
- type Config
- func (config *Config) InboundConfig() point.ConnectionConfig
- func (this *Config) InboundDetours() []point.InboundDetourConfig
- func (config *Config) LogConfig() point.LogConfig
- func (config *Config) OutboundConfig() point.ConnectionConfig
- func (this *Config) OutboundDetours() []point.OutboundDetourConfig
- func (config *Config) Port() v2net.Port
- func (this *Config) RouterConfig() router.Config
- 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 v2net.Port `json:"port"` // Port of this Point server.
LogConfigValue *LogConfig `json:"log"`
RouterConfigValue *routerjson.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() point.ConnectionConfig
func (*Config) InboundDetours ¶
func (this *Config) InboundDetours() []point.InboundDetourConfig
func (*Config) OutboundConfig ¶
func (config *Config) OutboundConfig() point.ConnectionConfig
func (*Config) OutboundDetours ¶
func (this *Config) OutboundDetours() []point.OutboundDetourConfig
func (*Config) 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"`
TagValue string `json:"tag"`
}
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{}
func (*InboundDetourConfig) Tag ¶
func (this *InboundDetourConfig) Tag() string
type LogConfig ¶
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() string
Click to show internal directories.
Click to hide internal directories.