Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/openclaw/wacli
/ functions
Functions
1,829 in github.com/openclaw/wacli
⨍
Functions
1,829
◇
Types & classes
226
↓ 577 callers
Method
Errorf
(msg string, args ...interface{})
internal/wa/logger.go:46
↓ 174 callers
Method
Close
()
internal/app/app.go:26
↓ 111 callers
Method
UpsertChat
(jid, kind, name string, lastTS time.Time)
cmd/wacli/channels.go:291
↓ 105 callers
Method
DB
()
cmd/wacli/send.go:197
↓ 97 callers
Function
WriteJSON
(w io.Writer, data interface{})
internal/out/out.go:15
↓ 95 callers
Function
newTestApp
(t *testing.T)
internal/app/app_test.go:240
↓ 88 callers
Function
newFakeWA
()
internal/app/fake_wa_test.go:118
↓ 83 callers
Method
UpsertMessage
(p UpsertMessageParams)
internal/store/messages.go:55
↓ 83 callers
Method
WA
()
cmd/wacli/send.go:196
↓ 78 callers
Function
openTestDB
(t *testing.T)
internal/store/store_test.go:9
↓ 74 callers
Function
closeApp
(a *app.App, lk *lock.Lock)
cmd/wacli/root.go:195
↓ 69 callers
Method
GetMessage
(chatJID, msgID string)
internal/store/messages.go:297
↓ 67 callers
Function
newApp
(ctx context.Context, flags *rootFlags, needLock bool, allowUnauthed bool)
cmd/wacli/root.go:95
↓ 64 callers
Function
withTimeout
(ctx context.Context, flags *rootFlags)
cmd/wacli/root.go:188
↓ 62 callers
Function
sanitize
(s string)
cmd/wacli/helpers.go:35
↓ 62 callers
Function
storeCtx
()
internal/store/types.go:230
↓ 56 callers
Method
requireWritable
()
cmd/wacli/root.go:181
↓ 49 callers
Method
Err
()
internal/app/sync_limits.go:36
↓ 49 callers
Method
IsConnected
()
internal/app/app.go:28
↓ 45 callers
Method
emitWarning
(code, message string, data map[string]any)
internal/app/events.go:42
↓ 41 callers
Method
EnsureAuthed
()
internal/app/app.go:187
↓ 41 callers
Method
ExecContext
(context.Context, string, ...interface{})
internal/store/storedb/db.go:13
↓ 39 callers
Method
Connect
(ctx context.Context, opts wa.ConnectOptions)
internal/app/app.go:30
↓ 39 callers
Method
Sync
(ctx context.Context, opts SyncOptions)
internal/app/sync.go:64
↓ 37 callers
Function
tableCell
(s string, max int, full bool)
cmd/wacli/table.go:12
↓ 35 callers
Method
GetChat
(jid string)
internal/store/chats.go:102
↓ 34 callers
Function
canonicalJIDString
(jid types.JID)
internal/app/jid.go:16
↓ 30 callers
Function
ParseLiveMessage
(evt *events.Message)
internal/wa/messages.go:90
↓ 30 callers
Function
nullString
(s string)
internal/store/types.go:183
↓ 28 callers
Function
fromUnix
(sec int64)
internal/store/types.go:154
↓ 27 callers
Function
Open
(path string)
internal/store/db.go:23
↓ 27 callers
Function
nullIfEmpty
(s string)
internal/store/types.go:175
↓ 27 callers
Function
unix
(t time.Time)
internal/store/types.go:147
↓ 26 callers
Method
StoreDir
()
internal/app/app.go:237
↓ 26 callers
Method
canonicalStoreJID
(ctx context.Context, jid types.JID)
internal/app/jid.go:20
↓ 25 callers
Method
UpsertPoll
UpsertPoll inserts or replaces a poll row keyed on (chat_jid, msg_id).
internal/store/polls.go:45
↓ 25 callers
Method
Write
(p []byte)
internal/wa/media.go:317
↓ 25 callers
Function
countRows
(t *testing.T, db *sql.DB, q string, args ...any)
internal/store/store_test.go:21
↓ 25 callers
Method
handleLiveSyncMessage
(ctx context.Context, opts SyncOptions, v *events.Message, messagesStored *atomic.Int64, enqueueMedia func(str
internal/app/sync_events.go:358
↓ 24 callers
Function
waitForPostSendRetryReceipts
(ctx context.Context, d time.Duration)
cmd/wacli/send_helpers.go:100
↓ 23 callers
Method
UpsertGroup
(jid, name, ownerJID string, created time.Time)
internal/store/groups.go:12
↓ 23 callers
Function
openSendTestDB
(t *testing.T)
cmd/wacli/send_test.go:15
↓ 23 callers
Function
resolveRecipient
(a recipientResolverApp, input string, opts recipientOptions)
cmd/wacli/recipient.go:26
↓ 23 callers
Function
runSendOperation
( ctx context.Context, reconnect func(context.Context) error, op func(context.Context) (T, error), )
cmd/wacli/send_helpers.go:24
↓ 23 callers
Function
warnRapidSendIfNeeded
(storeDir string, now time.Time, stderr io.Writer)
cmd/wacli/send_helpers.go:112
↓ 22 callers
Function
New
(opts Options)
internal/app/app.go:124
↓ 22 callers
Function
reconnectForSend
(a interface { WA() app.WAClient Connect(context.Context, bool, func(string)) error })
cmd/wacli/send_helpers.go:90
↓ 21 callers
Method
Set
(message string)
internal/app/sync_status.go:89
↓ 19 callers
Method
GetPoll
GetPoll fetches a single poll by (chat_jid, msg_id). Returns sql.ErrNoRows if not found.
internal/store/polls.go:85
↓ 19 callers
Function
ParseUserOrJID
(s string)
internal/wa/jid.go:10
↓ 19 callers
Method
QueryRowContext
(context.Context, string, ...interface{})
internal/store/storedb/db.go:16
↓ 19 callers
Function
escapeHtml
(value)
scripts/docs-site-render.mjs:177
↓ 18 callers
Method
UpsertPollVote
UpsertPollVote replaces the vote row for (chat, poll, voter).
internal/store/polls.go:216
↓ 18 callers
Method
tableHasColumn
(table, column string)
internal/store/migrations.go:598
↓ 17 callers
Method
ListPollVotes
ListPollVotes returns the per-voter votes for a poll, ordered by ts ASC.
internal/store/polls.go:272
↓ 17 callers
Method
emitOrPrint
(event string, data map[string]any, format string, args ...any)
internal/app/events.go:19
↓ 17 callers
Function
messageIDs
(msgs []Message)
internal/store/messages_test.go:654
↓ 16 callers
Function
DefaultConfigPath
()
internal/config/config.go:70
↓ 16 callers
Method
GetContact
(ctx context.Context, jid types.JID)
internal/app/app.go:41
↓ 16 callers
Method
ListGroups
(query string, limit int)
internal/resolve/resolve.go:36
↓ 16 callers
Method
ListMessages
(p ListMessagesParams)
internal/store/messages.go:219
↓ 16 callers
Method
UpsertContact
(jid, phone, pushName, fullName, firstName, businessName string)
internal/store/contacts.go:118
↓ 16 callers
Method
emit
(evt interface{})
internal/app/fake_wa_test.go:131
↓ 16 callers
Function
execute
(args []string)
cmd/wacli/root.go:33
↓ 15 callers
Function
clone
(b []byte)
internal/wa/messages.go:382
↓ 15 callers
Function
warmupRecipient
(ctx context.Context, wa userInfoResolver, jid types.JID, stderr io.Writer)
cmd/wacli/send_helpers.go:151
↓ 14 callers
Function
WritePrivateFile
(path string, data []byte)
internal/fsutil/write.go:10
↓ 14 callers
Function
captureStderr
captureStderr swaps os.Stderr for the duration of fn and returns everything written to it. This lets tests observe the panic-recovery log emitted by t
internal/app/sync_panic_test.go:18
↓ 14 callers
Function
cleanCallValue
(s string)
internal/wa/calls.go:310
↓ 13 callers
Method
ListCallEvents
(p ListCallEventsParams)
internal/store/calls.go:182
↓ 13 callers
Method
Name
()
internal/syscontacts/syscontacts.go:18
↓ 13 callers
Method
OpenWA
()
internal/app/app.go:150
↓ 13 callers
Method
Release
()
internal/lock/lock.go:121
↓ 13 callers
Method
SearchMessages
(p SearchMessagesParams)
internal/store/search.go:23
↓ 13 callers
Function
captureRootStdout
(t *testing.T, fn func())
cmd/wacli/root_test.go:38
↓ 13 callers
Function
newTableWriter
(dst io.Writer)
cmd/wacli/table.go:8
↓ 12 callers
Method
HasFTS
()
internal/store/types.go:234
↓ 12 callers
Function
SanitizeSegment
(seg string)
internal/pathutil/sanitize.go:33
↓ 12 callers
Method
SetStarred
(p SetStarredParams)
internal/store/starred.go:29
↓ 12 callers
Method
handleHistorySync
(ctx context.Context, opts SyncOptions, v *events.HistorySync, messagesStored, lastEvent *atomic.Int64, enqueu
internal/app/sync_events.go:413
↓ 11 callers
Function
Acquire
(storeDir string)
internal/lock/lock.go:22
↓ 11 callers
Function
NewEventWriter
(w io.Writer, enabled bool)
internal/out/events.go:23
↓ 11 callers
Method
ResolveChatName
(context.Context, types.JID, string)
cmd/wacli/chats.go:152
↓ 11 callers
Function
fullTableOutput
(forceFull bool)
cmd/wacli/helpers.go:58
↓ 11 callers
Function
tryDelegateSend
(ctx context.Context, flags *rootFlags, lockErr error, req sendDelegateRequest)
cmd/wacli/send_ipc.go:111
↓ 10 callers
Function
BestContactName
(info types.ContactInfo)
internal/wa/client.go:772
↓ 10 callers
Method
CountMessages
()
internal/store/messages.go:305
↓ 10 callers
Method
Emit
(event string, data map[string]any)
internal/out/events.go:35
↓ 10 callers
Method
LocalResolver
()
internal/app/app.go:212
↓ 10 callers
Method
MarkGroupLeft
(jid string, leftAt time.Time)
internal/store/groups.go:38
↓ 10 callers
Method
QueryContext
(context.Context, string, ...interface{})
internal/store/storedb/db.go:15
↓ 10 callers
Function
boolToInt64
(b bool)
internal/store/types.go:168
↓ 10 callers
Function
parseTime
(s string)
cmd/wacli/helpers.go:21
↓ 10 callers
Function
tableColumns
(db *sql.DB, table string)
internal/store/schema_test.go:447
↓ 10 callers
Function
validatePollOptions
validatePollOptions trims, deduplicates, and bounds-checks user-supplied poll options. Returns the cleaned, ordered option list.
cmd/wacli/send_poll_cmd.go:132
↓ 9 callers
Method
LinkedJID
()
internal/app/app.go:94
↓ 9 callers
Method
ListHistoryCoverage
(p ListHistoryCoverageParams)
internal/store/history.go:35
↓ 9 callers
Function
MediaTypeFromString
(mediaType string)
internal/wa/media.go:42
↓ 9 callers
Function
ParseHistoryMessage
(chatJID string, hist *waProto.WebMessageInfo)
internal/wa/messages.go:109
↓ 9 callers
Method
RemoveEventHandler
(id uint32)
internal/app/app.go:33
next →
1–100 of 1,829, ranked by callers