httpexecutor

package
v0.0.0-...-58d9a08 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostArgsKey    = "host"
	PortArgsKey    = "port"
	SchemeArgsKey  = "scheme"
	MethodArgsKey  = "method"
	PathArgsKey    = "path"
	HeaderArgsKey  = "header"
	BodyArgsKey    = "body"
	TimeoutArgsKey = "timeout"

	SchemeHTTP  = "HTTP"
	SchemeHTTPS = "HTTPS"
	MethodGET   = "GET"
	MethodPOST  = "POST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPExecutor

type HTTPExecutor struct {
}

func NewHTTPExecutor

func NewHTTPExecutor(ctx context.Context) (*HTTPExecutor, error)

func (*HTTPExecutor) CheckConfig

func (e *HTTPExecutor) CheckConfig(ctx context.Context, args []v1alpha1.MeasureArgs, judgement v1alpha1.Judgement) error

func (*HTTPExecutor) InitialData

func (e *HTTPExecutor) InitialData(ctx context.Context, args []v1alpha1.MeasureArgs) (string, error)

func (*HTTPExecutor) Measure

func (e *HTTPExecutor) Measure(ctx context.Context, args []v1alpha1.MeasureArgs, judgement v1alpha1.Judgement, initialData string) error

Jump to

Keyboard shortcuts

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