vegeta

package
v0.0.0-...-15ec0e9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	StartedAt time.Time
	EndedAt   time.Time
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *Config) (*Client, error)

func (*Client) Finished

func (c *Client) Finished() bool

func (*Client) RegisterReporter

func (c *Client) RegisterReporter(f func(res *vegeta.Result))

func (*Client) Start

func (c *Client) Start(finish context.CancelFunc)

type Config

type Config struct {
	Name       string
	Freqency   int
	Per        time.Duration
	Period     time.Duration
	URL        string
	ActAddress string
	ActPort    int
	Method     string
	Timeout    time.Duration
}

Jump to

Keyboard shortcuts

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