1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-17 15:06:47 +08:00
Files
kubo/config/ipns.go
2024-01-26 11:20:34 +01:00

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"`
}