config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetField

func SetField(filePath string, fieldPath string, fieldVal string, isJSON bool)

Types

type Config

type Config struct {
	Bootstrap       []peer.AddrInfo
	Swarm           []multiaddr.Multiaddr
	HostKey         crypto.PrivKey
	Api             multiaddr.Multiaddr
	Gateway         multiaddr.Multiaddr
	ProxyTarget     multiaddr.Multiaddr
	BloomFilterSize int
	Blockstore      DataStoreConfig
	Rootstore       DataStoreConfig
	AllowTarget     string
	ConnectionMgr   ConnectionManager
	CpuCount        int
}

func ParseOrGenerateConfig

func ParseOrGenerateConfig(filePath string) Config

type ConnectionManager

type ConnectionManager struct {
	Type        string
	LowWater    int
	HighWater   int
	GracePeriod string
}

type DataStoreConfig

type DataStoreConfig struct {
	Type       string
	MountPoint string
	Path       string
	Params     map[string]interface{}
}

Jump to

Keyboard shortcuts

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