Documentation ¶
Overview ¶
we store config seperately from terminus to prevent circular dependency errors
Index ¶
- type Config
- func (c *Config) GetAccountPersistDir() string
- func (c *Config) GetAddress() string
- func (c *Config) GetBindHost() string
- func (c *Config) GetBindPort() int
- func (c *Config) GetCertChainFile() string
- func (c *Config) GetCertFile() string
- func (c *Config) GetExternalHost() string
- func (c *Config) GetExternalPort() int
- func (c *Config) GetHostName() string
- func (c *Config) GetKeyFile() string
- func (c *Config) GetRelayUrl() string
- func (c *Config) GetRpcAddress() string
- func (c *Config) GetRpcHostname() string
- func (c *Config) GetSelfSignedCert() bool
- func (c *Config) GetUseTls() bool
- func (c *Config) RpcServerTimeout() time.Duration
- func (c Config) Validate() error
- type ListenConfig
- type RpcConfig
- type Section
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // directory to store accounts in AccountPersistDir string ListenConfig ListenConfig RpcConfig RpcConfig }
config for terminus
func ParseConfig ¶
func ParseConfigFromFile ¶
func (*Config) GetAccountPersistDir ¶
func (*Config) GetAddress ¶
func (*Config) GetBindHost ¶
Default listening bind setting. 127.0.0.1 for localhost connections, 0.0.0.0 for allowing connections from other hosts
func (*Config) GetBindPort ¶
port to listen for websocket connections
func (*Config) GetExternalHost ¶
host for other devices to connect via the beacon
func (*Config) GetExternalPort ¶
host for other devices to connect via the beacon
func (*Config) GetRelayUrl ¶
func (*Config) GetRpcAddress ¶
func (*Config) GetRpcHostname ¶
func (*Config) RpcServerTimeout ¶
type ListenConfig ¶
type ListenConfig struct { // Default listening bind setting. 127.0.0.1 for localhost connections, 0.0.0.0 // for allowing connections from other hosts BindHost string // default port to listen for websocket connections port not specified. BindPort int // host for other devices to connect via the beacon ExternalHost string // port for other devices to connect via the beacon ExternalPort int // contains filtered or unexported fields }
ListenConfig specifies the configuration for terminus to listen on
type RpcConfig ¶
type Section ¶
type Section struct {
// contains filtered or unexported fields
}
func NewSection ¶
func NewSection(name string, cfg *goconfigparser.ConfigParser) Section
create a new section object that reads from a a section of the config
Click to show internal directories.
Click to hide internal directories.