config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log                  Log
	PeerDatabasePath     string
	FunctionDatabasePath string
	Role                 string
	BootNodes            []string
	Concurrency          uint
	Topics               []string

	Host           Host
	API            string
	RuntimePath    string
	RuntimeCLI     string
	LoadAttributes bool

	CPUPercentage float64
	MemoryMaxKB   int64

	Workspace string
}

Config describes the Blockless configuration options.

func Load

func Load(file string) (*Config, error)

Load will load the config file from the given location.

type Host

type Host struct {
	Port       uint
	Address    string
	PrivateKey string

	DialBackPort          uint
	DialBackAddress       string
	DialBackWebsocketPort uint

	Websocket     bool
	WebsocketPort uint
}

Host describes the libp2p host that the node will use.

type Log

type Log struct {
	Level string
}

Log describes the logging configuration.

Jump to

Keyboard shortcuts

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