juno

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownNetwork = errors.New("unknown network")

Functions

This section is empty.

Types

type Config

type Config struct {
	Verbosity    string        `mapstructure:"verbosity"`
	RpcPort      uint16        `mapstructure:"rpc-port"`
	Metrics      bool          `mapstructure:"metrics"`
	DatabasePath string        `mapstructure:"db-path"`
	Network      utils.Network `mapstructure:"network"`
	EthNode      string        `mapstructure:"eth-node"`
}

Config is the top-level juno configuration.

type NewStarkNetNodeFn

type NewStarkNetNodeFn func(cfg *Config) (StarkNetNode, error)

type Node

type Node struct {
	// contains filtered or unexported fields
}

func (*Node) Run

func (n *Node) Run() error

func (*Node) Shutdown

func (n *Node) Shutdown() error

type StarkNetNode

type StarkNetNode interface {
	Run() error
	Shutdown() error
}

notest

func New

func New(cfg *Config) (StarkNetNode, error)

Jump to

Keyboard shortcuts

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