HTTPPoolOptions are the configurations of a HTTPPool.
| 60 | |
| 61 | // HTTPPoolOptions are the configurations of a HTTPPool. |
| 62 | type HTTPPoolOptions struct { |
| 63 | // BasePath specifies the HTTP path that will serve groupcache requests. |
| 64 | // If blank, it defaults to "/_groupcache/". |
| 65 | BasePath string |
| 66 | |
| 67 | // Replicas specifies the number of key replicas on the consistent hash. |
| 68 | // If blank, it defaults to 50. |
| 69 | Replicas int |
| 70 | |
| 71 | // HashFn specifies the hash function of the consistent hash. |
| 72 | // If blank, it defaults to crc32.ChecksumIEEE. |
| 73 | HashFn consistenthash.Hash |
| 74 | } |
| 75 | |
| 76 | // NewHTTPPool initializes an HTTP pool of peers, and registers itself as a PeerPicker. |
| 77 | // For convenience, it also registers itself as an http.Handler with http.DefaultServeMux. |
nothing calls this directly
no outgoing calls
no test coverage detected