Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Args ¶
type Args struct { Script string Spec string Host string Ops []string Use ArgsUse Expect ArgsExpect LogLevel int64 LogStyle string }
Args is a program arguments.
type ArgsExpect ¶
ArgsExpect is what goes after the "expect" command line argument.
type ArgsUse ¶
type ArgsUse struct { CT string Security string PathParameters ParameterMapPath Query ParameterMultiMapQuery Headers ParameterMultiMapHeaders Body ParameterMapBody }
ArgsUse is what goes after the "use" command line argument.
type ParameterMap ¶
ParameterMap is a generic map of operation test parameters. & query parameters. It is must be subclassed/aliased/whatever-this-is-called-in-go in order to override the Iterate() and provide a source name.
func (ParameterMap) DoIterate ¶
func (m ParameterMap) DoIterate(name string) contract.ParameterIterator
DoIterate creates an iterable channel to read parameters. The name argument is used for the Parameter.Source value.
type ParameterMapBody ¶
type ParameterMapBody ParameterMap
ParameterMapBody is a map of parameters used in request bodies.
func (ParameterMapBody) Iterate ¶
func (m ParameterMapBody) Iterate() contract.ParameterIterator
Iterate creates an iterable channel to read parameters.
type ParameterMapPath ¶
type ParameterMapPath ParameterMap
ParameterMapPath is a map of parameters used in paths.
func (ParameterMapPath) Iterate ¶
func (m ParameterMapPath) Iterate() contract.ParameterIterator
Iterate creates an iterable channel to read parameters.
type ParameterMultiMap ¶
ParameterMultiMap is a map of operation test parameters where each key can have multiple values. Used for HTTP headers & query parameters. It is must be subclassed/aliased/whatever-this-is-called-in-go in order to override the Iterate() and provide a source name.
func (ParameterMultiMap) DoIterate ¶
func (m ParameterMultiMap) DoIterate(name string) contract.ParameterIterator
DoIterate creates an iterable channel to read parameters. The name argument is used for the Parameter.Source value.
type ParameterMultiMapHeaders ¶
type ParameterMultiMapHeaders ParameterMultiMap
ParameterMultiMapHeaders is a map of parameters used in headers.
func (ParameterMultiMapHeaders) Iterate ¶
func (m ParameterMultiMapHeaders) Iterate() contract.ParameterIterator
Iterate creates an iterable channel to read parameters.
type ParameterMultiMapQuery ¶
type ParameterMultiMapQuery ParameterMultiMap
ParameterMultiMapQuery is a map of parameters used in query.
func (ParameterMultiMapQuery) Iterate ¶
func (m ParameterMultiMapQuery) Iterate() contract.ParameterIterator
Iterate creates an iterable channel to read parameters.