| 1 | package config |
| 2 | |
| 3 | import ( |
| 4 | "math" |
| 5 | "time" |
| 6 | ) |
| 7 | |
| 8 | const ( |
| 9 | DefaultIpnsMaxCacheTTL = time.Duration(math.MaxInt64) |
| 10 | ) |
| 11 | |
| 12 | type Ipns struct { |
| 13 | RepublishPeriod string |
| 14 | RecordLifetime string |
| 15 | |
| 16 | ResolveCacheSize int |
| 17 | |
| 18 | // MaxCacheTTL is the maximum duration IPNS entries are valid in the cache. |
| 19 | MaxCacheTTL *OptionalDuration `json:",omitempty"` |
| 20 | |
| 21 | // Enable namesys pubsub (--enable-namesys-pubsub) |
| 22 | UsePubsub Flag `json:",omitempty"` |
| 23 | |
| 24 | // Simplified configuration for delegated IPNS publishers |
| 25 | DelegatedPublishers []string |
| 26 | } |