Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kirov7/CouloyDB
/ functions
Functions
564 in github.com/Kirov7/CouloyDB
⨍
Functions
564
◇
Types & classes
103
↓ 3 callers
Method
skipToNext
()
iterator.go:56
↓ 3 callers
Method
unWatch
(watcher *Watcher)
watch.go:74
↓ 2 callers
Function
AddCommand
(cmds ...*cobra.Command)
cmd/root/root.go:18
↓ 2 callers
Method
Append
(key []byte, value []byte)
txn.go:577
↓ 2 callers
Method
CheckIsExist
CheckIsExist check the given key from db if exist
server/database/mutildb.go:157
↓ 2 callers
Method
Clear
()
server/database/datastruct/dict/dict.go:18
↓ 2 callers
Method
Close
(ctx context.Context)
server/server.go:72
↓ 2 callers
Function
DecodeByteSlices
(data []byte)
public/utils/bytex/bytex.go:48
↓ 2 callers
Method
Decr
(key []byte)
txn.go:510
↓ 2 callers
Function
EncodeByteSlices
(key, value []byte)
public/utils/bytex/bytex.go:35
↓ 2 callers
Method
Exist
(key string)
server/database/datastruct/dict/dict.go:19
↓ 2 callers
Method
GetTxId
()
txn.go:108
↓ 2 callers
Method
Group
()
server/sliceRouter.go:90
↓ 2 callers
Method
HExist
(key, field []byte)
txnHash.go:93
↓ 2 callers
Method
Incr
(key []byte)
txn.go:506
↓ 2 callers
Function
IsErrorReply
IsErrorReply returns true if the given reply is error
server/resp/reply/reply.go:139
↓ 2 callers
Method
IsExist
(key []byte)
db.go:220
↓ 2 callers
Method
MGet
(keys [][]byte)
txn.go:589
↓ 2 callers
Function
MakeNullBulkReply
MakeNullBulkReply creates a new NullBulkReply
server/resp/reply/consts.go:41
↓ 2 callers
Method
Members
()
public/utils/consistent/consistent.go:119
↓ 2 callers
Function
New
New creates a new Consistent object with a default setting of 20 replicas for each entry. To change the number of replicas, set NumberOfReplicas befo
public/utils/consistent/consistent.go:45
↓ 2 callers
Function
NewBTree
NewBTree Init BTree struct
meta/btree.go:15
↓ 2 callers
Function
NewSingleDB
NewSingleDB create single DB instance
server/database/mutildb.go:93
↓ 2 callers
Function
NewTailService
(c *TcpSliceRouterContext)
server/tail.go:8
↓ 2 callers
Function
NewTcpSliceRouter
()
server/sliceRouter.go:86
↓ 2 callers
Function
NewTcpSliceRouterHandler
(coreFunc func(*TcpSliceRouterContext) TCPHandler, router *TcpSliceRouter)
server/sliceRouter.go:79
↓ 2 callers
Function
OpenDataFile
OpenDataFile Open new datafile
data/dataFile.go:20
↓ 2 callers
Function
OpenHintFile
OpenHintFile Open new datafile
data/dataFile.go:26
↓ 2 callers
Function
OpenMergeFinishedFile
OpenMergeFinishedFile Open new datafile
data/dataFile.go:32
↓ 2 callers
Function
ParseStream
ParseStream reads data from io.Reader and send payloads through channel
server/resp/parser/parser.go:21
↓ 2 callers
Method
Pop
()
txn.go:644
↓ 2 callers
Method
Put
(key string, val []byte)
server/database/datastruct/dict/couloyDict.go:37
↓ 2 callers
Method
Put
(key string, val []byte)
server/database/datastruct/dict/dict.go:10
↓ 2 callers
Method
PutIfAbsent
(key string, val []byte)
server/database/datastruct/dict/dict.go:11
↓ 2 callers
Method
Read
Read By specifying the location data in a read the file
driver/ioManager.go:9
↓ 2 callers
Method
Removes
Removes the given keys from db
server/database/mutildb.go:167
↓ 2 callers
Function
RespMiddleware
parse Resp and use db exec the request if this node is not responsible for the request, then Forward the request(store the useful node in the context)
server/resp/handler.go:60
↓ 2 callers
Method
SMembers
(key []byte)
txnSet.go:92
↓ 2 callers
Method
ServeTCP
(ctx context.Context, conn net.Conn)
server/handler.go:13
↓ 2 callers
Method
SetEX
(key, value []byte)
txn.go:478
↓ 2 callers
Method
SetNX
(key, value []byte)
txn.go:465
↓ 2 callers
Function
SetupEngine
SetupEngine creates a RespHandler instance
server/resp/handler.go:31
↓ 2 callers
Method
Use
(middlewares ...TcpHandlerFunc)
server/sliceRouter.go:96
↓ 2 callers
Method
WaitWithTimeout
WaitWithTimeout blocks until the WaitGroup counter is zero or timeout returns true if timeout
public/utils/wait/wait.go:36
↓ 2 callers
Method
add
(job *ds.Job)
ttl.go:29
↓ 2 callers
Method
add
need c.Lock() before calling
public/utils/consistent/consistent.go:67
↓ 2 callers
Method
begin
begin
txn.go:250
↓ 2 callers
Method
broadcast
broadcast broadcasts command to all node in cluster
server/database/clusterdb.go:169
↓ 2 callers
Method
closeConn
(conn *net.Conn)
server/resp/handler.go:40
↓ 2 callers
Method
commit
Check for conflicts and finally perform a commit or rollback
txn.go:267
↓ 2 callers
Function
compareSlices
compareSlices checks if two slices of byte slices (a and b)have the same elements, regardless of order. It returns true if they have the same element
txnSet_test.go:422
↓ 2 callers
Function
decodeFieldKey
(key []byte)
txnHash.go:249
↓ 2 callers
Function
decodeListMeta
(listMeta []byte)
txnList.go:284
↓ 2 callers
Function
decodeMemberKey
(data []byte)
txnSet.go:159
↓ 2 callers
Method
eltKey
eltKey generates a string key for an element with an index.
public/utils/consistent/consistent.go:54
↓ 2 callers
Function
encodeFieldKey
(key, field []byte)
txnHash.go:245
↓ 2 callers
Function
encodeListMeta
(headSeq, tailSeq *big.Float)
txnList.go:270
↓ 2 callers
Method
finishRequest
(reply reply.Reply)
server/resp/client/client.go:174
↓ 2 callers
Method
getListMeta
(key []byte)
txnList.go:69
↓ 2 callers
Method
getLogRecordByPos
func (db DB) loadTxFile() error { fileName := filepath.Join(db.options.DirPath, public.TxIDFileName) if _, err := os.Stat(fileName); os.IsNotExist(e
db.go:676
↓ 2 callers
Method
getMergePath
create a new directory
merge.go:174
↓ 2 callers
Method
getNonMergeFileId
(dirPath string)
merge.go:240
↓ 2 callers
Method
handleRead
()
server/resp/client/client.go:191
↓ 2 callers
Function
newTxn
(readOnly bool, db *DB, isolationLevel IsolationLevel)
txn.go:185
↓ 2 callers
Method
pop
(key []byte, isLeft bool)
txnList.go:162
↓ 2 callers
Method
push
(key []byte, values [][]byte, isLeft bool)
txnList.go:92
↓ 2 callers
Method
put
(key, value []byte, duration time.Duration)
db.go:125
↓ 2 callers
Method
readNBytes
(n int64, offset int64)
data/dataFile.go:147
↓ 2 callers
Method
remove
need c.Lock() before calling
public/utils/consistent/consistent.go:84
↓ 2 callers
Method
setHashIndex
(key string, memTable meta.MemTable)
index.go:33
↓ 2 callers
Method
setListDataIndex
(key string, memTable meta.MemTable)
index.go:48
↓ 2 callers
Method
start
()
ttl.go:50
↓ 2 callers
Method
stop
()
ttl.go:62
↓ 2 callers
Method
unlock
()
txn.go:630
↓ 2 callers
Method
updateSortedHashes
()
public/utils/consistent/consistent.go:251
↓ 2 callers
Function
validateArity
(arity int, cmdArgs [][]byte)
server/database/mutildb.go:119
↓ 2 callers
Method
watch
(ctx context.Context, key string)
watch.go:50
↓ 1 callers
Method
Close
()
db.go:295
↓ 1 callers
Method
Close
()
server/conn.go:44
↓ 1 callers
Function
CompilePattern
CompilePattern convert wildcard string to Pattern
public/utils/wildcard/wildcard.go:52
↓ 1 callers
Function
DecodeLogRecordHeader
(buf []byte)
data/logRecord.go:86
↓ 1 callers
Function
DecodeLogRecordPos
(buf []byte)
data/logRecord.go:125
↓ 1 callers
Method
DecrBy
(key []byte, delta int)
txn.go:518
↓ 1 callers
Function
EncodeLogRecordPos
EncodeLogRecordPos encode the pos info
data/logRecord.go:117
↓ 1 callers
Function
Execute
()
cmd/root/root.go:14
↓ 1 callers
Method
Exist
(key []byte)
txn.go:562
↓ 1 callers
Method
Flush
Flush clean database
server/database/mutildb.go:179
↓ 1 callers
Method
Get
(key []byte)
db.go:164
↓ 1 callers
Method
Get
(key string)
public/ds/timeHeap.go:36
↓ 1 callers
Method
GetClientConn
()
server/sliceRouter.go:40
↓ 1 callers
Method
GetConn
()
server/sliceRouter.go:36
↓ 1 callers
Function
GetDataFileName
OpenTxIDFile Open new datafile func OpenTxIDFile(dirPath string) (*DataFile, error) { fileName := filepath.Join(dirPath, public.TxIDFileName) return
data/dataFile.go:43
↓ 1 callers
Function
GetLogRecordCRC
(lr *LogRecord, header []byte)
data/logRecord.go:136
↓ 1 callers
Method
GetSelectedDB
()
server/conn.go:72
↓ 1 callers
Method
GetSet
(key, value []byte)
txn.go:486
↓ 1 callers
Method
GetTxId
()
db.go:712
↓ 1 callers
Method
HMGet
(key []byte, fields [][]byte)
txnHash.go:143
↓ 1 callers
Method
HMSet
(key []byte, args [][]byte)
txnHash.go:161
↓ 1 callers
Method
HStrLen
(key, field []byte)
txnHash.go:229
↓ 1 callers
Method
HashKey
(key string)
public/utils/consistent/consistent.go:224
← previous
next →
101–200 of 564, ranked by callers