config

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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