MCPcopy Create free account

hub / github.com/ankur-anand/unisondb / functions

Functions3,181 in github.com/ankur-anand/unisondb

↓ 5 callersFunctionNewHashicorpLogWriter
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 callersMethodNewReaderWithStart
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 callersFunctionNewScopedMetricsTracker
NewScopedMetricsTracker creates a MetricsTracker using a provided tally.Scope.
pkg/kvdrivers/metrics.go:22
↓ 5 callersMethodPut
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 callersMethodRecord
(d time.Duration, err error)
bench/client/main.go:60
↓ 5 callersMethodRecordError
RecordError increments the error counter for a given operation (e.g., set, get, delete).
pkg/kvdrivers/metrics.go:60
↓ 5 callersMethodRemoteAddr
()
pkg/raftmux/conn.go:57
↓ 5 callersMethodReset
()
pkg/walfs/walog_test.go:2037
↓ 5 callersFunctionRestoreBTree
(backupPath, dataDir, namespace string)
internal/udbctl/restore/restore.go:47
↓ 5 callersFunctionSegmentIndexFileName
SegmentIndexFileName returns the file name of the index for a segment.
pkg/walfs/segment.go:1331
↓ 5 callersMethodSessionCount
()
pkg/raftmux/manager.go:415
↓ 5 callersMethodSnapshotIndexHolder
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 callersFunctionSplitIntoChunks
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 callersMethodStreamWAL
StreamWAL start the wal Streaming for the namespace from the upstream.
internal/services/streamer/grpc_streamer_client.go:64
↓ 5 callersMethodStreamWAL
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 callersMethodTruncateTo
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 callersMethodWillExceed
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 callersFunctionWithDirectorySyncer
WithDirectorySyncer overrides the directory syncer used for new segment files.
pkg/walfs/walog.go:123
↓ 5 callersMethodWritten
()
pkg/raftmux/conn_test.go:54
↓ 5 callersFunctionallocatePorts
(tb testing.TB, count int)
pkg/raftcluster/cluster_test.go:56
↓ 5 callersMethodclose
(ctx context.Context)
internal/services/streamer/blob_store_steamer.go:390
↓ 5 callersFunctioncreateTestPayload
(key, value []byte)
pkg/raftcluster/cluster_test.go:43
↓ 5 callersFunctionextractRequestID
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 callersFunctionfile_unisondb_streamer_v1_streamer_proto_rawDescGZIP
()
schemas/proto/gen/go/unisondb/streamer/v1/streamer.pb.go:317
↓ 5 callersMethodgetShard
getShard returns the shard for a given index using fast bitwise modulo.
pkg/walfs/sharded_index.go:45
↓ 5 callersMethodhandleMemberEvent
(me serf.MemberEvent, eventType MemberEvent, override *MemberStatus)
pkg/raftcluster/membership.go:208
↓ 5 callersFunctionhumanizeDuration
(d time.Duration)
dbkernel/utils.go:25
↓ 5 callersFunctionnewInternalMemoryPartitionLog
(t *testing.T)
internal/services/streamer/blob_store_steamer_internal_test.go:224
↓ 5 callersFunctionnewPartitionLogStoreFactory
(ctx context.Context, bucketURL, basePrefix string)
internal/services/streamer/blob_store_steamer.go:505
↓ 5 callersFunctionnewReaderTracker
newReaderTracker creates a new readerTracker with initialized shards.
pkg/walfs/util.go:32
↓ 5 callersMethodopenSegment
openSegment opens segment with the provided ID.
pkg/walfs/walog.go:251
↓ 5 callersMethodrecordOpResult
(op string, start time.Time, err error)
pkg/kvdrivers/bolt.go:339
↓ 5 callersFunctionsetupWalTest
(t *testing.T)
dbkernel/internal/wal/wal_bench_test.go:12
↓ 5 callersFunctionvarintSize
varintSize returns the number of bytes needed to encode v as a varint.
pkg/raftwalfs/varint.go:4
↓ 5 callersFunctionwriteTempFile
(t *testing.T, data []byte)
pkg/svcutils/certutils_test.go:54
↓ 5 callersFunctionwriterIDForNamespace
(namespace string)
internal/services/streamer/blob_store_steamer.go:437
↓ 4 callersMethodBackupBtree
BackupBtree writes a full snapshot of the B-Tree store to backupPath atomically.
dbkernel/engine_public.go:167
↓ 4 callersMethodBackupWalSegmentsAfter
BackupWalSegmentsAfter copies sealed WAL segments whose IDs are greater than afterID into backupDir.
dbkernel/engine_public.go:241
↓ 4 callersMethodBatchPutKV
(keys, values [][]byte)
pkg/kvdrivers/api.go:32
↓ 4 callersMethodBatchPutKV
(keys, values [][]byte)
internal/services/fuzzer/fuzz_engine.go:18
↓ 4 callersMethodClone
Clone returns a deep copy of the MemberInformation.
pkg/raftcluster/api.go:32
↓ 4 callersMethodCommittedPosition
CommittedPosition returns the current committed position. Returns NilRecordPosition if no position has been committed yet.
pkg/walfs/walog.go:397
↓ 4 callersFunctionDeserializeEventEntry
DeserializeEventEntry decodes a FlatBuffers EventEntry.
internal/logcodec/event_codec.go:36
↓ 4 callersFunctionFuzzEngineOps
FuzzEngineOps concurrently runs fuzzing operations against an Engine using multiple worker goroutines.
internal/services/fuzzer/fuzz_engine.go:192
↓ 4 callersMethodGet
(key []byte)
internal/benchtests/cmd/redis-server/main.go:28
↓ 4 callersMethodGetCells
(rowKey []byte, columns []string)
pkg/kvdrivers/suite_test.go:52
↓ 4 callersMethodGetLOBChunks
(key []byte)
pkg/kvdrivers/api.go:22
↓ 4 callersMethodGetLastRaftPosition
GetLastRaftPosition returns the last raft log index and term for this memtable.
dbkernel/internal/memtable/memtable.go:156
↓ 4 callersMethodGetLatestLSN
(ctx context.Context, in *GetLatestLSNRequest, opts ...grpc.CallOption)
schemas/proto/gen/go/unisondb/streamer/v1/streamer_grpc.pb.go:33
↓ 4 callersMethodGetLog
GetLog gets a log entry at a given index.
dbkernel/safe_gc_log_store.go:69
↓ 4 callersFunctionGetRequestInfo
GetRequestInfo extracts namespace, request ID, and method from the context.
internal/grpcutils/util.go:32
↓ 4 callersFunctionGetRootAsRowUpdateEntry
(buf []byte, offset flatbuffers.UOffsetT)
schemas/logrecord/RowUpdateEntry.go:13
↓ 4 callersFunctionGetScope
GetScope returns a scoped metrics collector for a specific package. nolint:ireturn
pkg/umetrics/global.go:79
↓ 4 callersMethodGetValue
GetValue returns the total count across all replicas.
cmd/examples/crdt-multi-dc/golang-crdt-client/crdt/g_counter.go:42
↓ 4 callersMethodHandleRPC
(ctx context.Context, rs stats.RPCStats)
internal/grpcutils/stats_handler.go:147
↓ 4 callersMethodInit
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/RowUpdateEntries.go:35
↓ 4 callersMethodInit
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/KeyValueBatchEntries.go:35
↓ 4 callersMethodIsInMemorySealed
IsInMemorySealed returns true if the segment has been marked as sealed in memory.
pkg/walfs/segment.go:637
↓ 4 callersMethodMutateLSN
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 callersFunctionNewFSMSnapshotStore
NewFSMSnapshotStore creates a new FSMSnapshotStore wrapping the given SnapshotStore.
dbkernel/fsm_snapshot_store.go:74
↓ 4 callersFunctionNewFormatter
NewFormatter creates a new formatter for the given format.
internal/udbctl/output/formatter.go:80
↓ 4 callersFunctionNewKeyPool
(size, minLen, maxLen int)
internal/services/fuzzer/fuzz_engine.go:36
↓ 4 callersFunctionNewMTLSCreds
NewMTLSCreds creates transport credentials for mutual TLS. nolint:ireturn
pkg/svcutils/certutil.go:25
↓ 4 callersFunctionNewRelayer
NewRelayer returns an initialized Relayer instance that uses gRPC streaming.
internal/services/relayer/relayer.go:173
↓ 4 callersMethodNext
()
dbkernel/internal/memtable/utils.go:15
↓ 4 callersFunctionParseSize
(sizeStr string)
internal/etc/parse.go:8
↓ 4 callersMethodPositionForIndexWithBounds
PositionForIndexWithBounds returns the RecordPosition for the given log index, returning typed errors for "not yet available" vs "truncated".
pkg/walfs/walog.go:1467
↓ 4 callersMethodPutColumnsForRows
(rowKeys [][]byte, columnEntriesPerRow []map[string][]byte)
dbkernel/engine_public.go:486
↓ 4 callersMethodRecordBatchOps
(op string, count int)
pkg/kvdrivers/metrics.go:66
↓ 4 callersMethodRecordOp
RecordOp logs operation count and latency.
pkg/kvdrivers/metrics.go:40
↓ 4 callersMethodRecoveredWALCount
RecoveredWALCount returns the number of WAL entries successfully recovered.
dbkernel/engine_public.go:81
↓ 4 callersMethodReset
()
internal/benchtests/serialization/kv.pb.go:453
↓ 4 callersFunctionRun
Run starts the UnisonDB server with the specified configuration.
cmd/unisondb/main.go:70
↓ 4 callersMethodSetup
(ctx context.Context, deps *Dependencies)
cmd/unisondb/cliapp/service_http.go:32
↓ 4 callersFunctionStartNLocalRelayer
StartNLocalRelayer launches multiple local relayers for a given engine.
internal/services/relayer/local.go:123
↓ 4 callersMethodString
()
internal/benchtests/serialization/kv.pb.go:460
↓ 4 callersFunctionWithCodec
WithCodec sets a custom codec for encoding/decoding log entries.
pkg/raftwalfs/log_store.go:25
↓ 4 callersFunctionWithDecoder
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 callersFunctionappendRaftLogRecord
(t *testing.T, engine *Engine, index uint64, record logcodec.LogRecord)
dbkernel/engine_raft_test.go:261
↓ 4 callersFunctionbuildNamespaceGrpcClients
(cfg config.Config)
cmd/unisondb/cliapp/server.go:408
↓ 4 callersFunctionbuildNamespaceLSNLagMap
(cfg *config.Config)
cmd/unisondb/cliapp/server.go:441
↓ 4 callersFunctionclampInt64
clampInt64 clamps a value between min and max.
cmd/unisondb/cliapp/helpers.go:11
↓ 4 callersFunctioncrc32Checksum
(header []byte, data []byte)
pkg/walfs/segment.go:1320
↓ 4 callersFunctioncreateEngine
(t *testing.T)
internal/services/streamer/grpc_streamer_test.go:81
↓ 4 callersFunctioncreateNamedEngine
(t *testing.T, namespace string)
internal/services/streamer/blob_store_streamer_test.go:366
↓ 4 callersMethodcurrentLSN
()
internal/services/streamer/blob_store_streamer_client.go:192
↓ 4 callersMethodfSyncStore
()
dbkernel/engine.go:993
↓ 4 callersFunctionflattenLabels
Flattens the key for formatting along with its labels, removes spaces.
internal/etc/memstat.go:57
↓ 4 callersMethodgetApplyTimeout
(cfg config.RaftConfig)
cmd/unisondb/cliapp/service_raft.go:437
↓ 4 callersFunctiongetConfigs
getConfigs returns the benchmark configurations
internal/benchtests/broadcast/bench/nonctxtimeout/bench_test.go:33
↓ 4 callersFunctiongetFormatter
(c *cli.Context)
cmd/udbctl/main.go:24
↓ 4 callersFunctiongrpcStreamType
(info *grpc.StreamServerInfo)
internal/grpcutils/util.go:103
↓ 4 callersMethodhandleReadyz
(w http.ResponseWriter, r *http.Request)
cmd/unisondb/cliapp/service_http.go:148
↓ 4 callersFunctioninitMonotonic
(ctx context.Context)
dbkernel/hlc.go:64
↓ 4 callersFunctionitoa
itoa returns the ASCII bytes for a positive int. Faster than fmt.Sprintf in tight loops.
pkg/kvdrivers/util_test.go:62
↓ 4 callersFunctionitoa
itoa returns the ASCII bytes for a positive int. Faster than fmt.Sprintf in tight loops.
internal/keycodec/keycodec_test.go:61
↓ 4 callersFunctionlogClamped
(field string, original, clamped T)
cmd/unisondb/cliapp/helpers.go:35
↓ 4 callersFunctionnewRecordingSyncer
()
pkg/walfs/walog_test.go:2020
↓ 4 callersFunctionnewTestCluster
(t *testing.T, namespace string, bootstrap bool)
cmd/unisondb/cliapp/service_http_test.go:273
↓ 4 callersFunctionnewWalCleanupPredicate
(checkpoint func() (*internal.Metadata, error))
dbkernel/engine.go:248
← previousnext →401–500 of 3,181, ranked by callers