master
go 14 lines 529 Bytes
Raw
1 package config
2
3 const DefaultSwarmCheckPercentThreshold = 5
4
5 // Version allows controlling things like custom user agent and update checks.
6 type Version struct {
7 // Optional suffix to the AgentVersion presented by `ipfs id` and exposed
8 // via libp2p identify protocol.
9 AgentSuffix *OptionalString `json:",omitempty"`
10
11 // Detect when to warn about new version when observed via libp2p identify
12 SwarmCheckEnabled Flag `json:",omitempty"`
13 SwarmCheckPercentThreshold *OptionalInteger `json:",omitempty"`
14 }