MCPcopy Index your code
hub / github.com/golang/groupcache / NewHTTPPool

Function NewHTTPPool

http.go:80–84  ·  view source on GitHub ↗

NewHTTPPool initializes an HTTP pool of peers, and registers itself as a PeerPicker. For convenience, it also registers itself as an http.Handler with http.DefaultServeMux. The self argument should be a valid base URL that points to the current server, for example "http://example.net:8000".

(self string)

Source from the content-addressed store, hash-verified

78// The self argument should be a valid base URL that points to the current server,
79// for example "http://example.net:8000".
80func NewHTTPPool(self string) *HTTPPool {
81 p := NewHTTPPoolOpts(self, nil)
82 http.Handle(p.opts.BasePath, p)
83 return p
84}
85
86var httpPoolMade bool
87

Callers 2

TestHTTPPoolFunction · 0.85
beChildForTestHTTPPoolFunction · 0.85

Calls 1

NewHTTPPoolOptsFunction · 0.85

Tested by 2

TestHTTPPoolFunction · 0.68
beChildForTestHTTPPoolFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…