Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NextCacher ¶
NextCacher is the interface that wraps the NextCache method.
NextCache returns the next cache to use for the given delivery service. This is neither pure nor idempotent, and successive calls will return different numbers. The underlying mechanism may not be aware of the number of caches, and the returned number MAY exceed the number of caches. Typically, callers should mod the returned number by the size of their cache list, to determine the cache to use. Returns false if the given delivery service is not found.
func New ¶
func New(dses []tc.DeliveryServiceName) NextCacher
New creates and returns a new NextCacher. The returned NextCacher is safe for use by multiple goroutines.
type Ths ¶
type Ths struct {
// contains filtered or unexported fields
}
Ths provides threadsafe access to a ThsT pointer. Note the object itself is not safe for multiple access, and must not be mutated, either by the original owner after calling Set, or by future users who call Get. If you need to mutate, perform a deep copy.
type ThsT ¶
type ThsT NextCacher