...

Package cmd

import "github.ibm.com/YACOVM/OrdererLoadGenerator/cmd"
Overview
Index

Overview ▾

type CommandRegistrar

CommandRegistrar registers commands

type CommandRegistrar interface {
    // Command adds a new top-level command to the CLI
    Command(name, help string, onCommand common.CLICommand) *kingpin.CmdClause
}

type LoadCmd

type LoadCmd struct {
    Server     *string
    Channel    *string
    SalvoSize  *int
    SalvoCount *int
}

func (*LoadCmd) Execute

func (lc *LoadCmd) Execute(conf common.Config) error

Execute executes the command

func (*LoadCmd) SetChannel

func (lc *LoadCmd) SetChannel(channel *string)

SetChannel sets the channel of the PeerCmd

func (*LoadCmd) SetSalvoCount

func (lc *LoadCmd) SetSalvoCount(salvoCount *int)

func (*LoadCmd) SetSalvoSize

func (lc *LoadCmd) SetSalvoSize(salvoSize *int)

func (*LoadCmd) SetServer

func (lc *LoadCmd) SetServer(server *string)

SetServer sets the server of the PeerCmd