Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConfigType ¶ added in v0.9.1
func RegisterConfigType(protocol string, cType config.Type, creator ConfigObjectCreator)
Types ¶
type Config ¶
type Config struct { PortValue uint16 `json:"port"` // Port of this Point server. LogConfigValue *LogConfig `json:"log"` InboundConfigValue *ConnectionConfig `json:"inbound"` OutboundConfigValue *ConnectionConfig `json:"outbound"` }
Config is the config for Point server.
func LoadConfig ¶
func (*Config) InboundConfig ¶
func (config *Config) InboundConfig() config.ConnectionConfig
func (*Config) OutboundConfig ¶
func (config *Config) OutboundConfig() config.ConnectionConfig
type ConfigObjectCreator ¶ added in v0.9.1
type ConfigObjectCreator func() interface{}
type ConnectionConfig ¶
type ConnectionConfig struct { ProtocolString string `json:"protocol"` SettingsMessage json.RawMessage `json:"settings"` }
func (*ConnectionConfig) Protocol ¶
func (config *ConnectionConfig) Protocol() string
func (*ConnectionConfig) Settings ¶ added in v0.9.1
func (config *ConnectionConfig) Settings(configType config.Type) interface{}
Click to show internal directories.
Click to hide internal directories.