scenario

package
v0.0.0-...-f6fdd69 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunScenario

func RunScenario(scenario Scenario)

Types

type Scenario

type Scenario struct {
	Name string
	Run  func(*ScenarioRunner) error
}

type ScenarioRunner

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

func NewScenarioRunner

func NewScenarioRunner() (*ScenarioRunner, error)

func (*ScenarioRunner) ConsulClient

func (s *ScenarioRunner) ConsulClient() (*capi.Client, error)

NewConsulClient creates a consul client from the given environment.

func (*ScenarioRunner) PeerControlAddrs

func (s *ScenarioRunner) PeerControlAddrs() ([]ma.Multiaddr, error)

func (*ScenarioRunner) Peers

func (s *ScenarioRunner) Peers() ([]*p2pclient.Client, error)

Jump to

Keyboard shortcuts

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