Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ankur-anand/unisondb
/ functions
Functions
3,181 in github.com/ankur-anand/unisondb
⨍
Functions
3,181
◇
Types & classes
414
↓ 5 callers
Function
NewHashicorpLogWriter
NewHashicorpLogWriter returns an io.Writer that parses hashicorp-style log output and forwards it to the given slog.Logger at the appropriate level. T
pkg/raftcluster/hc_slog.go:14
↓ 5 callers
Method
NewReaderWithStart
NewReaderWithStart return a reader that reads from provided offset, until EOF is encountered. It returns io.EOF when it reaches end of file. In Raft m
dbkernel/engine_public.go:711
↓ 5 callers
Function
NewScopedMetricsTracker
NewScopedMetricsTracker creates a MetricsTracker using a provided tally.Scope.
pkg/kvdrivers/metrics.go:22
↓ 5 callers
Method
Put
Put the Key and its Value at the given offset in the mem-table. for rowKey Put It uses MVCC as there can be multiple update ops for different columns
dbkernel/internal/memtable/memtable.go:97
↓ 5 callers
Method
Record
(d time.Duration, err error)
bench/client/main.go:60
↓ 5 callers
Method
RecordError
RecordError increments the error counter for a given operation (e.g., set, get, delete).
pkg/kvdrivers/metrics.go:60
↓ 5 callers
Method
RemoteAddr
()
pkg/raftmux/conn.go:57
↓ 5 callers
Method
Reset
()
pkg/walfs/walog_test.go:2037
↓ 5 callers
Function
RestoreBTree
(backupPath, dataDir, namespace string)
internal/udbctl/restore/restore.go:47
↓ 5 callers
Function
SegmentIndexFileName
SegmentIndexFileName returns the file name of the index for a segment.
pkg/walfs/segment.go:1331
↓ 5 callers
Method
SessionCount
()
pkg/raftmux/manager.go:415
↓ 5 callers
Method
SnapshotIndexHolder
SnapshotIndexHolder returns the FlushedIndexHolder used for communicating the flushed index to FSMSnapshotStore. This ensures that Raft's snapshot met
dbkernel/engine_raft.go:431
↓ 5 callers
Function
SplitIntoChunks
SplitIntoChunks chunks the provided data into 1MB, chunks. If the data size is less than 1 MB, it returns the original data without chunking. else ret
pkg/splitter/chunk.go:19
↓ 5 callers
Method
StreamWAL
StreamWAL start the wal Streaming for the namespace from the upstream.
internal/services/streamer/grpc_streamer_client.go:64
↓ 5 callers
Method
StreamWAL
StreamWAL periodically checks the partitionlog head, reads newly committed WAL records, and applies them via the configured WalIO.
internal/services/streamer/blob_store_streamer_client.go:81
↓ 5 callers
Method
TruncateTo
TruncateTo truncates the segment to the specified log index. All entries after the given log index will be discarded. If the log index is not found in
pkg/walfs/segment.go:1338
↓ 5 callers
Method
WillExceed
WillExceed returns true if writing a record of the given dataSize would overflow the segment's allocated (memory-mapped) size.
pkg/walfs/segment.go:1056
↓ 5 callers
Function
WithDirectorySyncer
WithDirectorySyncer overrides the directory syncer used for new segment files.
pkg/walfs/walog.go:123
↓ 5 callers
Method
Written
()
pkg/raftmux/conn_test.go:54
↓ 5 callers
Function
allocatePorts
(tb testing.TB, count int)
pkg/raftcluster/cluster_test.go:56
↓ 5 callers
Method
close
(ctx context.Context)
internal/services/streamer/blob_store_steamer.go:390
↓ 5 callers
Function
createTestPayload
(key, value []byte)
pkg/raftcluster/cluster_test.go:43
↓ 5 callers
Function
extractRequestID
extractRequestID retrieves x-request-id or x-trace-id from gRPC metadata. If not present, it generates a new one.
internal/grpcutils/util.go:71
↓ 5 callers
Function
file_unisondb_streamer_v1_streamer_proto_rawDescGZIP
()
schemas/proto/gen/go/unisondb/streamer/v1/streamer.pb.go:317
↓ 5 callers
Method
getShard
getShard returns the shard for a given index using fast bitwise modulo.
pkg/walfs/sharded_index.go:45
↓ 5 callers
Method
handleMemberEvent
(me serf.MemberEvent, eventType MemberEvent, override *MemberStatus)
pkg/raftcluster/membership.go:208
↓ 5 callers
Function
humanizeDuration
(d time.Duration)
dbkernel/utils.go:25
↓ 5 callers
Function
newInternalMemoryPartitionLog
(t *testing.T)
internal/services/streamer/blob_store_steamer_internal_test.go:224
↓ 5 callers
Function
newPartitionLogStoreFactory
(ctx context.Context, bucketURL, basePrefix string)
internal/services/streamer/blob_store_steamer.go:505
↓ 5 callers
Function
newReaderTracker
newReaderTracker creates a new readerTracker with initialized shards.
pkg/walfs/util.go:32
↓ 5 callers
Method
openSegment
openSegment opens segment with the provided ID.
pkg/walfs/walog.go:251
↓ 5 callers
Method
recordOpResult
(op string, start time.Time, err error)
pkg/kvdrivers/bolt.go:339
↓ 5 callers
Function
setupWalTest
(t *testing.T)
dbkernel/internal/wal/wal_bench_test.go:12
↓ 5 callers
Function
varintSize
varintSize returns the number of bytes needed to encode v as a varint.
pkg/raftwalfs/varint.go:4
↓ 5 callers
Function
writeTempFile
(t *testing.T, data []byte)
pkg/svcutils/certutils_test.go:54
↓ 5 callers
Function
writerIDForNamespace
(namespace string)
internal/services/streamer/blob_store_steamer.go:437
↓ 4 callers
Method
BackupBtree
BackupBtree writes a full snapshot of the B-Tree store to backupPath atomically.
dbkernel/engine_public.go:167
↓ 4 callers
Method
BackupWalSegmentsAfter
BackupWalSegmentsAfter copies sealed WAL segments whose IDs are greater than afterID into backupDir.
dbkernel/engine_public.go:241
↓ 4 callers
Method
BatchPutKV
(keys, values [][]byte)
pkg/kvdrivers/api.go:32
↓ 4 callers
Method
BatchPutKV
(keys, values [][]byte)
internal/services/fuzzer/fuzz_engine.go:18
↓ 4 callers
Method
Clone
Clone returns a deep copy of the MemberInformation.
pkg/raftcluster/api.go:32
↓ 4 callers
Method
CommittedPosition
CommittedPosition returns the current committed position. Returns NilRecordPosition if no position has been committed yet.
pkg/walfs/walog.go:397
↓ 4 callers
Function
DeserializeEventEntry
DeserializeEventEntry decodes a FlatBuffers EventEntry.
internal/logcodec/event_codec.go:36
↓ 4 callers
Function
FuzzEngineOps
FuzzEngineOps concurrently runs fuzzing operations against an Engine using multiple worker goroutines.
internal/services/fuzzer/fuzz_engine.go:192
↓ 4 callers
Method
Get
(key []byte)
internal/benchtests/cmd/redis-server/main.go:28
↓ 4 callers
Method
GetCells
(rowKey []byte, columns []string)
pkg/kvdrivers/suite_test.go:52
↓ 4 callers
Method
GetLOBChunks
(key []byte)
pkg/kvdrivers/api.go:22
↓ 4 callers
Method
GetLastRaftPosition
GetLastRaftPosition returns the last raft log index and term for this memtable.
dbkernel/internal/memtable/memtable.go:156
↓ 4 callers
Method
GetLatestLSN
(ctx context.Context, in *GetLatestLSNRequest, opts ...grpc.CallOption)
schemas/proto/gen/go/unisondb/streamer/v1/streamer_grpc.pb.go:33
↓ 4 callers
Method
GetLog
GetLog gets a log entry at a given index.
dbkernel/safe_gc_log_store.go:69
↓ 4 callers
Function
GetRequestInfo
GetRequestInfo extracts namespace, request ID, and method from the context.
internal/grpcutils/util.go:32
↓ 4 callers
Function
GetRootAsRowUpdateEntry
(buf []byte, offset flatbuffers.UOffsetT)
schemas/logrecord/RowUpdateEntry.go:13
↓ 4 callers
Function
GetScope
GetScope returns a scoped metrics collector for a specific package. nolint:ireturn
pkg/umetrics/global.go:79
↓ 4 callers
Method
GetValue
GetValue returns the total count across all replicas.
cmd/examples/crdt-multi-dc/golang-crdt-client/crdt/g_counter.go:42
↓ 4 callers
Method
HandleRPC
(ctx context.Context, rs stats.RPCStats)
internal/grpcutils/stats_handler.go:147
↓ 4 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/RowUpdateEntries.go:35
↓ 4 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/KeyValueBatchEntries.go:35
↓ 4 callers
Method
IsInMemorySealed
IsInMemorySealed returns true if the segment has been marked as sealed in memory.
pkg/walfs/segment.go:637
↓ 4 callers
Method
MutateLSN
MutateLSN updates the LSN field in a LogRecord FlatBuffer. The mutation is done in-place without allocating new memory. Note: FlatBuffers doesn't sto
pkg/raftwalfs/data_mutator.go:31
↓ 4 callers
Function
NewFSMSnapshotStore
NewFSMSnapshotStore creates a new FSMSnapshotStore wrapping the given SnapshotStore.
dbkernel/fsm_snapshot_store.go:74
↓ 4 callers
Function
NewFormatter
NewFormatter creates a new formatter for the given format.
internal/udbctl/output/formatter.go:80
↓ 4 callers
Function
NewKeyPool
(size, minLen, maxLen int)
internal/services/fuzzer/fuzz_engine.go:36
↓ 4 callers
Function
NewMTLSCreds
NewMTLSCreds creates transport credentials for mutual TLS. nolint:ireturn
pkg/svcutils/certutil.go:25
↓ 4 callers
Function
NewRelayer
NewRelayer returns an initialized Relayer instance that uses gRPC streaming.
internal/services/relayer/relayer.go:173
↓ 4 callers
Method
Next
()
dbkernel/internal/memtable/utils.go:15
↓ 4 callers
Function
ParseSize
(sizeStr string)
internal/etc/parse.go:8
↓ 4 callers
Method
PositionForIndexWithBounds
PositionForIndexWithBounds returns the RecordPosition for the given log index, returning typed errors for "not yet available" vs "truncated".
pkg/walfs/walog.go:1467
↓ 4 callers
Method
PutColumnsForRows
(rowKeys [][]byte, columnEntriesPerRow []map[string][]byte)
dbkernel/engine_public.go:486
↓ 4 callers
Method
RecordBatchOps
(op string, count int)
pkg/kvdrivers/metrics.go:66
↓ 4 callers
Method
RecordOp
RecordOp logs operation count and latency.
pkg/kvdrivers/metrics.go:40
↓ 4 callers
Method
RecoveredWALCount
RecoveredWALCount returns the number of WAL entries successfully recovered.
dbkernel/engine_public.go:81
↓ 4 callers
Method
Reset
()
internal/benchtests/serialization/kv.pb.go:453
↓ 4 callers
Function
Run
Run starts the UnisonDB server with the specified configuration.
cmd/unisondb/main.go:70
↓ 4 callers
Method
Setup
(ctx context.Context, deps *Dependencies)
cmd/unisondb/cliapp/service_http.go:32
↓ 4 callers
Function
StartNLocalRelayer
StartNLocalRelayer launches multiple local relayers for a given engine.
internal/services/relayer/local.go:123
↓ 4 callers
Method
String
()
internal/benchtests/serialization/kv.pb.go:460
↓ 4 callers
Function
WithCodec
WithCodec sets a custom codec for encoding/decoding log entries.
pkg/raftwalfs/log_store.go:25
↓ 4 callers
Function
WithDecoder
WithDecoder sets a custom decoder for the reader. When set, NextRecord() will use this decoder to convert raw bytes to decoded data.
pkg/walfs/walog.go:1258
↓ 4 callers
Function
appendRaftLogRecord
(t *testing.T, engine *Engine, index uint64, record logcodec.LogRecord)
dbkernel/engine_raft_test.go:261
↓ 4 callers
Function
buildNamespaceGrpcClients
(cfg config.Config)
cmd/unisondb/cliapp/server.go:408
↓ 4 callers
Function
buildNamespaceLSNLagMap
(cfg *config.Config)
cmd/unisondb/cliapp/server.go:441
↓ 4 callers
Function
clampInt64
clampInt64 clamps a value between min and max.
cmd/unisondb/cliapp/helpers.go:11
↓ 4 callers
Function
crc32Checksum
(header []byte, data []byte)
pkg/walfs/segment.go:1320
↓ 4 callers
Function
createEngine
(t *testing.T)
internal/services/streamer/grpc_streamer_test.go:81
↓ 4 callers
Function
createNamedEngine
(t *testing.T, namespace string)
internal/services/streamer/blob_store_streamer_test.go:366
↓ 4 callers
Method
currentLSN
()
internal/services/streamer/blob_store_streamer_client.go:192
↓ 4 callers
Method
fSyncStore
()
dbkernel/engine.go:993
↓ 4 callers
Function
flattenLabels
Flattens the key for formatting along with its labels, removes spaces.
internal/etc/memstat.go:57
↓ 4 callers
Method
getApplyTimeout
(cfg config.RaftConfig)
cmd/unisondb/cliapp/service_raft.go:437
↓ 4 callers
Function
getConfigs
getConfigs returns the benchmark configurations
internal/benchtests/broadcast/bench/nonctxtimeout/bench_test.go:33
↓ 4 callers
Function
getFormatter
(c *cli.Context)
cmd/udbctl/main.go:24
↓ 4 callers
Function
grpcStreamType
(info *grpc.StreamServerInfo)
internal/grpcutils/util.go:103
↓ 4 callers
Method
handleReadyz
(w http.ResponseWriter, r *http.Request)
cmd/unisondb/cliapp/service_http.go:148
↓ 4 callers
Function
initMonotonic
(ctx context.Context)
dbkernel/hlc.go:64
↓ 4 callers
Function
itoa
itoa returns the ASCII bytes for a positive int. Faster than fmt.Sprintf in tight loops.
pkg/kvdrivers/util_test.go:62
↓ 4 callers
Function
itoa
itoa returns the ASCII bytes for a positive int. Faster than fmt.Sprintf in tight loops.
internal/keycodec/keycodec_test.go:61
↓ 4 callers
Function
logClamped
(field string, original, clamped T)
cmd/unisondb/cliapp/helpers.go:35
↓ 4 callers
Function
newRecordingSyncer
()
pkg/walfs/walog_test.go:2020
↓ 4 callers
Function
newTestCluster
(t *testing.T, namespace string, bootstrap bool)
cmd/unisondb/cliapp/service_http_test.go:273
↓ 4 callers
Function
newWalCleanupPredicate
(checkpoint func() (*internal.Metadata, error))
dbkernel/engine.go:248
← previous
next →
401–500 of 3,181, ranked by callers