config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DescriptionFile = "description.txt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	Provider provider.FaasProvider
	Stacks   *Stacks

	Logger *zap.Logger

	Debug bool
	// contains filtered or unexported fields
}

func NewGlobalConfig

func NewGlobalConfig(provider provider.FaasProvider, arsenalPath string, report report.Top, debug bool) (*Global, error)

func (*Global) NewTest

func (c *Global) NewTest(stack *Stack, testId string, testDescription string) (*Test, error)

type Http

type Http struct {
	SleepTime        time.Duration              `json:"sleepTime"`
	Hook             syncedtrace.TraceHookType  `json:"hook"`
	QueryParams      *url.Values                `json:"queryParams"`
	Headers          *http.Header               `json:"headers"`
	Duration         time.Duration              `json:"duration"`
	RequestDelay     time.Duration              `json:"requestDelay"`
	ConcurrencyLimit uint64                     `json:"concurrencyLimit"`
	Body             *[]byte                    `json:"body"`
	TestType         string                     `json:"testType"`
	ConcurrentGraph  *httpbench.ConcurrentGraph `json:"concurrentGraph"`
	HitsGraph        *httpbench.HitsGraph       `json:"hitsGraph"`
}

func (*Http) String

func (h *Http) String() (string, error)

type HttpFunction

type HttpFunction struct {
	Test       *Test
	HttpConfig *Http
	Function   stack.Function
	Report     report.Function
	Logger     *zap.Logger
}

type Stack

type Stack struct {
	stack.Stack
	Description string
}

type Stacks

type Stacks struct {
	Stacks map[string]*Stack
}

func (*Stacks) GetStack

func (stacks *Stacks) GetStack(stackId string) (*Stack, error)

type Test

type Test struct {
	Config          *Global
	Stack           *Stack
	Report          report.Test
	TestId          string
	TestDescription string
}

func (*Test) NewFunction

func (t *Test) NewFunction(httpConfig *Http, function stack.Function) (*HttpFunction, error)

Jump to

Keyboard shortcuts

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