Categorygithub.com/elastos/go-ipfs-config
modulepackage
0.2.15
Repository: https://github.com/elastos/go-ipfs-config.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
DataStorePath returns the default data store path given a configuration root (set an empty string to have the default configuration root).
DefaultBootstrapPeers returns the (parsed) set of default bootstrap peers.
DefaultDatastoreConfig is an internal function exported to aid in testing.
Filename returns the configuration file path given a configuration root directory.
No description provided by the author
HumanOutput gets a config value ready for printing.
No description provided by the author
Marshal configuration with JSON.
No description provided by the author
No description provided by the author
Path returns the path `extension` relative to the configuration root.
PathRoot returns the default configuration root directory.
No description provided by the author

# Constants

DefaultConfigFile is the filename of the configuration file.
DefaultConnMgrGracePeriod is the default value for the connection managers grace period.
DefaultConnMgrHighWater is the default value for the connection managers 'high water' mark.
DefaultConnMgrLowWater is the default value for the connection managers 'low water' mark.
DefaultDataStoreDirectory is the directory to store all the local IPFS data.
DefaultPathName is the default config dir name.
DefaultPathRoot is the path to the default config dir location.
EnvDir is the environment variable used to change the path root.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultBootstrapAddresses are the hardcoded bootstrap addresses for IPFS.
ErrInvalidPeerAddr signals an address is not a valid peer address.
Profiles is a map holding configuration transformers.

# Structs

Addresses stores the (string) multiaddr addresses for the node.
No description provided by the author
Config is used to load ipfs config files.
ConnMgr defines configuration options for the libp2p connection manager.
Datastore tracks the configuration of the datastore.
No description provided by the author
No description provided by the author
Gateway contains options for the HTTP gateway server.
Identity tracks the configuration of the local node's identity.
No description provided by the author
No description provided by the author
Mounts stores the (string) mount points.
Profile contains the profile transformer the description of the profile.
No description provided by the author
No description provided by the author
Routing defines configuration options for libp2p routing.
No description provided by the author

# Type aliases

BootstrapPeer is a peer used to bootstrap the network.
Strings is a helper type that (un)marshals a single string to/from a single JSON string and a slice of strings to/from a JSON array of strings.
Transformer is a function which takes configuration and applies some filter to it.