Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/olric-data/olric
/ functions
Functions
1,316 in github.com/olric-data/olric
⨍
Functions
1,316
◇
Types & classes
192
↓ 2 callers
Function
ParsePublishInternalCommand
(cmd redcon.Command)
internal/protocol/pubsub.go:76
↓ 2 callers
Function
ParsePutEntryCommand
(cmd redcon.Command)
internal/protocol/dmap.go:203
↓ 2 callers
Function
ParseSubscribeCommand
(cmd redcon.Command)
internal/protocol/pubsub.go:106
↓ 2 callers
Function
ParseUnlockCommand
(cmd redcon.Command)
internal/protocol/dmap.go:915
↓ 2 callers
Function
ParseUpdateRoutingCommand
(cmd redcon.Command)
internal/protocol/system.go:106
↓ 2 callers
Method
PartitionIDByHKey
PartitionIDByHKey returns partition ID for a given HKey.
internal/cluster/partitions/partitions.go:69
↓ 2 callers
Method
Ping
Ping sends a ping message to an Olric node. Returns PONG if message is empty, otherwise return a copy of the message as a bulk. This command is often
embedded_client.go:364
↓ 2 callers
Method
Ping
Ping sends a ping message to an Olric node. Returns PONG if message is empty, otherwise return a copy of the message as a bulk. This command is often
client.go:297
↓ 2 callers
Method
Println
Println calls v.f.logger.Println to print to the logger. Arguments are handled in the manner of fmt.Println.
pkg/flog/flog.go:121
↓ 2 callers
Method
PubSubNumPat
(ctx context.Context)
pubsub.go:78
↓ 2 callers
Method
PubSubNumSub
(ctx context.Context, channels ...string)
pubsub.go:74
↓ 2 callers
Method
RangeHKey
RangeHKey implements a loop for hashed keys(HKeys).
pkg/storage/engine.go:118
↓ 2 callers
Method
RefreshMetadata
RefreshMetadata fetches a list of available members and the latest routing table version. It also closes stale clients if there are any.
cluster_client.go:628
↓ 2 callers
Method
Reset
()
internal/kvstore/table/table.go:436
↓ 2 callers
Method
RoutingTable
RoutingTable returns the latest version of the routing table.
embedded_client.go:373
↓ 2 callers
Method
Sanitize
Sanitize sets default values to empty configuration variables, if it's possible.
config/engine.go:56
↓ 2 callers
Method
SetAuthenticated
SetAuthenticated sets the authentication state of the connection to the specified value. It is thread-safe.
internal/server/server.go:70
↓ 2 callers
Method
SetLastAccess
(int64)
pkg/storage/entry.go:45
↓ 2 callers
Method
SetLastAccess
(lastAccess int64)
internal/kvstore/entry/entry.go:74
↓ 2 callers
Method
SetPattern
(pattern string)
internal/protocol/pubsub.go:163
↓ 2 callers
Method
SetPreConditionFunc
SetPreConditionFunc sets a precondition function to be executed before serving each command on the server.
internal/server/server.go:177
↓ 2 callers
Method
SetRaw
()
internal/protocol/dmap.go:723
↓ 2 callers
Method
SetReplica
()
internal/protocol/dmap.go:279
↓ 2 callers
Method
SetReplica
()
internal/protocol/dmap.go:364
↓ 2 callers
Method
SetReplica
()
internal/protocol/system.go:129
↓ 2 callers
Method
Shutdown
Shutdown gracefully shuts down the server without interrupting any active connections. Shutdown works by first closing all open listeners, then closin
internal/server/server.go:237
↓ 2 callers
Function
ToClusterEvent
(e memberlist.NodeEvent)
internal/discovery/events.go:19
↓ 2 callers
Method
TransferIterator
TransferIterator returns a new TransferIterator instance to the caller.
pkg/storage/engine.go:102
↓ 2 callers
Method
UnmarshalBinary
(data []byte)
internal/resp/encoder_test.go:21
↓ 2 callers
Method
Validate
Validate finds errors in the current configuration.
config/engine.go:48
↓ 2 callers
Function
XX
XX only sets the key if it already exists.
client.go:111
↓ 2 callers
Function
addrParts
The following functions are mostly extracted from Serf. See setupAgent function in cmd/serf/command/agent/command.go Thanks for the extraordinary soft
config/network.go:31
↓ 2 callers
Method
atomicIncrByFloat
(e *env, delta float64)
internal/dmap/atomic.go:171
↓ 2 callers
Method
attemptToJoin
()
internal/cluster/routingtable/discovery.go:47
↓ 2 callers
Function
bval
(i int)
internal/kvstore/table/pack_test.go:31
↓ 2 callers
Method
checkPartitionOwnership
(part *partitions.Partition)
stats.go:76
↓ 2 callers
Method
clientByPartID
(partID uint64)
cluster_client.go:110
↓ 2 callers
Method
collectPartitionMetrics
(partID uint64, part *partitions.Partition)
stats.go:49
↓ 2 callers
Function
convertClusterError
(err error)
olric.go:303
↓ 2 callers
Method
dec
dec decrements the number of waiters waiting on the lock
internal/locker/locker.go:45
↓ 2 callers
Method
deleteFromPreviousOwners
(key string, owners []discovery.Member)
internal/dmap/delete.go:54
↓ 2 callers
Method
destroyFragmentOnPartition
(part *partitions.Partition)
internal/dmap/destroy_handlers.go:26
↓ 2 callers
Method
destroyOnCluster
(ctx context.Context)
internal/dmap/destroy.go:27
↓ 2 callers
Method
evictKeyWithLRU
(e *env)
internal/dmap/eviction.go:207
↓ 2 callers
Method
fetchRoutingTable
()
cluster_iterator.go:282
↓ 2 callers
Method
fillRoutingTable
()
cluster.go:127
↓ 2 callers
Method
fillRoutingTable
()
internal/cluster/routingtable/routingtable.go:212
↓ 2 callers
Method
findCoefficient
(coefficient uint64)
internal/kvstore/kvstore.go:455
↓ 2 callers
Method
float
(f float64)
internal/resp/encoder.go:136
↓ 2 callers
Method
fragmentMergeFunction
(f *fragment, hkey uint64, entry storage.Entry)
internal/dmap/balance.go:38
↓ 2 callers
Method
fragmentName
(name string)
internal/dmap/dmap.go:61
↓ 2 callers
Method
get
(offset uint64)
internal/kvstore/table/table.go:257
↓ 2 callers
Function
getBindIP
(ifname, address string)
config/network.go:68
↓ 2 callers
Method
getDMap
getDMap returns an initialized DMap instance, otherwise it returns ErrDMapNotFound.
internal/dmap/dmap.go:50
↓ 2 callers
Method
getOwners
()
cluster_iterator.go:114
↓ 2 callers
Function
getPrefix
(err error)
internal/protocol/errors.go:62
↓ 2 callers
Method
getPut
(e *env)
internal/dmap/atomic.go:112
↓ 2 callers
Method
getRawKey
(offset uint64)
internal/kvstore/table/table.go:206
↓ 2 callers
Function
getType
(data interface{})
internal/dmap/service.go:107
↓ 2 callers
Method
inc
inc increments the number of waiters waiting for the lock
internal/locker/locker.go:40
↓ 2 callers
Method
incrDecrCommon
(cmd, dmap, key string, delta int)
internal/dmap/atomic_handlers.go:24
↓ 2 callers
Method
initContexts
initContexts sets up chained contexts for the pipeline. The base is closedCtx, which is closed either in Close or Discard. ctx is a child of closedCtx
pipeline.go:632
↓ 2 callers
Method
isAlive
()
internal/dmap/service.go:97
↓ 2 callers
Method
isKeyIdleOnFragment
isKeyIdleOnFragment is not a thread-safe function. It accesses underlying fragment for the given hkey.
internal/dmap/eviction.go:32
↓ 2 callers
Method
isOperable
isOperable controls bootstrapping status and cluster quorum to prevent split-brain syndrome.
olric.go:317
↓ 2 callers
Method
janitor
(part *partitions.Partition)
internal/dmap/janitor.go:40
↓ 2 callers
Method
loadCurrentAtomicInt
(e *env)
internal/dmap/atomic.go:29
↓ 2 callers
Method
loadCursor
(owner string)
cluster_iterator.go:90
↓ 2 callers
Method
loadRoute
()
cluster_iterator.go:55
↓ 2 callers
Method
markBootstrapped
()
internal/cluster/routingtable/routingtable.go:182
↓ 2 callers
Method
newFragment
()
internal/dmap/fragment.go:131
↓ 2 callers
Function
newPubSub
(client *server.Client, options ...PubSubOption)
pubsub.go:31
↓ 2 callers
Function
pipelineStringValue
(cmd redis.Cmder)
pipeline.go:664
↓ 2 callers
Method
publishEvent
(e events.Event)
internal/dmap/service.go:115
↓ 2 callers
Method
publishNodeJoinEvent
(m *discovery.Member)
internal/cluster/routingtable/events.go:24
↓ 2 callers
Method
publishNodeLeftEvent
(m *discovery.Member)
internal/cluster/routingtable/events.go:45
↓ 2 callers
Function
pubsubTestRunner
(t *testing.T, ps *PubSub, kind, channel string)
pubsub_test.go:27
↓ 2 callers
Function
putPipelineCmdsIntoPool
(cmds []redis.Cmder)
pipeline.go:655
↓ 2 callers
Method
resetPage
()
cluster_iterator.go:179
↓ 2 callers
Method
routingTable
(ctx context.Context)
cluster.go:144
↓ 2 callers
Method
runCallbacks
()
internal/cluster/routingtable/callback.go:24
↓ 2 callers
Method
scanCommon
(cursor uint64, expr string, count int, f func(e storage.Entry) bool)
internal/kvstore/kvstore.go:469
↓ 2 callers
Method
scanPartition
(sign uint64, part *partitions.Partition, owners ...discovery.Member)
internal/cluster/balancer/balancer.go:70
↓ 2 callers
Method
setNumMembers
setNumMembers assigns the current number of members in the cluster to a variable.
internal/cluster/routingtable/routingtable.go:131
↓ 2 callers
Method
setOrGetClusterClient
()
embedded_client.go:66
↓ 2 callers
Method
sortVersions
(versions []*version)
internal/dmap/get.go:194
↓ 2 callers
Method
stats
(cfg statsConfig)
stats.go:86
↓ 2 callers
Method
string
(s string)
internal/resp/encoder.go:122
↓ 2 callers
Method
subscribe
(conn redcon.Conn, pattern bool, channel string)
internal/pubsub/pubsub.go:253
↓ 2 callers
Function
toMembers
(members []discovery.Member)
stats.go:41
↓ 2 callers
Method
triggerBalancer
()
internal/cluster/balancer/balancer.go:187
↓ 2 callers
Method
unsubscribe
(conn redcon.Conn, pattern, all bool, channel string)
internal/pubsub/pubsub.go:314
↓ 2 callers
Method
updateRoutingTableOnCluster
()
internal/cluster/routingtable/update.go:72
↓ 2 callers
Function
usage
()
cmd/olric-server/main.go:33
↓ 2 callers
Function
wipeOutFragment
(part *partitions.Partition, name string, f *fragment)
internal/dmap/janitor.go:24
↓ 2 callers
Method
writeMessage
(pat bool, pchan, channel, msg string)
internal/pubsub/pubsub.go:106
↓ 2 callers
Method
writePutCommand
(e *env)
internal/dmap/put.go:337
↓ 1 callers
Method
AddCallback
(f func())
internal/cluster/routingtable/callback.go:17
↓ 1 callers
Method
Addresses
()
internal/server/client.go:51
↓ 1 callers
Function
Atoi
(b []byte)
internal/util/strconv.go:31
← previous
next →
401–500 of 1,316, ranked by callers