config

package
v0.0.0-...-817dee4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPAPIConfig

type HTTPAPIConfig struct {
	Domain string `mapstructure:"domain"`
	Port   uint   `mapstructure:"port"`
}

type HTTPConfig

type HTTPConfig struct {
	API HTTPAPIConfig `mapstructure:"api"`
}

type NodeConfig

type NodeConfig struct {
	P2P     P2PConfig `mapstructure:"p2p"`
	KeyPair *ed25519.KeyPairEd25519
	DB      db.KVStore
	Logger  *zap.Logger
	HTTP    HTTPConfig `mapstructure:"http"`
}

type P2PConfig

type P2PConfig struct {
	Network                 string      `mapstructure:"network"`
	Peers                   PeersConfig `mapstructure:"peers"`
	MaxOutgoingPeerFailures uint        `mapstructure:"max_outgoing_peer_failures"`
	MaxConnectionAttempts   uint        `mapstructure:"max_connection_attempts"`
}

type PeersConfig

type PeersConfig struct {
	Initial   []string `mapstructure:"initial"`
	Blocklist []string `mapstructure:"blocklist"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL