Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WuKongIM/WuKongIM
/ functions
Functions
6,002 in github.com/WuKongIM/WuKongIM
⨍
Functions
6,002
◇
Types & classes
807
↓ 1,721 callers
Method
Error
(msg string, fields ...zap.Field)
pkg/wklog/logger.go:254
↓ 408 callers
Method
String
()
internal/types/tag.go:24
↓ 386 callers
Method
ResponseError
ResponseError ResponseError
pkg/wkhttp/http.go:79
↓ 350 callers
Method
Equal
func (s *SlotMigrate) Equal(v *SlotMigrate) bool { if s.From != v.From { return false } if s.To != v.To { return false } if s.Slot != v.Slot
pkg/cluster/node/types/config.go:60
↓ 346 callers
Method
Equal
(cfg ChannelClusterConfig)
pkg/wkdb/model.go:516
↓ 343 callers
Method
Close
()
pkg/wkdb/db.go:5
↓ 310 callers
Method
Add
(p Position)
pkg/raft/track/track.go:45
↓ 224 callers
Method
Unlock
()
pkg/raft/raftgroup/raft.go:33
↓ 211 callers
Method
Lock
Lock 锁
pkg/raft/raftgroup/raft.go:32
↓ 204 callers
Method
Set
(key, value []byte)
pkg/wkdb/wukongdb.go:514
↓ 180 callers
Method
Equal
(cn *Conn)
internal/eventbus/conn.go:134
↓ 177 callers
Method
Info
(msg string, fields ...zap.Field)
pkg/wklog/logger.go:250
↓ 152 callers
Function
NewInt64ObservableCounter
(name string)
pkg/trace/common.go:21
↓ 146 callers
Method
Debug
(msg string, fields ...zap.Field)
pkg/wklog/logger.go:253
↓ 132 callers
Method
Write
Write writes the data to the connection. TODO: Locking is required when calling write externally
pkg/wknet/conn.go:72
↓ 130 callers
Method
Value
Value returns the value associated with key.
pkg/wknet/conn.go:60
↓ 130 callers
Function
newTestNode
==================== Test Helpers ==================== newTestNode creates a Node with sensible defaults for testing. ElectionOn=false, ElectionInterv
pkg/raft/raft/node_test.go:14
↓ 128 callers
Method
Uint8
()
internal/eventbus/event.go:75
↓ 125 callers
Method
String
()
pkg/cluster/store/model.go:112
↓ 118 callers
Method
Bytes
Bytes returns all available read bytes. It does not move the read pointer and only copy the available data.
pkg/ring/ring_buffer.go:406
↓ 118 callers
Method
Warn
(msg string, fields ...zap.Field)
pkg/wklog/logger.go:255
↓ 115 callers
Function
NewWKLog
NewWKLog NewWKLog
pkg/wklog/logger.go:267
↓ 111 callers
Method
Run
Run Run
pkg/wkhttp/http.go:186
↓ 105 callers
Method
Get
删除频道分布式配置 Delete(channelId string, channelType uint8) error 获取分布式配置
pkg/cluster/cluster/model.go:767
↓ 104 callers
Method
Done
Done checks and returns the internal ring-buffer to pool.
pkg/wknet/ring_buffer.go:24
↓ 99 callers
Method
WithTimeout
()
internal/channel/handler/base.go:126
↓ 95 callers
Method
Step
Step 处理事件
pkg/raft/raftgroup/raft.go:13
↓ 94 callers
Method
Open
()
pkg/wkdb/db.go:4
↓ 94 callers
Method
String
()
pkg/wknet/conn.go:826
↓ 90 callers
Method
Key
Key 获取当前节点的key
pkg/raft/raftgroup/raft.go:7
↓ 88 callers
Method
WriteString
WriteString writes the contents of the string s to buffer, which accepts a slice of bytes.
pkg/ring/ring_buffer.go:401
↓ 85 callers
Method
WriteErr
(err error)
pkg/wkserver/model.go:95
↓ 82 callers
Function
newTestDB
(t testing.TB)
pkg/wkdb/common_test.go:11
↓ 68 callers
Method
String
()
pkg/raft/raftgroup/wait.go:186
↓ 67 callers
Function
collectEvents
collectEvents calls Ready() and returns all pending events.
pkg/raft/raft/node_test.go:27
↓ 65 callers
Method
Unmarshal
(data []byte)
pkg/wkdb/model.go:807
↓ 63 callers
Function
makeFollower
makeFollower transitions node to follower and clears initial events.
pkg/raft/raft/node_test.go:69
↓ 62 callers
Function
HashWithString
(s string)
pkg/wkdb/key/key.go:150
↓ 62 callers
Method
Len
()
pkg/wkutil/fifo.go:31
↓ 61 callers
Function
ToJSON
ToJSON 将对象转换为JSON
pkg/wkutil/common.go:45
↓ 60 callers
Method
POST
POST POST
pkg/wkhttp/http.go:191
↓ 59 callers
Method
DB
DB 数据库监控
pkg/trace/metrics.go:28
↓ 58 callers
Method
Panic
(msg string, fields ...zap.Field)
pkg/wklog/logger.go:257
↓ 57 callers
Method
Uint8
()
pkg/raft/types/types.go:27
↓ 57 callers
Method
WriteString
WriteString writes the contents of the string s to buffer, which accepts a slice of bytes.
pkg/wknet/ring_buffer.go:138
↓ 55 callers
Method
Buffered
Buffered returns the length of available bytes to read.
pkg/ring/ring_buffer.go:359
↓ 53 callers
Method
Read
Read reads the data from the connection.
pkg/wknet/conn.go:66
↓ 52 callers
Method
GET
GET GET
pkg/wkhttp/http.go:196
↓ 50 callers
Method
getInt
(key string, defaultValue int)
internal/options/options.go:1352
↓ 49 callers
Method
ResponseOK
ResponseOK 返回正确
pkg/wkhttp/http.go:94
↓ 48 callers
Function
NewInt64ObservableGauge
(name string)
pkg/trace/common.go:46
↓ 47 callers
Method
Available
Available returns the length of available bytes to write.
pkg/ring/ring_buffer.go:385
↓ 46 callers
Method
Encode
(data []byte, msgType MsgType)
pkg/wkserver/proto/protocol.go:79
↓ 46 callers
Method
ForwardWithBody
(url string, req *pluginproto.HttpRequest)
internal/plugin/rpc_plugin.go:253
↓ 46 callers
Method
Marshal
()
internal/types/pluginproto/plugin.go:162
↓ 46 callers
Method
getString
(key string, defaultValue string)
internal/options/options.go:1332
↓ 46 callers
Function
printError
printError prints an error message with a red cross.
cmd/wkcli/http.go:88
↓ 45 callers
Method
Any
Any Any
pkg/wkhttp/http.go:206
↓ 44 callers
Method
NewBatch
()
pkg/wkdb/wukongdb.go:396
↓ 43 callers
Method
Delete
(key []byte)
pkg/wkdb/wukongdb.go:525
↓ 43 callers
Method
defaultShardDB
()
pkg/wkdb/wukongdb.go:219
↓ 41 callers
Method
First
()
pkg/cluster/cluster/model.go:1604
↓ 41 callers
Method
IsLocalNode
是本节点
internal/options/options.go:1513
↓ 41 callers
Method
Next
(prev time.Time)
pkg/wknet/engine.go:150
↓ 39 callers
Function
BoolToInt
BoolToInt bool值转换为int值
pkg/wkutil/common.go:15
↓ 39 callers
Method
Marshal
()
pkg/cluster/store/model.go:221
↓ 39 callers
Function
NewChannelInfoSecondIndexKey
(indexName [2]byte, columnValue uint64, id uint64)
pkg/wkdb/key/key.go:451
↓ 39 callers
Method
Uint8
()
pkg/wkserver/proto/protocol.go:52
↓ 39 callers
Method
Unmarshal
(data []byte)
internal/types/pluginproto/plugin.go:166
↓ 39 callers
Method
channelDb
func (wk *wukongDB) AppendMessagesByLogs(reqs []reactor.AppendLogReq) { batchMap := make(map[uint32]*Batch) newBatchs := make([]*Batch, 0, len(reqs)
pkg/wkdb/message.go:116
↓ 39 callers
Function
findEvent
findEvent returns the first event of the given type and true, or zero-value and false.
pkg/raft/raft/node_test.go:37
↓ 36 callers
Function
BindJSON
(obj any, c *wkhttp.Context)
internal/api/channel.go:1125
↓ 36 callers
Method
SlotLeaderOfChannel
SlotLeaderOfChannel 获取频道的槽领导
pkg/cluster/icluster/cluster.go:41
↓ 35 callers
Function
ReadJSONByByte
ReadJSONByByte 读取JSON
pkg/wkutil/common.go:62
↓ 35 callers
Method
formatPath
(path string)
pkg/cluster/cluster/server_api.go:69
↓ 34 callers
Method
Cluster
Cluster 分布式监控
pkg/trace/metrics.go:26
↓ 34 callers
Method
Commit
()
pkg/wkdb/wukongdb.go:539
↓ 34 callers
Method
GetSlotId
GetSlotId 获取槽ID
pkg/cluster/icluster/slot.go:13
↓ 34 callers
Method
IsEmpty
IsEmpty returns true if the buffer is empty.
pkg/wknet/buffer.go:5
↓ 34 callers
Method
Node
(id uint64)
pkg/cluster/node/clusterconfig/server.go:227
↓ 34 callers
Function
makeLeader
makeLeader transitions node to leader and clears initial events.
pkg/raft/raft/node_test.go:63
↓ 33 callers
Method
Close
Close closes the connection.
pkg/wknet/conn.go:82
↓ 33 callers
Function
RegisterCallback
(f metric.Callback, instruments ...metric.Observable)
pkg/trace/common.go:54
↓ 33 callers
Method
Remove
(i int)
internal/manager/in_flight_pqueue.go:47
↓ 33 callers
Function
file_internal_types_pluginproto_plugin_proto_rawDescGZIP
()
internal/types/pluginproto/plugin.pb.go:2502
↓ 32 callers
Method
Peek
Peek peeks the data from the connection.
pkg/wknet/conn.go:68
↓ 32 callers
Method
ProposeUntilApplied
ProposeUntilApplied 提交数据直到应用
pkg/cluster/icluster/slot.go:17
↓ 32 callers
Method
get
(path: string, config?: RequestConfig)
web/src/services/APIClient.ts:64
↓ 31 callers
Function
ArrayContainsUint64
(items []uint64, target uint64)
pkg/wkutil/arrays.go:28
↓ 31 callers
Method
LastLogIndex
LastLogIndex 获取最后一个日志的索引
pkg/raft/raftgroup/raft.go:21
↓ 31 callers
Function
clearEvents
clearEvents drains all events from the node.
pkg/raft/raft/node_test.go:32
↓ 30 callers
Method
AddOrUpdateConversationsWithUser
AddOrUpdateConversationsWithUser 添加或更新最近会话
pkg/wkdb/db.go:261
↓ 30 callers
Function
WithElectionOn
(electionOn bool)
pkg/raft/raft/options.go:111
↓ 29 callers
Method
Fatal
(msg string, fields ...zap.Field)
pkg/wklog/logger.go:256
↓ 29 callers
Method
append
(incomingLogs ...types.Log)
pkg/raft/raft/queue.go:36
↓ 29 callers
Function
checkResponse
checkResponse checks if the HTTP response indicates success.
cmd/wkcli/http.go:157
↓ 29 callers
Method
requestAndFillClusterMetrics
(label string, rg v1.Range, rate bool, resps *[]*clusterMetricsResp)
pkg/trace/metrics_default.go:315
↓ 28 callers
Method
Foucs
(msg string, fields ...zap.Field)
pkg/wklog/logger.go:258
↓ 28 callers
Function
NewCMD
(cmdType CMDType, data []byte)
pkg/cluster/store/model.go:206
↓ 28 callers
Function
printInfo
printInfo prints an info line with indentation.
cmd/wkcli/http.go:93
next →
1–100 of 6,002, ranked by callers