pit

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIMEApplicationJSON = "application/json"
	MIMEApplicationForm = "application/x-www-form-urlencoded"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Connections       int
	Count             int
	Duration          time.Duration
	Timeout           time.Duration
	Url               string
	Method            string
	Args              []string
	Headers           []string
	Host              string
	DisableKeepAlives bool
	Body              string
	File              string
	Stream            bool
	JSON              bool
	Form              bool
	Insecure          bool
	Cert              string
	Key               string
	HttpProxy         string
	SocksProxy        string
	Pipeline          bool
	Follow            bool
	MaxRedirects      int
	Debug             bool
	// contains filtered or unexported fields
}

type Pit

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

func New

func New(c Config) *Pit

func (Pit) Init

func (t Pit) Init() tea.Cmd

func (*Pit) Run

func (p *Pit) Run() (err error)

func (Pit) Update

func (t Pit) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Pit) View

func (t Pit) View() string

Jump to

Keyboard shortcuts

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