Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAPIAddr = "127.0.0.1:6025"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { PrivateKey []byte `yaml:"private_key,flow"` PersistDir string `yaml:"persist_dir"` EphemeralDir string `yaml:"ephemeral_dir"` QUICAddr string `yaml:"quic_addr"` APIAddr string `yaml:"api_addr"` EphemeralCap uint64 `yaml:"ephemeral_capacity"` PersistentCap uint64 `yaml:"persistent_capacity"` Peers []peers.PeerSpec `yaml:"peers"` }
func DefaultConfig ¶
func DefaultConfig() *Config
type ConfigFile ¶
type ConfigFile struct {
// contains filtered or unexported fields
}
func NewConfigFile ¶
func NewConfigFile(p string) ConfigFile
func (ConfigFile) Load ¶
func (cf ConfigFile) Load() (Config, error)
func (ConfigFile) Save ¶
func (cf ConfigFile) Save(c Config) error
Click to show internal directories.
Click to hide internal directories.