config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 4

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

	Host    Host
	API     string
	Runtime string

	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