Documentation
¶
Overview ¶
Package config build on top of https://github.com/anyproto/any-sync-tools/tree/72b131eaf4d6dc299ecf87dad60648e68054b35a/anyconf
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts struct {
Coordinator accountservice.Config `yaml:"coordinator"`
Consensus accountservice.Config `yaml:"consensus"`
Tree accountservice.Config `yaml:"tree"`
File accountservice.Config `yaml:"file"`
}
type Config ¶
type Config struct {
BundleVersion string `yaml:"bundleVersion"`
BundleFormat int `yaml:"bundleFormat"`
ExternalAddr []string `yaml:"externalAddr"`
ConfigID string `yaml:"configId"`
NetworkID string `yaml:"networkId"`
StoragePath string `yaml:"storagePath"`
Accounts Accounts `yaml:"accounts"`
Nodes Nodes `yaml:"nodes"`
}
func CreateWrite ¶
func CreateWrite(cfg *CreateOptions) *Config
func (*Config) NodeConfigs ¶
func (bc *Config) NodeConfigs() *NodeConfigs
NodeConfigs generates configurations for all node types based on the base config
func (*Config) YamlClientConfig ¶
type CreateOptions ¶
type NodeConfigs ¶
type NodeConfigs struct {
Coordinator *coordinatorconfig.Config
Consensus *consensusconfig.Config
Filenode *filenodeconfig.Config
Sync *syncconfig.Config
// Used for our component and we can't add this into existing configs
FilenodeStorePath string
}
NodeConfigs holds configuration for all node types in the system
type NodeConsensus ¶
type NodeCoordinator ¶
type NodeShared ¶
type NodeShared struct {
}
type Nodes ¶
type Nodes struct {
Coordinator NodeCoordinator `yaml:"coordinator"`
Consensus NodeConsensus `yaml:"consensus"`
Tree Tree `yaml:"tree"`
File NodeFile `yaml:"file"`
}
Click to show internal directories.
Click to hide internal directories.