package
0.0.0-20200723042522-932836ee9d04
Repository: https://github.com/mixpanel/bb-storage.git
Documentation: pkg.go.dev
# Functions
NewShardingBlobAccess is an adapter for BlobAccess that partitions requests across backends by hashing the digest.
NewWeightedShardPermuter is a shard selection algorithm that generates a permutation of [0, len(weights)) for every hash, where every index i is returned weights[i] times.
# Interfaces
ShardPermuter is an algorithm for turning a hash into a series of indices corresponding to backends capable of serving blobs corresponding with that hash.
# Type aliases
ShardSelector is the callback type called by ShardPermuter.GetShard.