mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Build / docker-build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
https://github.com/ipfs/kubo/pull/10883 https://github.com/ipshipyard/config.ipfs-mainnet.org/issues/3 --------- Co-authored-by: gammazero <gammazero@users.noreply.github.com>
27 lines
510 B
Go
27 lines
510 B
Go
package config
|
|
|
|
import (
|
|
"math"
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
DefaultIpnsMaxCacheTTL = time.Duration(math.MaxInt64)
|
|
)
|
|
|
|
type Ipns struct {
|
|
RepublishPeriod string
|
|
RecordLifetime string
|
|
|
|
ResolveCacheSize int
|
|
|
|
// MaxCacheTTL is the maximum duration IPNS entries are valid in the cache.
|
|
MaxCacheTTL *OptionalDuration `json:",omitempty"`
|
|
|
|
// Enable namesys pubsub (--enable-namesys-pubsub)
|
|
UsePubsub Flag `json:",omitempty"`
|
|
|
|
// Simplified configuration for delegated IPNS publishers
|
|
DelegatedPublishers []string
|
|
}
|