Documentation ¶
Index ¶
- Variables
- func HashResource(resource string) uint64
- func Match(resource, shardDesc string) (bool, error)
- func Multicast(cache etcache.Cache, r *http.Request, etcdKey string) ([]*http.Response, error)
- func MulticastHttp(cache etcache.Cache, w http.ResponseWriter, r *http.Request, etcdKey string, ...)
- func ParseShard(shardDesc string) (uint64, uint64, error)
- func Route(cache etcache.Cache, r *http.Request, etcdKey string, modulos uint64) (io.ReadCloser, error)
- func RouteHttp(cache etcache.Cache, w http.ResponseWriter, r *http.Request, etcdKey string, ...)
- type Return
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoHosts = errors.New("pfs: no hosts found")
)
Functions ¶
func HashResource ¶
func Multicast ¶
Multicast enables the Ogre Magi to rapidly cast his spells, giving them greater potency. Multicast sends a request to every host it finds under a key and returns a ReadCloser for each one.
func MulticastHttp ¶
func MulticastHttp(cache etcache.Cache, w http.ResponseWriter, r *http.Request, etcdKey string, ret Return)
MulticastHttp sends r to every host it finds under etcdKey, then prints the response to w based on
func ParseShard ¶
Parse a string descriving a shard, the string looks like: "0-4"
Types ¶
Click to show internal directories.
Click to hide internal directories.