MCPcopy Create free account
hub / github.com/golang/groupcache / HTTPPoolOptions

Struct HTTPPoolOptions

http.go:62–74  ·  view source on GitHub ↗

HTTPPoolOptions are the configurations of a HTTPPool.

Source from the content-addressed store, hash-verified

60
61// HTTPPoolOptions are the configurations of a HTTPPool.
62type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected