Help us shape the future of Go! Take the 2026 Go Developer Survey

http

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package http is a built-in open-model load generator: requests go out at a fixed rate whatever the latency (no coordinated omission), from this process, for as long as rig runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(env core.Env, c *spec.Component) (any, error)

Types

type Gen

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

func (*Gen) Close

func (g *Gen) Close() error

func (*Gen) SetRate

func (g *Gen) SetRate(_ context.Context, rps float64) error

func (*Gen) Start

func (g *Gen) Start(ctx context.Context) error

func (*Gen) Status

func (g *Gen) Status(context.Context) (core.LoadStatus, error)

func (*Gen) Stop

func (g *Gen) Stop(context.Context) error

type Options

type Options struct {
	Target   string            `yaml:"target"`
	Method   string            `yaml:"method"`
	Body     string            `yaml:"body"`
	Headers  map[string]string `yaml:"headers"`
	Rate     float64           `yaml:"rate"`
	MaxInFly int               `yaml:"max_in_flight"`
	Timeout  time.Duration     `yaml:"timeout"`
}

Jump to

Keyboard shortcuts

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