marconi_net_commands

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: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PEER             = "peer"
	UTIL             = "util"
	USE              = "use"
	CREATE_NETWORK   = "create"
	DELETE_NETWORK   = "delete"
	JOIN_NETWORK     = "join"
	GET_NETWORK_INFO = "info"
	TRAFFIC_CONTROL  = "tc"
)

Commands

View Source
const (
	ADD_PEER             = "add"
	REMOVE_PEER          = "remove"
	ADD_PEER_RELATION    = "add_relation"
	REMOVE_PEER_RELATION = "remove_relation"
	GET_PEER_RELATIONS   = "relations"
	GET_PEER_INFO        = "info"
)

Commands

View Source
const (
	INFO          = "info"
	SET_BANDWIDTH = "set_bandwidth"
	SET_CORRUPT   = "set_corrupt"
	SET_DELAY     = "set_delay"
	SET_DUPLICATE = "set_duplicate"
	SET_LOSS      = "set_loss"
	SET_REORDER   = "set_reorder"
	RESET         = "reset"
)
View Source
const (
	GENERATE_32BITKEY = "generate_32bitkey"
	REGISTER          = "register"
	GET_MPIPE_PORT    = "get_mpipe_port"
	START_NETFLOW     = "start_netflow"

	DEFAULT_KEY_CHILD_PATH = "/etc/marconid/"
	NETFLOW_DIR            = "/opt/marconi/var/log/netflow"
)

Commands

View Source
const (
	NETWORK_INFO_FORMAT = "%-24s %48s\n"
)

Variables

Mapping Commands to Functions

View Source
var ContractAddress = ""

Functions

func AddPeer

func AddPeer(args []string)

func AddPeerRelation

func AddPeerRelation(args []string)

func CreateNetwork

func CreateNetwork(args []string)

func DeleteNetwork

func DeleteNetwork(args []string)

func Generate32BitKey

func Generate32BitKey(args []string)

func GetMPipePort

func GetMPipePort(args []string)

func GetNetworkInfo

func GetNetworkInfo(args []string)

func GetPeerInfo

func GetPeerInfo(args []string)

func GetPeerRelations

func GetPeerRelations(args []string)

func HandleInfo

func HandleInfo(args []string)

func HandlePeerCommand

func HandlePeerCommand(args []string)

func HandleReset

func HandleReset(args []string)

func HandleSetBandwidth

func HandleSetBandwidth(args []string)

func HandleSetCorrupt

func HandleSetCorrupt(args []string)

func HandleSetDelay

func HandleSetDelay(args []string)

func HandleSetDuplicate

func HandleSetDuplicate(args []string)

func HandleSetLoss

func HandleSetLoss(args []string)

func HandleSetReorder

func HandleSetReorder(args []string)

func HandleTCCommand

func HandleTCCommand(args []string)

func HandleUtilCommand

func HandleUtilCommand(args []string)

func JoinNetwork

func JoinNetwork(args []string)

func Register

func Register(args []string)

func RemovePeer

func RemovePeer(args []string)

func RemovePeerRelation

func RemovePeerRelation(args []string)

func StartNetflow

func StartNetflow(args []string)

func UseNetwork

func UseNetwork(args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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