# Functions
NewCacheServiceRoundTripper creates a new CacheServiceRoundTripper.
NewDefaultShardRoundTripper creates a new round tripper that sets a default shard name.
NewShardNameFromObjectRoundTripper creates a new ShardNameFromObjectRoundTripper for the given resources.
NewShardRoundTripper creates a new shard aware round tripper.
ShardFromContext returns the value of the shard key on the ctx, or an empty Name if there is no shard key.
WithCacheServiceRoundTripper wraps an existing config's with CacheServiceRoundTripper.
WithDefaultShardRoundTripper wraps an existing config's with DefaultShardRoundTripper
Note: it is the caller responsibility to make a copy of the rest config.
WithShardInContext returns a context with the given shard set.
WithShardNameFromContextRoundTripper wraps an existing config's with ShardRoundTripper.
WithShardNameFromObjectRoundTripper wraps an existing config with ShardNameFromObjectRoundTripper.
# Structs
CacheServiceRoundTripper is a http.RoundTripper that appends "/services/cache" prefix to a request.
DefaultShardRoundTripper is a http.RoundTripper that sets a default shard name if not specified in the context.
ShardNameFromObjectRoundTripper knows how to read a shard name from an object and store it in the context.
ShardRoundTripper is a shard aware wrapper around http.RoundTripper.