Documentation
¶
Index ¶
Constants ¶
View Source
const ( ResultTypeStatic = "static" ResultTypeFile = "file" ResultTypeRedirect = "redirect" )
View Source
const BANNER = `` /* 1393-byte string literal not displayed */
View Source
const (
FileResultTypeJson = "json"
)
View Source
const VERSION = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
func WrapGaosError ¶
Types ¶
type Action ¶
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
func NewDuration ¶
type Executable ¶
type FileResult ¶
type Method ¶
type Method struct { Scenario // contains filtered or unexported fields }
func (*Method) Handler ¶
func (m *Method) Handler() fasthttp.RequestHandler
type Metrics ¶ added in v0.2.0
func (*Metrics) GetEndpointCallCount ¶ added in v0.2.0
type RedirectResult ¶
type RedirectResult struct {
Host string `json:"host"`
}
type Runner ¶
type Runner struct { Service map[string]*Service `json:"service"` Scenario map[string]*Scenario `json:"scenario"` Metrics Metrics // contains filtered or unexported fields }
func (*Runner) ErrorHandler ¶
func (g *Runner) ErrorHandler(ctx *fasthttp.RequestCtx, cause error)
type Scenario ¶
type Scenario struct { Name string `json:"name"` Duration string `json:"duration"` Latency string `json:"latency"` Status int `json:"status"` Rate int `json:"rate"` Random int `json:"random"` Limit int `json:"limit"` Start string `json:"start"` End string `json:"end"` Accept Action `json:"accept"` Ignore Action `json:"ignore"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.