config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapEstuaryPeers

func BootstrapEstuaryPeers() []peer.AddrInfo

BootstrapEstuaryPeers Creating a list of multiaddresses that are used to bootstrap the network.

Types

type DeltaConfig

type DeltaConfig struct {
	Node struct {
		Name        string `env:"NODE_NAME" envDefault:"edge-ur"`
		Description string `env:"NODE_DESCRIPTION"`
		Type        string `env:"NODE_TYPE"`
		DbName      string `env:"DB_NAME" envDefault:"edge-ur.db"`
		Repo        string `env:"REPO"`
		Port        int    `env:"PORT" envDefault:"1414"`
	}

	Delta struct {
		ApiUrl            string `env:"DELTA_NODE_API" envDefault:"http://localhost:1414"`
		DealCheck         int    `env:"DEAL_CHECK" envDefault:"600"`
		ReplicationFactor int    `env:"REPLICATION_FACTOR" envDefault:"3"`
	}
}

func InitConfig

func InitConfig() DeltaConfig

Jump to

Keyboard shortcuts

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