nonodo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

This package contains the nonodo run function. This is separate from the main package to facilitate testing.

Index

Constants

View Source
const DefaultHttpPort = 8080
View Source
const HttpTimeout = 10 * time.Second

Variables

This section is empty.

Functions

func NewSupervisor

func NewSupervisor(opts NonodoOpts) supervisor.SupervisorWorker

Create the nonodo supervisor.

Types

type NonodoOpts

type NonodoOpts struct {
	AnvilPort    int
	AnvilVerbose bool

	HttpAddress string
	HttpPort    int

	InputBoxAddress    string
	InputBoxBlock      uint64
	ApplicationAddress string

	// If RpcUrl is set, connect to it instead of anvil.
	RpcUrl string

	// If set, start echo dapp.
	EnableEcho bool

	// If set, start application.
	ApplicationArgs []string
}

Options to nonodo.

func NewNonodoOpts

func NewNonodoOpts() NonodoOpts

Create the options struct with default values.

Jump to

Keyboard shortcuts

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