mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 15:06:47 +08:00
24 lines
420 B
Go
24 lines
420 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"`
|
|
}
|