Documentation ¶
Index ¶
- Variables
- func AfterTest()
- func BeforeTest()
- func HandlerForData(options []string, index int, req *http.Request) (outReq *http.Request, err error)
- func HandlerForHeader(options []string, index int, req *http.Request) (*http.Request, error)
- func HandlerForMethod(options []string, index int, req *http.Request) (*http.Request, error)
- func HandlerForUserAgent(options []string, index int, req *http.Request) (*http.Request, error)
- type Adapter
- type CommandLineLexer
- type ConfigHandler
- type Func
- type Lexer
- type RandomRequestStream
- type Reader
- type RequestStream
- type SequentialRequestStream
- type StateDelegate
- type TimeBasedRequestStream
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //RandomSource ... RandomSource = rand.NewSource(time.Now().UnixNano()) //Random ... Random = rand.New(RandomSource) )
View Source
var ( //TestServer ... TestServer *rizo.RequestRecordingServer )
Functions ¶
func BeforeTest ¶
func BeforeTest()
func HandlerForData ¶
func HandlerForData(options []string, index int, req *http.Request) (outReq *http.Request, err error)
HandlerForData ...
func HandlerForHeader ¶
HandlerForHeader ...
func HandlerForMethod ¶
HandlerForMethod ...
Types ¶
type CommandLineLexer ¶
type CommandLineLexer struct {
// contains filtered or unexported fields
}
CommandLineLexer ...
func (*CommandLineLexer) RecordFlag ¶
func (instance *CommandLineLexer) RecordFlag(char rune)
RecordFlag ...
func (*CommandLineLexer) RecordFlagValue ¶
func (instance *CommandLineLexer) RecordFlagValue(char rune)
RecordFlagValue ...
func (*CommandLineLexer) RecordValue ¶
func (instance *CommandLineLexer) RecordValue(char rune)
RecordValue ...
type ConfigHandler ¶
ConfigHandler ...
type RandomRequestStream ¶
type RandomRequestStream struct {
// contains filtered or unexported fields
}
RandomRequestStream ...
func (*RandomRequestStream) HasNext ¶
func (instance *RandomRequestStream) HasNext() bool
HasNext ...
func (*RandomRequestStream) Next ¶
func (instance *RandomRequestStream) Next() (*http.Request, error)
Next ...
func (*RandomRequestStream) Progress ¶
func (instance *RandomRequestStream) Progress() int
Progress ...
type RequestStream ¶
type RequestStream interface { HasNext() bool Next() (*http.Request, error) Reset() Progress() int Size() int }
RequestStream ...
func NewRandomRequestStream ¶
func NewRandomRequestStream(reader *Reader) RequestStream
NewRandomRequestStream ...
func NewSequentialRequestStream ¶
func NewSequentialRequestStream(reader *Reader) RequestStream
NewSequentialRequestStream ...
func NewTimeBasedRequestStream ¶
func NewTimeBasedRequestStream(stream RequestStream, duration time.Duration) RequestStream
NewTimeBasedRequestStream ...
type SequentialRequestStream ¶
type SequentialRequestStream struct {
// contains filtered or unexported fields
}
SequentialRequestStream ...
func (*SequentialRequestStream) HasNext ¶
func (instance *SequentialRequestStream) HasNext() bool
HasNext ...
func (*SequentialRequestStream) Next ¶
func (instance *SequentialRequestStream) Next() (*http.Request, error)
Next ...
func (*SequentialRequestStream) Progress ¶
func (instance *SequentialRequestStream) Progress() int
Progress ...
type TimeBasedRequestStream ¶
type TimeBasedRequestStream struct {
// contains filtered or unexported fields
}
TimeBasedRequestStream ...
func (*TimeBasedRequestStream) HasNext ¶
func (instance *TimeBasedRequestStream) HasNext() bool
HasNext ...
func (*TimeBasedRequestStream) Next ¶
func (instance *TimeBasedRequestStream) Next() (*http.Request, error)
Next ...
func (*TimeBasedRequestStream) Progress ¶
func (instance *TimeBasedRequestStream) Progress() int
Progress ...
Click to show internal directories.
Click to hide internal directories.