MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / CheckIfRunning

Function CheckIfRunning

hoverctl/wrapper/hoverfly.go:233–240  ·  view source on GitHub ↗
(target configuration.Target)

Source from the content-addressed store, hash-verified

231}
232
233func CheckIfRunning(target configuration.Target) error {
234 _, err := doRequest(target, http.MethodGet, v2ApiHealth, "", nil)
235 if err != nil {
236 return fmt.Errorf("Target Hoverfly is not running\n\nRun `hoverctl start -t %s` to start it", target.Name)
237 }
238
239 return nil
240}
241
242// GetHoverfly will get the Hoverfly API which contains current configurations
243func GetHoverfly(target configuration.Target) (*v2.HoverflyView, error) {

Calls 1

doRequestFunction · 0.70