Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Mutex *sync.Mutex HttpService string EnableTLS bool CertFile string KeyFile string UpstreamURL *url.URL Out io.Writer LogJSON bool LogPrettyJSON bool Echo bool HttpCode int Delay int IgnoreTLSErrors bool FailureMode FailureSimulation }
Context type holds the desired execution profile for a command
func (*Context) FailureSimulated ¶
func (*Context) FailureSimulationEnabled ¶
Determine if the failure simulation mode is enabled for this invocation
func (*Context) SimulateDelay ¶
func (ctx *Context) SimulateDelay()
SimulateDelay will introduce a timed delay if specified
func (*Context) SimulateFailure ¶
SimulateFailure will run a failure simulation and return an HTTP code representing the outcome
Click to show internal directories.
Click to hide internal directories.