Documentation ¶
Index ¶
- Constants
- Variables
- func AddPeer(args []string)
- func AddPeerRelation(args []string)
- func CreateNetwork(args []string)
- func DeleteNetwork(args []string)
- func Generate32BitKey(args []string)
- func GetMPipePort(args []string)
- func GetNetworkInfo(args []string)
- func GetPeerInfo(args []string)
- func GetPeerRelations(args []string)
- func HandleInfo(args []string)
- func HandlePeerCommand(args []string)
- func HandleReset(args []string)
- func HandleSetBandwidth(args []string)
- func HandleSetCorrupt(args []string)
- func HandleSetDelay(args []string)
- func HandleSetDuplicate(args []string)
- func HandleSetLoss(args []string)
- func HandleSetReorder(args []string)
- func HandleTCCommand(args []string)
- func HandleUtilCommand(args []string)
- func JoinNetwork(args []string)
- func Register(args []string)
- func RemovePeer(args []string)
- func RemovePeerRelation(args []string)
- func StartNetflow(args []string)
- func UseNetwork(args []string)
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 ¶
View Source
var COMMAND_MAP = map[string]func([]string){ PEER: HandlePeerCommand, UTIL: HandleUtilCommand, USE: UseNetwork, CREATE_NETWORK: CreateNetwork, DELETE_NETWORK: DeleteNetwork, JOIN_NETWORK: JoinNetwork, GET_NETWORK_INFO: GetNetworkInfo, TRAFFIC_CONTROL: HandleTCCommand, }
Mapping Commands to Functions
View Source
var ContractAddress = ""
View Source
var PEER_COMMAND_MAP = map[string]func([]string){ ADD_PEER: AddPeer, REMOVE_PEER: RemovePeer, ADD_PEER_RELATION: AddPeerRelation, REMOVE_PEER_RELATION: RemovePeerRelation, GET_PEER_RELATIONS: GetPeerRelations, GET_PEER_INFO: GetPeerInfo, }
View Source
var TC_COMMAND_MAP = map[string]func([]string){ INFO: HandleInfo, SET_BANDWIDTH: HandleSetBandwidth, SET_CORRUPT: HandleSetCorrupt, SET_DELAY: HandleSetDelay, SET_DUPLICATE: HandleSetDuplicate, SET_LOSS: HandleSetLoss, SET_REORDER: HandleSetReorder, RESET: HandleReset, }
View Source
var UTIL_COMMAND_MAP = map[string]func([]string){ GENERATE_32BITKEY: Generate32BitKey, REGISTER: Register, GET_MPIPE_PORT: GetMPipePort, START_NETFLOW: StartNetflow, }
Functions ¶
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 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.
Click to show internal directories.
Click to hide internal directories.