marconid

package
v0.0.0-...-a7e7b69 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reset

func Reset(interfaceName string) error

func SetNetem

func SetNetem(interfaceName string, delay uint32, loss float32, duplicate float32, reorderProb float32, corruptProb float32) error

func SetTbf

func SetTbf(interfaceName string, bandwidth uint64, latencyInMillis float64) error

func UpdateNetworkContractAddress

func UpdateNetworkContractAddress(address string) error

Let Marconid update network_contract_address in user_config.yml

Types

type Client

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

type NetemArgs

type NetemArgs struct {
	InterfaceName string
	Delay         uint32
	Loss          float32
	Duplicate     float32
	ReorderProb   float32
	CorruptProb   float32
}

type NetemReply

type NetemReply struct {
}

type ResetArgs

type ResetArgs struct {
	InterfaceName string
}

type ResetReply

type ResetReply struct {
}

type TbfArgs

type TbfArgs struct {
	InterfaceName   string
	Bandwidth       uint64
	LatencyInMillis float64
}

type TbfReply

type TbfReply struct {
}

type UpdateNetworkContractAddressArgs

type UpdateNetworkContractAddressArgs struct {
	NetworkContractAddress string
}

type UpdateNetworkContractAddressReply

type UpdateNetworkContractAddressReply struct {
}

Jump to

Keyboard shortcuts

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