scenarios

package
v0.0.0-...-300ac43 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOptionsFromDefinition

func AddOptionsFromDefinition(odef metadata.ObjectDefinition) []p2plab.AddOption

func Benchmark

func Benchmark(ctx context.Context, lset p2plab.LabeledSet, benchmark metadata.ScenarioStage) error

func LabeledSetToNodes

func LabeledSetToNodes(lset p2plab.LabeledSet) ([]p2plab.Node, error)

func Parse

func Parse(filename string) (metadata.ScenarioDefinition, error)

func Seed

func Seed(ctx context.Context, lset p2plab.LabeledSet, seed metadata.ScenarioStage, seederAddrs []string) error

Types

type Execution

type Execution struct {
	Start  time.Time
	End    time.Time
	Report map[string]metadata.ReportNode
	Span   opentracing.Span
}

func Run

func Run(ctx context.Context, lset p2plab.LabeledSet, plan metadata.ScenarioPlan, seederAddrs []string) (*Execution, error)

func Session

func Session(ctx context.Context, lset p2plab.LabeledSet, benchmark metadata.ScenarioStage) (*Execution, error)

Jump to

Keyboard shortcuts

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