Versions in this module Expand all Collapse all v0 v0.3.0-alpha Feb 16, 2021 v0.2.0 Feb 15, 2021 Changes in this version + type Metrics struct + func (metrics *Metrics) GetEndpointCallCount(httpMethod, url string) int type Runner + Metrics Metrics v0.1.1 Jul 20, 2020 Changes in this version + const BANNER + const FileResultTypeJson + const ResultTypeFile + const ResultTypeRedirect + const ResultTypeStatic + const VERSION + func WrapGaosError(cause error, message string) error + type Action struct + Direct string + Result Result + Status int + func (a *Action) Execute(ctx *fasthttp.RequestCtx) error + type Done <-chan bool + type Duration struct + func NewDuration(s Scenario) *Duration + func (d *Duration) Execute() (Done, error) + type Executable func() (Done, error) + type FileResult struct + Path string + Type string + type GaosError struct + Cause error + Message string + func (e GaosError) Error() string + type Latency struct + func NewLatency(s Scenario) *Latency + func (d *Latency) Execute() (Done, error) + type Limit struct + func NewLimit(s Scenario) *Limit + func (l *Limit) Execute() (Done, error) + type Method struct + func (m *Method) Execute() (Action, []Done) + func (m *Method) Handler() fasthttp.RequestHandler + type Path struct + Method string + Scenario string + type Rate struct + func NewRate(s Scenario) *Rate + func (r *Rate) Execute() (Done, error) + type RedirectResult struct + Host string + type Result struct + Content interface{} + Type string + type Runner struct + Scenario map[string]*Scenario + Service map[string]*Service + func New(path string) (*Runner, error) + func (g *Runner) ErrorHandler(ctx *fasthttp.RequestCtx, cause error) + func (g *Runner) Run(services ...string) + type Scenario struct + Accept Action + Duration string + End string + Ignore Action + Latency string + Limit int + Name string + Random int + Rate int + Start string + Status int + type Service struct + Path map[string]Path + Port int32 + type Span struct + func NewSpan(s Scenario) *Span + func (d *Span) Execute() (Done, error)