Versions in this module Expand all Collapse all v0 v0.13.1 Jul 6, 2022 v0.13.0 Jun 9, 2022 Changes in this version + const DefaultConfigFile + const DefaultConnMgrGracePeriod + const DefaultConnMgrHighWater + const DefaultConnMgrLowWater + const DefaultDataStoreDirectory + const DefaultMigrationKeep + const DefaultPathName + const DefaultPathRoot + const EnvDir + const IdentityTag + const PrivKeySelector + const PrivKeyTag + const ResourceMgrPeerScopePrefix + const ResourceMgrProtocolScopePrefix + const ResourceMgrServiceScopePrefix + const ResourceMgrSystemScope + const ResourceMgrTransientScope + var DefaultBootstrapAddresses = []string + var DefaultMigrationDownloadSources = []string + var ErrInvalidPeerAddr = errors.New("invalid peer address") + var PinningConcealSelector = []string + var Profiles = map[string]Profile + var RemoteServicesPath = "Pinning.RemoteServices" + func BootstrapPeerStrings(bps []peer.AddrInfo) []string + func DataStorePath(configroot string) (string, error) + func DefaultBootstrapPeers() ([]peer.AddrInfo, error) + func Filename(configroot string, userConfigFile string) (string, error) + func HumanOutput(value interface{}) ([]byte, error) + func Marshal(value interface{}) ([]byte, error) + func ParseBootstrapPeers(addrs []string) ([]peer.AddrInfo, error) + func Path(configroot, extension string) (string, error) + func PathRoot() (string, error) + func ToMap(conf *Config) (map[string]interface{}, error) + type API struct + HTTPHeaders map[string][]string + type Addresses struct + API Strings + Announce []string + AppendAnnounce []string + Gateway Strings + NoAnnounce []string + Swarm []string + type AutoNATConfig struct + ServiceMode AutoNATServiceMode + Throttle *AutoNATThrottleConfig + type AutoNATServiceMode int + const AutoNATServiceDisabled + const AutoNATServiceEnabled + const AutoNATServiceUnset + func (m *AutoNATServiceMode) UnmarshalText(text []byte) error + func (m AutoNATServiceMode) MarshalText() ([]byte, error) + type AutoNATThrottleConfig struct + GlobalLimit int + Interval OptionalDuration + PeerLimit int + type Config struct + API API + Addresses Addresses + AutoNAT AutoNATConfig + Bootstrap []string + DNS DNS + Datastore Datastore + Discovery Discovery + Experimental Experiments + Gateway Gateway + Identity Identity + Internal Internal + Ipns Ipns + Migration Migration + Mounts Mounts + Peering Peering + Pinning Pinning + Plugins Plugins + Provider Provider + Pubsub PubsubConfig + Reprovider Reprovider + Routing Routing + Swarm SwarmConfig + func FromMap(v map[string]interface{}) (*Config, error) + func Init(out io.Writer, nBitsForKeypair int) (*Config, error) + func InitWithIdentity(identity Identity) (*Config, error) + func (c *Config) BootstrapPeers() ([]peer.AddrInfo, error) + func (c *Config) Clone() (*Config, error) + func (c *Config) SetBootstrapPeers(bps []peer.AddrInfo) + type ConnMgr struct + GracePeriod string + HighWater int + LowWater int + Type string + type DNS struct + MaxCacheTTL *OptionalDuration + Resolvers map[string]string + type Datastore struct + BloomFilterSize int + GCPeriod string + HashOnRead bool + NoSync bool + Params *json.RawMessage + Path string + Spec map[string]interface{} + StorageGCWatermark int64 + StorageMax string + Type string + func DefaultDatastoreConfig() Datastore + type Discovery struct + MDNS MDNS + type Experiments struct + AcceleratedDHTClient bool + FilestoreEnabled bool + GraphsyncEnabled bool + Libp2pStreamMounting bool + P2pHttpProxy bool + ShardingEnabled bool + StrategicProviding bool + UrlstoreEnabled bool + type Flag int8 + const Default + const False + const True + func (f *Flag) UnmarshalJSON(input []byte) error + func (f Flag) MarshalJSON() ([]byte, error) + func (f Flag) String() string + func (f Flag) WithDefault(defaultValue bool) bool + type Gateway struct + APICommands []string + FastDirIndexThreshold *OptionalInteger + HTTPHeaders map[string][]string + NoDNSLink bool + NoFetch bool + PathPrefixes []string + PublicGateways map[string]*GatewaySpec + RootRedirect string + Writable bool + type GatewaySpec struct + NoDNSLink bool + Paths []string + UseSubdomains bool + type Identity struct + PeerID string + PrivKey string + func CreateIdentity(out io.Writer, opts []options.KeyGenerateOption) (Identity, error) + func (i *Identity) DecodePrivateKey(passphrase string) (ic.PrivKey, error) + type Internal struct + Bitswap *InternalBitswap + Libp2pForceReachability *OptionalString + UnixFSShardingSizeThreshold *OptionalString + type InternalBitswap struct + EngineBlockstoreWorkerCount OptionalInteger + EngineTaskWorkerCount OptionalInteger + MaxOutstandingBytesPerPeer OptionalInteger + TaskWorkerCount OptionalInteger + type Ipns struct + RecordLifetime string + RepublishPeriod string + ResolveCacheSize int + UsePubsub Flag + type MDNS struct + Enabled bool + Interval int + type Migration struct + DownloadSources []string + Keep string + type Mounts struct + FuseAllowOther bool + IPFS string + IPNS string + type OptionalDuration struct + func (d *OptionalDuration) IsDefault() bool + func (d *OptionalDuration) UnmarshalJSON(input []byte) error + func (d *OptionalDuration) WithDefault(defaultValue time.Duration) time.Duration + func (d OptionalDuration) MarshalJSON() ([]byte, error) + func (d OptionalDuration) String() string + type OptionalInteger struct + func (p *OptionalInteger) IsDefault() bool + func (p *OptionalInteger) UnmarshalJSON(input []byte) error + func (p *OptionalInteger) WithDefault(defaultValue int64) (value int64) + func (p OptionalInteger) MarshalJSON() ([]byte, error) + func (p OptionalInteger) String() string + type OptionalString struct + func (p *OptionalString) IsDefault() bool + func (p *OptionalString) UnmarshalJSON(input []byte) error + func (p *OptionalString) WithDefault(defaultValue string) (value string) + func (p OptionalString) MarshalJSON() ([]byte, error) + func (p OptionalString) String() string + type Peering struct + Peers []peer.AddrInfo + type Pinning struct + RemoteServices map[string]RemotePinningService + type Plugin struct + Config interface{} + Disabled bool + type Plugins struct + Plugins map[string]Plugin + type Priority int64 + const DefaultPriority + const Disabled + func (p *Priority) UnmarshalJSON(input []byte) error + func (p Priority) MarshalJSON() ([]byte, error) + func (p Priority) String() string + func (p Priority) WithDefault(defaultPriority Priority) (priority int64, enabled bool) + type Profile struct + Description string + InitOnly bool + Transform Transformer + type Provider struct + Strategy string + type PubsubConfig struct + DisableSigning bool + Enabled Flag + Router string + type RelayClient struct + Enabled Flag + StaticRelays []string + type RelayService struct + BufferSize *OptionalInteger + ConnectionDataLimit *OptionalInteger + ConnectionDurationLimit *OptionalDuration + Enabled Flag + MaxCircuits *OptionalInteger + MaxReservations *OptionalInteger + MaxReservationsPerASN *OptionalInteger + MaxReservationsPerIP *OptionalInteger + MaxReservationsPerPeer *OptionalInteger + ReservationTTL *OptionalDuration + type RemotePinningService struct + API RemotePinningServiceAPI + Policies RemotePinningServicePolicies + type RemotePinningServiceAPI struct + Endpoint string + Key string + type RemotePinningServiceMFSPolicy struct + Enable bool + PinName string + RepinInterval string + type RemotePinningServicePolicies struct + MFS RemotePinningServiceMFSPolicy + type Reprovider struct + Interval string + Strategy string + type ResourceMgr struct + Enabled Flag + Limits *rcmgr.BasicLimiterConfig + type Routing struct + Type string + type Strings []string + func (o *Strings) UnmarshalJSON(data []byte) error + func (o Strings) MarshalJSON() ([]byte, error) + type SwarmConfig struct + AddrFilters []string + ConnMgr ConnMgr + DisableBandwidthMetrics bool + DisableNatPortMap bool + DisableRelay bool + EnableAutoRelay bool + EnableHolePunching Flag + EnableRelayHop bool + RelayClient RelayClient + RelayService RelayService + ResourceMgr ResourceMgr + Transports Transports + type Transformer func(c *Config) error + type Transports struct + Multiplexers struct{ ... } + Network struct{ ... } + Security struct{ ... } v0.13.0-rc1 May 4, 2022