Documentation
¶
Index ¶
- Variables
- type Config
- func (c *Config) CLIDir() string
- func (c *Config) ConfigDir() string
- func (c *Config) ConfigPath() string
- func (c *Config) DataDir() string
- func (c *Config) GenesisPath() string
- func (c *Config) IPFSDir() string
- func (c *Config) LogFile() string
- func (c *Config) ManifestPath() string
- func (c *Config) StateDir() string
- type PortMapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPortsUnavailable = errors.New("unable to allocate ports") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RootDir string
Ports *PortMapper
ChainID string
PublishNetwork bool
}
Config represents the node configuration.
func (*Config) ConfigPath ¶
ConfigPath returns the path of the configuration file.
func (*Config) GenesisPath ¶
GenesisPath returns the genesis path for the project.
func (*Config) ManifestPath ¶
ManifestPath returns the manifest file.
type PortMapper ¶
PortMapper holds port configuration.
func AllocatePorts ¶
func AllocatePorts() (*PortMapper, error)
AllocatePorts will allocate a set of ports
Click to show internal directories.
Click to hide internal directories.