MCPcopy Create free account
hub / github.com/Comcast/rulio / getHTTPBreaker

Function getHTTPBreaker

core/http.go:60–71  ·  view source on GitHub ↗

getHTTPBreaker finds a breaker (if any) for the given URI in HTTPBreakers. First the URI itself is used for the key. Failing that, the URI host is used. Returns nil if no breaker was found. HTTPBreakers isn't synchronized, and this function doesn't get a (read) lock. ToDo or don't write HTTPBre

(ctx *Context, uri string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

DoOnceMethod · 0.85

Calls 1

LogFunction · 0.85

Tested by

no test coverage detected