config

package
v0.0.0-...-f48534e Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChiaRootPath

func GetChiaRootPath() (string, error)

GetChiaRootPath returns the root path for the chia installation

Types

type ChiaConfig

type ChiaConfig struct {
	DaemonPort uint16          `yaml:"daemon_port"`
	DaemonSSL  SSLConfig       `yaml:"daemon_ssl"`
	Farmer     FarmerConfig    `yaml:"farmer"`
	FullNode   FullNodeConfig  `yaml:"full_node"`
	Harvester  HarvesterConfig `yaml:"harvester"`
	Wallet     WalletConfig    `yaml:"wallet"`
	Seeder     SeederConfig    `yaml:"seeder"`
}

ChiaConfig the chia config.yaml

func GetChiaConfig

func GetChiaConfig() (*ChiaConfig, error)

GetChiaConfig returns a struct containing the config.yaml values

type CrawlerConfig

type CrawlerConfig struct {
	PortConfig `yaml:",inline"`
	SSL        SSLConfig `yaml:"ssl"`
}

CrawlerConfig is the subsection of the seeder config specific to the crawler

type FarmerConfig

type FarmerConfig struct {
	PortConfig `yaml:",inline"`
	SSL        SSLConfig `yaml:"ssl"`
}

FarmerConfig farmer configuration section

type FullNodeConfig

type FullNodeConfig struct {
	PortConfig `yaml:",inline"`
	SSL        SSLConfig `yaml:"ssl"`
}

FullNodeConfig full node configuration section

type HarvesterConfig

type HarvesterConfig struct {
	PortConfig `yaml:",inline"`
	SSL        SSLConfig `yaml:"ssl"`
}

HarvesterConfig harvester configuration section

type PortConfig

type PortConfig struct {
	Port    uint16 `yaml:"port"`
	RPCPort uint16 `yaml:"rpc_port"`
}

PortConfig common port settings found in many sections of the config

type SSLConfig

type SSLConfig struct {
	PrivateCRT string `yaml:"private_crt"`
	PrivateKey string `yaml:"private_key"`
	PublicCRT  string `yaml:"public_crt"`
	PublicKey  string `yaml:"public_key"`
}

SSLConfig common ssl settings found in many sections of the config

func (*SSLConfig) LoadPrivateKeyPair

func (s *SSLConfig) LoadPrivateKeyPair() (*tls.Certificate, error)

LoadPrivateKeyPair loads the private key pair for the SSLConfig

func (*SSLConfig) LoadPublicKeyPair

func (s *SSLConfig) LoadPublicKeyPair() (*tls.Certificate, error)

LoadPublicKeyPair loads the public key pair for the SSLConfig

type SeederConfig

type SeederConfig struct {
	CrawlerConfig CrawlerConfig `yaml:"crawler"`
}

SeederConfig seeder configuration section

type WalletConfig

type WalletConfig struct {
	PortConfig `yaml:",inline"`
	SSL        SSLConfig `yaml:"ssl"`
}

WalletConfig wallet configuration section

Jump to

Keyboard shortcuts

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