mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 06:57:40 +08:00

* Create spellcheck.yml * Create .codespell-ignore --------- Co-authored-by: Marcin Rataj <lidel@lidel.org> Co-authored-by: Guillaume Michel <guillaumemichel@users.noreply.github.com>
15 lines
529 B
Go
15 lines
529 B
Go
package config
|
|
|
|
const DefaultSwarmCheckPercentThreshold = 5
|
|
|
|
// Version allows controlling things like custom user agent and update checks.
|
|
type Version struct {
|
|
// Optional suffix to the AgentVersion presented by `ipfs id` and exposed
|
|
// via libp2p identify protocol.
|
|
AgentSuffix *OptionalString `json:",omitempty"`
|
|
|
|
// Detect when to warn about new version when observed via libp2p identify
|
|
SwarmCheckEnabled Flag `json:",omitempty"`
|
|
SwarmCheckPercentThreshold *OptionalInteger `json:",omitempty"`
|
|
}
|