json

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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.
	InboundConfigValue  *ConnectionConfig `json:"inbound"`
	OutboundConfigValue *ConnectionConfig `json:"outbound"`
}

Config is the config for Point server.

func LoadConfig

func LoadConfig(file string) (*Config, error)

func (*Config) InboundConfig

func (config *Config) InboundConfig() core.ConnectionConfig

func (*Config) OutboundConfig

func (config *Config) OutboundConfig() core.ConnectionConfig

func (*Config) Port

func (config *Config) Port() uint16

type ConnectionConfig

type ConnectionConfig struct {
	ProtocolString string `json:"protocol"`
	File           string `json:"file"`
}

func (*ConnectionConfig) Content

func (config *ConnectionConfig) Content() []byte

func (*ConnectionConfig) Protocol

func (config *ConnectionConfig) Protocol() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL