MCPcopy Create free account

hub / github.com/dgryski/go-shardedkv / functions

Functions142 in github.com/dgryski/go-shardedkv

↓ 16 callersMethodGet
Get returns the value for a given key and a bool indicating if the key was present
shardedkv.go:18
↓ 11 callersMethodChoose
Choose returns a bucket for a given key
shardedkv.go:44
↓ 8 callersMethodDelete
Delete removes a key from the storage, and returns a bool indicating if the key was found
shardedkv.go:22
↓ 8 callersMethodSet
Set sets the value for key
shardedkv.go:20
↓ 7 callersMethodSetBuckets
SetBuckets sets the list of known buckets from which the chooser should select
shardedkv.go:42
↓ 6 callersMethodResetConnection
ResetConnection reinitializes the connection for the shard responsible for a key
shardedkv.go:24
↓ 5 callersFunctionNew
New returns a Storage that queries multiple replicas in parallel
storage/replica/replica.go:41
↓ 5 callersFunctionbenchmarkOne
(b *testing.B, newch func() shardedkv.Chooser)
choosers/choosers_test.go:34
↓ 5 callersFunctiontestDistribution
(t *testing.T, newch func() shardedkv.Chooser)
choosers/distrib_test.go:59
↓ 5 callersFunctiontestOneDistribution
(t *testing.T, shards int, ch shardedkv.Chooser)
choosers/distrib_test.go:21
↓ 4 callersMethodAdd
Adds some keys to the hash.
choosers/chash/internal/consistenthash/consistenthash.go:49
↓ 4 callersFunctioncheckMultiError
(t *testing.T, err error, what string)
storage/replica/replica_test.go:18
↓ 4 callersMethodsuccess
()
storage/backoff/backoff.go:120
↓ 3 callersMethodGet
Get implements the shardedkv.Storage interface
storage/backoff/backoff.go:128
↓ 3 callersMethodcanUse
()
storage/backoff/backoff.go:57
↓ 3 callersMethodfail
()
storage/backoff/backoff.go:83
↓ 2 callersMethodAddShard
AddShard adds a shard from the list of known shards
shardedkv.go:180
↓ 2 callersMethodIsEmpty
Returns true if there are no items available.
choosers/chash/internal/consistenthash/consistenthash.go:44
↓ 2 callersFunctionbenchmarkChooser
(b *testing.B, shards int, ch shardedkv.Chooser)
choosers/choosers_test.go:18
↓ 1 callersMethodBeginMigration
BeginMigration begins a continuum migration. All the shards in the new continuum must already be known to the KVStore via AddShard().
shardedkv.go:199
↓ 1 callersMethodChooseReplicas
(key string, n int)
choosers/jump/jump.go:27
↓ 1 callersMethodDeleteShard
DeleteShard removes a shard from the list of known shards
shardedkv.go:189
↓ 1 callersMethodEndMigration
EndMigration ends a continuum migration and marks the migration continuum as the new primary
shardedkv.go:229
↓ 1 callersMethodGetMulti
Gets the closest item in the hash to the provided key, and following unique servers for replicas.
choosers/chash/internal/consistenthash/consistenthash.go:80
↓ 1 callersFunctionNew
New returns a KVStore that uses chooser to shard the keys across the provided shards
shardedkv.go:56
↓ 1 callersFunctionNew
New returns a new sql key-value store. Connector should be a function which returns an sql.DB object for the database where the table lives.
storage/sql/sql.go:34
↓ 1 callersFunctionNew
New returns a new memory-backed Storage
storage/memory/memory.go:14
↓ 1 callersFunctionNew
New returns a rest-backed storage at the given base URL using the default HTTP client
storage/rest/rest.go:17
↓ 1 callersFunctionNew
New returns a new storage, backed by the redis server at 'addr'
storage/redis/redis.go:16
↓ 1 callersFunctionNew
New returns a new Storage, storing files in 'dir'
storage/fs/fs.go:15
↓ 1 callersFunctionNew
(h func([]byte) uint64)
choosers/jump/jump.go:11
↓ 1 callersFunctionNewWithClient
New returns a rest-backed storage at the given base URL using a custom HTTP client
storage/rest/rest.go:22
↓ 1 callersFunctionxorshiftMult64
64-bit xorshift multiply rng from http://vigna.di.unimi.it/ftp/papers/xorshift.pdf
choosers/jump/jump.go:59
MethodBeginMigrationWithShards
BeginMigrationWithShards begins a continuum migration using the new set of shards.
shardedkv.go:209
FunctionBenchmarkCHash
(b *testing.B)
choosers/choosers_test.go:41
FunctionBenchmarkJump
(b *testing.B)
choosers/choosers_test.go:45
FunctionBenchmarkKetama
(b *testing.B)
choosers/choosers_test.go:40
FunctionBenchmarkMaglev
(b *testing.B)
choosers/choosers_test.go:59
FunctionBenchmarkMulti
(b *testing.B)
choosers/choosers_test.go:42
FunctionBenchmarkRendezvous
(b *testing.B)
choosers/choosers_test.go:48
MethodBuckets
Buckets returns the list of known buckets
shardedkv.go:46
MethodBuckets
()
choosers/jump/jump.go:56
MethodBuckets
()
choosers/chash/chash.go:34
MethodBuckets
()
choosers/mpc/mpc.go:29
MethodBuckets
()
choosers/ketama/ketama.go:38
MethodBuckets
()
choosers/maglev/maglev.go:47
MethodBuckets
()
choosers/rendezvous/rdv.go:38
MethodBuckets
()
choosers/weighted/weighted.go:51
MethodChoose
(key string)
choosers/jump/jump.go:23
MethodChoose
(key string)
choosers/chash/chash.go:30
MethodChoose
(key string)
choosers/mpc/mpc.go:27
MethodChoose
(key string)
choosers/ketama/ketama.go:34
MethodChoose
(key string)
choosers/maglev/maglev.go:41
MethodChoose
(k string)
choosers/rendezvous/rdv.go:33
MethodChoose
(key string)
choosers/weighted/weighted.go:45
MethodChooseReplicas
(key string, n int)
choosers/chash/chash.go:32
MethodChooseReplicas
(key string, n int)
choosers/ketama/ketama.go:36
MethodDelete
Delete implements Storage.Delete()
shardedkv.go:123
MethodDelete
(key string)
storagetest/storagetest.go:16
MethodDelete
(key string)
storage/sql/sql.go:89
MethodDelete
(key string)
storage/memory/memory.go:37
MethodDelete
(key string)
storage/replica/replica_test.go:15
MethodDelete
(key string)
storage/replica/replica.go:182
MethodDelete
Delete implements the shardedkv.Storage interface
storage/backoff/backoff.go:168
MethodDelete
(key string)
storage/rest/rest.go:68
MethodDelete
(key string)
storage/redis/redis.go:45
MethodDelete
(key string)
storage/fs/fs.go:40
MethodError
()
storage/replica/replica.go:24
MethodError
()
storage/replica/replica.go:30
MethodGet
Get implements Storage.Get()
shardedkv.go:72
MethodGet
(key string)
storagetest/storagetest.go:12
MethodGet
(key string)
storage/sql/sql.go:48
MethodGet
(key string)
storage/memory/memory.go:20
MethodGet
(key string)
storage/replica/replica_test.go:13
MethodGet
(key string)
storage/replica/replica.go:49
MethodGet
(key string)
storage/rest/rest.go:29
MethodGet
(key string)
storage/redis/redis.go:27
MethodGet
(key string)
storage/fs/fs.go:21
MethodGet
Gets the closest item in the hash to the provided key.
choosers/chash/internal/consistenthash/consistenthash.go:61
MethodHedgedTimeout
HedgedTimeout returns the timeout for a single replica to respond before querying a backup. Defaults to 1 second.
storage/replica/replica.go:222
FunctionNew
()
choosers/chash/chash.go:13
FunctionNew
(replicas int, fn Hash)
choosers/chash/internal/consistenthash/consistenthash.go:34
FunctionNew
(hashf func(b []byte, seed uint64) uint64, seeds [2]uint64, k int)
choosers/mpc/mpc.go:17
FunctionNew
()
choosers/ketama/ketama.go:13
FunctionNew
()
choosers/maglev/maglev.go:16
FunctionNew
()
choosers/rendezvous/rdv.go:14
FunctionNew
(chooser shardedkv.Chooser, lookup func(string) int)
choosers/weighted/weighted.go:19
MethodResetConnection
ResetConnection implements Storage.ResetConnection()
shardedkv.go:154
MethodResetConnection
(key string)
storagetest/storagetest.go:17
MethodResetConnection
(key string)
storage/sql/sql.go:109
MethodResetConnection
(key string)
storage/memory/memory.go:51
MethodResetConnection
(key string)
storage/replica/replica_test.go:16
MethodResetConnection
(key string)
storage/replica/replica.go:202
MethodResetConnection
ResetConnection implements the shardedkv.Storage interface
storage/backoff/backoff.go:188
MethodResetConnection
(key string)
storage/rest/rest.go:92
MethodResetConnection
(key string)
storage/redis/redis.go:51
MethodResetConnection
(key string)
storage/fs/fs.go:55
MethodSet
Set implements Storage.Set()
shardedkv.go:103
MethodSet
(key string, val []byte)
storagetest/storagetest.go:15
MethodSet
(key string, val []byte)
storage/sql/sql.go:73
next →1–100 of 142, ranked by callers