commandline

package
v0.0.0-...-613063f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2015 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCommandLineArgs

func SetCommandLineArgs(customArguments ...string)

SetCommandLineArgs method changes earlier set arguments (use only in debug).

Types

type CommandLine

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

CommandLine type represents options read from command line arguments.

func Read

func Read() *CommandLine

Read method returns valid options read from command line args.

func (*CommandLine) Host

func (c *CommandLine) Host() string

Host method returns a given host.

func (*CommandLine) Port

func (c *CommandLine) Port() uint64

Port method returns a given port.

func (*CommandLine) Timeout

func (c *CommandLine) Timeout() time.Duration

Timeout method returns a given server response timeout after EOF of input file.

Jump to

Keyboard shortcuts

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