lib

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attacker

type Attacker struct {
	Path        Path
	MethodIndex int
	Body        []byte
	Header      http.Header
	Frequency   int
	Duration    time.Duration
}

func (*Attacker) Attack

func (atk *Attacker) Attack() vegeta.Metrics

type Body

type Body struct {
	Name  string
	Shema *openapi3.SchemaRef
}

type Method

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

func (*Method) Bodys

func (m *Method) Bodys() []Body

func (*Method) Method

func (m *Method) Method() string

func (*Method) Params

func (m *Method) Params() openapi3.Parameters

type OpenAPI

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

func NewOpenAPI

func NewOpenAPI(pass string) *OpenAPI

func (*OpenAPI) Parse

func (o *OpenAPI) Parse(ctx context.Context) ([]Path, error)

func (*OpenAPI) Pass

func (o *OpenAPI) Pass() string

type Path

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

func (*Path) Method

func (p *Path) Method(index int) Method

func (*Path) Path

func (p *Path) Path() string

func (*Path) SetPath

func (p *Path) SetPath(path string)

Jump to

Keyboard shortcuts

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