package
0.0.0-20191101101117-7375b2fc63f1
Repository: https://github.com/glvd/cluster.git
Documentation: pkg.go.dev

# Functions

DefaultJSONMarshal produces pretty JSON with 2-space indentation.
GetClusterConfig extracts cluster config from the configuration file and returns bytes of it.
NewIdentity returns a new random identity.
NewManager returns a correctly initialized Manager which is ready to accept component configurations.
ParseDurations takes a time.Duration src and saves it to the given dst.
SectionTypes returns the list of supported SectionTypes.
SetIfNotDefault sets dest to the value of src if src is not the default value of the type.

# Constants

These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
Identity defaults.
Identity defaults.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.
These are the component configuration types supported by the Manager.

# Variables

ConfigSaveInterval specifies how often to save the configuration file if it needs saving.

# Structs

DurationOpt provides a datatype to use with ParseDurations.
Identity represents identity of a cluster peer for communication, including the Consensus component.
Manager represents an ipfs-cluster configuration which bundles different ComponentConfigs object together.
Saver implements common functionality useful for ComponentConfigs.

# Interfaces

The ComponentConfig interface allows components to define configurations which can be managed as part of the ipfs-cluster configuration file by the Manager.

# Type aliases

Section is a section of which stores component-specific configurations.
SectionType specifies to which section a component configuration belongs.