Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClients ¶
NewClients creates N rest.Interface.
FIXME(weifu):
1. Is it possible to build one http2 client with multiple connections? 2. How to monitor HTTP2 GOAWAY frame? 3. Support Protobuf as accepted content
Types ¶
type RESTRequestBuilder ¶
RESTRequestBuilder is used to build rest.Request.
type WeightedRandomRequests ¶
type WeightedRandomRequests struct {
// contains filtered or unexported fields
}
WeightedRandomRequests is used to generate requests based on LoadProfileSpec.
func NewWeightedRandomRequests ¶
func NewWeightedRandomRequests(spec *types.LoadProfileSpec) (*WeightedRandomRequests, error)
NewWeightedRandomRequests creates new instance of WeightedRandomRequests.
func (*WeightedRandomRequests) Chan ¶
func (r *WeightedRandomRequests) Chan() chan RESTRequestBuilder
Chan returns channel to get random request.
func (*WeightedRandomRequests) Run ¶
func (r *WeightedRandomRequests) Run(ctx context.Context, total int)
Run starts to random pick request.
func (*WeightedRandomRequests) Stop ¶
func (r *WeightedRandomRequests) Stop()
Stop stops request generator.
Click to show internal directories.
Click to hide internal directories.