cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	H headerFlag
)

Functions

func Run

func Run(cmd string, args ...string)

Types

type Expected

type Expected struct {
	Body   string `yaml:"body"`
	Status int    `yaml:"status"`
}

type HttpStats

type HttpStats struct {
	Info        int
	Success     int
	ClientError int
	Redirect    int
	ServerError int
}

type Input

type Input struct {
	Schema      *Schema  `yaml:"schema"`
	Timeout     *float64 `yaml:"timeout,omitempty"`
	Concurrency *int     `yaml:"concurrency"`
	Base        string   `yaml:"base,omitempty"`
	Iterations  int      `yaml:"iterations"`
}

type Request

type Request struct {
	Timeout *float64 `yaml:"timeout,omitempty"`
	Headers []string `yaml:"headers,omitempty"`
	Name    string   `yaml:"name"`
	URL     string   `yaml:"url"`
	Method  string   `yaml:"method"`
	Body    string   `yaml:"body,omitempty"`
}

type Schema

type Schema struct {
	Requests []*Request `yaml:"requests"`
}

Jump to

Keyboard shortcuts

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