Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/olric-data/olric
/ types & classes
Types & classes
192 in github.com/olric-data/olric
⨍
Functions
1,316
◇
Types & classes
192
↓ 3 callers
TypeAlias
EvictionPolicy
EvictionPolicy denotes eviction policy. Currently: LRU or NONE.
config/dmap.go:23
↓ 3 callers
TypeAlias
MemberID
MemberID denotes ID of a member in the cluster.
stats/stats.go:25
↓ 2 callers
TypeAlias
PartitionID
PartitionID denotes ID of a partition in the cluster.
stats/stats.go:22
↓ 1 callers
TypeAlias
Kind
internal/cluster/partitions/partitions.go:23
↓ 1 callers
TypeAlias
State
internal/kvstore/table/table.go:35
Struct
Auth
Auth represents a structure for authentication containing a password.
internal/protocol/system.go:207
Struct
Authentication
config/authentication.go:19
Struct
Balancer
internal/cluster/balancer/balancer.go:32
Struct
BufPool
BufPool maintains a buffer pool.
internal/bufpool/bufpool.go:23
Interface
Client
Client is an interface that denotes an Olric client.
client.go:284
Struct
Client
internal/server/client.go:28
Struct
Client
Client denotes configuration for TCP clients in Olric and the official Golang client.
config/client.go:39
Struct
ClusterClient
ClusterClient is a client for managing and interacting with a distributed cluster of nodes.
cluster_client.go:492
FuncType
ClusterClientOption
ClusterClientOption is a functional option for configuring a clusterClientConfig instance.
cluster_client.go:707
Struct
ClusterCommands
internal/protocol/commands.go:19
Struct
ClusterDMap
ClusterDMap implements a client for DMaps.
cluster_client.go:58
Struct
ClusterEvent
ClusterEvent is a single event related to node activity in the memberlist. The Node member of this struct must not be directly modified.
internal/discovery/discovery.go:46
Struct
ClusterIterator
ClusterIterator implements distributed query on DMaps.
cluster_iterator.go:33
Struct
ClusterLockContext
cluster_client.go:51
Struct
ClusterMembers
internal/protocol/cluster.go:45
Struct
ClusterRoutingTable
internal/protocol/cluster.go:24
Struct
Config
Config defines a new storage engine configuration
pkg/storage/config.go:23
Struct
Config
Config is a composite type to bundle configuration parameters.
internal/server/server.go:48
Struct
Config
Config represents the configuration structure for customizing the behavior and properties of Olric.
config/config.go:167
Struct
ConnContext
ConnContext represents the context for a connection with authentication state management.
internal/server/server.go:57
Struct
ConnWrapper
ConnWrapper is a wrapper around net.Conn that enables tracking of read and written bytes.
internal/server/server.go:86
Interface
DMap
DMap defines methods to access and manipulate distributed maps.
client.go:154
Struct
DMap
DMap implements a single-hop distributed hash table.
internal/dmap/dmap.go:36
Struct
DMap
DMap denotes a distributed map instance on the cluster.
stats/stats.go:41
Struct
DMap
Important note on DMap and DMaps structs: Golang does not provide the typical notion of inheritance. because of that I preferred to define the types e
config/dmap.go:31
Struct
DMapCommands
internal/protocol/commands.go:54
FuncType
DMapOption
DMapOption is a function for defining options to control behavior of distributed map instances.
client.go:122
Struct
DMapPipeline
DMapPipeline implements a pipeline for the following methods of the DMap API: * Put * Get * Delete * Incr * Decr * GetPut * IncrByFloat DMapPipeline
pipeline.go:58
Struct
DMaps
DMaps holds global DMap statistics.
stats/stats.go:125
Struct
DMaps
DMaps denotes a global configuration for DMaps. You can still overwrite it by setting a DMap for a particular distributed map via Custom field. Most o
config/dmaps.go:26
Struct
Decr
internal/protocol/dmap.go:675
Struct
Del
internal/protocol/dmap.go:317
Struct
DelEntry
internal/protocol/dmap.go:353
Struct
Destroy
internal/protocol/dmap.go:483
Struct
Discovery
Discovery is a structure that encapsulates memberlist and provides useful functions to utilize it.
internal/discovery/discovery.go:61
Struct
EmbeddedClient
EmbeddedClient is an Olric client implementation for embedded-member scenario.
embedded_client.go:51
Struct
EmbeddedDMap
EmbeddedDMap is an DMap client implementation for embedded-member scenario.
embedded_client.go:56
Struct
EmbeddedIterator
EmbeddedIterator implements distributed query on DMaps.
embedded_iterator.go:25
Struct
EmbeddedLockContext
EmbeddedLockContext is returned by Lock and LockWithTimeout methods. It should be stored in a proper way to release the lock.
embedded_client.go:32
Struct
Encoder
internal/resp/encoder.go:45
Interface
Engine
Engine defines methods for a storage engine implementation.
pkg/storage/engine.go:51
Struct
Engine
Engine contains storage engine configuration and their implementations. If you don't have a custom storage engine implementation or configuration for
config/engine.go:27
Interface
Entry
Entry interface defines methods for a storage entry.
pkg/storage/entry.go:18
Struct
Entry
Entry is a DMap entry with its metadata.
internal/dmap/get.go:32
Struct
Entry
In-memory layout for an entry: KEY-LENGTH(uint8) | KEY(bytes) | TTL(uint64) | | Timestamp(uint64) | VALUE-LENGTH(uint32) | VALUE(bytes) Entry represe
internal/kvstore/entry/entry.go:28
Struct
Environment
internal/environment/environment.go:19
Interface
Event
events/cluster_events.go:36
Struct
Expire
internal/protocol/dmap.go:442
Interface
Fragment
internal/cluster/partitions/fragment.go:22
Struct
FragmentMigrationEvent
events/cluster_events.go:131
Struct
FragmentReceivedEvent
events/cluster_events.go:173
Struct
FutureDecr
FutureDecr is used to read the result of a pipelined Decr command.
pipeline.go:330
Struct
FutureDelete
FutureDelete is used to read the result of a pipelined Delete command.
pipeline.go:198
Struct
FutureExpire
FutureExpire is used to read the result of a pipelined Expire command.
pipeline.go:243
Struct
FutureGet
FutureGet is used to read result of a pipelined Get command.
pipeline.go:144
Struct
FutureGetPut
FutureGetPut is used to read the result of a pipelined GetPut command.
pipeline.go:375
Struct
FutureIncr
FutureIncr is used to read the result of a pipelined Incr command.
pipeline.go:285
Struct
FutureIncrByFloat
FutureIncrByFloat is used to read the result of a pipelined IncrByFloat command.
pipeline.go:441
Struct
FuturePut
FuturePut is used to read the result of a pipelined Put command.
pipeline.go:89
Struct
GenericCommands
internal/protocol/commands.go:42
Struct
Get
internal/protocol/dmap.go:215
Struct
GetEntry
internal/protocol/dmap.go:266
Struct
GetPut
internal/protocol/dmap.go:708
Struct
GetResponse
get_response.go:27
Struct
Handler
internal/server/handler.go:36
FuncType
HandlerFunc
The HandlerFunc type is an adapter to allow the use of ordinary functions as RESP handlers. If f is a function with the appropriate signature, Handler
internal/server/handler.go:34
Interface
Hasher
Hasher is responsible for generating unsigned, 64 bit hash of provided byte slice. Hasher should minimize collisions (generating same hash for differe
hasher/hasher.go:35
Interface
IConfig
IConfig is an interface that has to be implemented by Config and its nested structs. It provides a clear and granular way to sanitize and validate the
config/config.go:33
Struct
Incr
internal/protocol/dmap.go:635
Struct
IncrByFloat
internal/protocol/dmap.go:762
Struct
Int64Counter
Int64Counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on res
internal/stats/stats.go:21
Struct
Int64Gauge
Int64Gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
internal/stats/stats.go:47
Struct
InternalCommands
internal/protocol/commands.go:29
Interface
Iterator
Iterator defines an interface to implement iterators on the distributed maps.
client.go:45
Struct
KVStore
KVStore implements an in-memory storage engine.
internal/kvstore/kvstore.go:44
Struct
LengthOfPart
internal/protocol/system.go:118
Struct
ListenerWrapper
ListenerWrapper is a wrapper around net.Listener that supports setting a TCP keep-alive period for accepted connections.
internal/server/server.go:114
Struct
Loader
Loader is the main configuration struct
config/internal/loader/loader.go:130
Struct
Lock
internal/protocol/dmap.go:802
Interface
LockContext
LockContext interface defines methods to manage locks on distributed maps.
client.go:58
Struct
LockLease
internal/protocol/dmap.go:927
Struct
Locker
Locker provides a locking mechanism based on the passed in reference name
internal/locker/locker.go:26
Struct
Logger
* Derived from kubernetes/klog: * flog.V(1) - Generally useful for this to ALWAYS be visible to an operator * Programmer errors: * Logging e
pkg/flog/flog.go:56
Struct
Member
Member denotes a member of the Olric cluster.
client.go:29
Struct
Member
Member represents a node in the cluster.
internal/discovery/member.go:27
Struct
Member
Member denotes a cluster member.
stats/stats.go:89
Struct
Members
internal/cluster/routingtable/members.go:24
Struct
MockFragment
internal/testutil/mockfragment/mockfragment.go:33
Struct
MoveFragment
internal/protocol/system.go:61
Struct
MyType
internal/resp/encoder_test.go:13
Struct
Network
Network holds network statistics.
stats/stats.go:107
Struct
NodeJoinEvent
events/cluster_events.go:85
Struct
NodeLeftEvent
events/cluster_events.go:108
Struct
Olric
Olric implements a distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent s
olric.go:108
Struct
OlricServer
OlricServer represents an instance of the Olric distributed in-memory data structure store. It encapsulates logging, configuration, the Olric database
cmd/olric-server/server/server.go:33
next →
1–100 of 192, ranked by callers