Documentation ¶
Overview ¶
Functions for the last mile of a fiddle, i.e. formatting the draw.cpp and then compiling and executing the code by dispatching a request to a fiddler.
Index ¶
Constants ¶
View Source
const ( // PREFIX is a format string for the code that makes it compilable. PREFIX = `` /* 208-byte string literal not displayed */ // NUM_RETRIES is the number of time to try to find a pod to run the fiddle // on before giving up. NUM_RETRIES = 8 )
Variables ¶
View Source
var (
// LOCALRUN_URL stands in for a fiddler pods URL when running locally.
LOCALRUN_URL = "http://localhost:8000/run"
)
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) Metrics ¶
func (r *Runner) Metrics()
Metrics captures metrics on the state of all the fiddler pods.
func (*Runner) Run ¶
func (r *Runner) Run(ctx context.Context, local bool, req *types.FiddleContext) (*types.Result, error)
Run executes fiddle_run and then parses the JSON output into types.Results.
local - Boolean, true if we are running locally.
func (*Runner) ValidateOptions ¶
ValidateOptions validates that the options make sense.
Click to show internal directories.
Click to hide internal directories.