MCPcopy Index your code

hub / github.com/companyzero/bisonrelay / functions

Functions4,266 in github.com/companyzero/bisonrelay

↓ 1,222 callersMethodErrorf
Errorf formats message according to format specifier and writes to to log with LevelError.
internal/logutil/logutil.go:36
↓ 411 callersFunctionNilErr
NilErr fails the test if err is non-nil.
internal/assert/asserts.go:148
↓ 399 callersMethodFatalf
(format string, args ...interface{})
rtdt/server/util_test.go:65
↓ 392 callersMethodPublicID
PublicID is the public local identity of this client. This is only available after the Run() method has loaded the user ID from the DB.
client/client.go:916
↓ 297 callersMethodInfof
Infof formats message according to format specifier and writes to log with LevelInfo.
internal/logutil/logutil.go:24
↓ 265 callersMethodWarnf
Warnf formats message according to format specifier and writes to to log with LevelWarn.
internal/logutil/logutil.go:30
↓ 260 callersMethodDebugf
Debugf formats message according to format specifier and writes to log with LevelDebug.
internal/logutil/logutil.go:18
↓ 243 callersFunctionChanWritten
ChanWritten returns the value written to chan c or times out.
internal/assert/asserts.go:17
↓ 238 callersMethodID
()
client/remoteuser.go:136
↓ 213 callersMethodhandle
handle is syntatic sugar for tc.NotificationManager().Register()
internal/e2etests/e2e_test.go:321
↓ 180 callersMethodnewClient
newClient instantiates a new client that can connect to the scaffold's server. This MUST be called only from the main test goroutine.
internal/e2etests/e2e_test.go:598
↓ 178 callersMethodString
()
client/clientdb/interface.go:49
↓ 175 callersFunctionDeepEqual
DeepEqual asserts got is reflect.DeepEqual to want.
internal/assert/asserts.go:124
↓ 170 callersMethodAdd
(d time.Duration)
client/timestats/timestats.go:19
↓ 168 callersMethodString
()
brclient/config.go:60
↓ 154 callersMethoddiagMsg
diagMsg adds a message to be displayed in the diagnostic window (i.e. win0).
brclient/appstate.go:806
↓ 144 callersMethodClose
()
server/util.go:20
↓ 139 callersFunctionNick
Nick returns s escaped from chars that don't don't belong in a nick.
internal/strescape/strescape.go:11
↓ 134 callersMethodErr
Err is the capturing error. It is only set after capturing is done.
internal/audio/streams.go:68
↓ 130 callersMethoddbUpdate
(f func(tx clientdb.ReadWriteTx) error)
client/client.go:633
↓ 128 callersMethodLoad
Load the current time.
rtdt/server/time.go:23
↓ 124 callersMethodTracef
Tracef formats message according to format specifier and writes to to log with LevelTrace.
internal/logutil/logutil.go:12
↓ 123 callersFunctionChanNotWritten
ChanNotWritten asserts that the chan is not written at least until the passed timeout value.
internal/assert/asserts.go:58
↓ 122 callersMethodNick
()
client/remoteuser.go:152
↓ 114 callersMethodDecode
(data []byte, frameSize int, fec bool, out []int16)
internal/audio/audio.go:70
↓ 114 callersMethodkxUsers
kxUsers performs a kx between the two users, so that they can communicate with each other. This MUST be called only from the main test goroutine.
internal/e2etests/e2e_test.go:649
↓ 113 callersFunctionChanWrittenWithVal
ChanWrittenWithVal asserts the chan c was written with a value that DeepEquals v.
internal/assert/asserts.go:30
↓ 109 callersMethodWrite
([]byte)
client/internal/lowlevel/serversession.go:53
↓ 108 callersMethoddecode
(to interface{})
bruig/golib/commands.go:261
↓ 106 callersMethodIs
(target error)
client/errors.go:111
↓ 106 callersMethodRegister
Register registers a callback notification function that is called asynchronously to the event (i.e. in a separate goroutine).
client/notifications.go:778
↓ 103 callersMethodName
Name returns either the local alias (if one is set) or the GC name.
client/clientdb/interface.go:181
↓ 92 callersMethodProtoReflect
()
client/rpcserver/streams.go:14
↓ 91 callersMethodDescriptor
Deprecated: Use PMRequest.ProtoReflect.Descriptor instead.
clientrpc/types/clientrpc.pb.go:406
↓ 91 callersMethodIs
(target error)
client/internal/lowlevel/errors.go:44
↓ 89 callersMethodRead
()
client/internal/lowlevel/serversession.go:52
↓ 83 callersMethodShortLogID
ShortLogID returns the first 8 bytes in hex format (16 chars), useful as a short log ID.
zkidentity/shortid.go:38
↓ 82 callersFunctionfile_clientrpc_proto_rawDescGZIP
()
clientrpc/types/clientrpc.pb.go:5755
↓ 78 callersMethodcwHelpMsg
(format string, args ...interface{})
brclient/appstate.go:875
↓ 72 callersFunctionnewTestScaffold
(t *testing.T, cfg testScaffoldCfg)
internal/e2etests/e2e_test.go:716
↓ 69 callersMethodreadJsonFile
readJsonFile reads the first json message from the given filename and decodes it into data.
client/clientdb/util.go:172
↓ 68 callersFunctionnotify
(typ CmdType, payload interface{}, err error)
bruig/golib/commands.go:416
↓ 68 callersMethodvisit
(f func(T))
client/notifications.go:717
↓ 65 callersFunctionassertSendsRandomRTDTData
assertSendsRandomRTDTData asserts that src sends and the targets receive random data in an RTDT session.
internal/e2etests/assertions_test.go:633
↓ 63 callersFunctioncontextError
contextError creates a ContextError given a set of arguments.
server/internal/pgdb/error.go:129
↓ 63 callersMethoddbView
(f func(tx clientdb.ReadTx) error)
client/client.go:629
↓ 62 callersMethodrepaintIfActive
repaintIfActive sends a msg to the UI to repaint the current window if the current window is the specified window.
brclient/appstate.go:1448
↓ 61 callersMethodGet
Get returns a record from table. If the record does not exist ErrNotFound is returned.
inidb/inidb.go:180
↓ 59 callersMethodBytes
Bytes returns the ID as a slice of bytes.
zkidentity/shortid.go:17
↓ 52 callersMethodbyID
(uid UserID)
client/remoteuser.go:980
↓ 52 callersMethodnewClient
newClient creates a new client that can communicate with the server. This client will automatically perform handshake by default.
rtdt/server/util_test.go:548
↓ 51 callersMethodEncode
(pcm []int16, frameSize int, out []byte)
internal/audio/audio.go:64
↓ 51 callersMethodFromString
(s string)
client/resources/simplestore/products.go:69
↓ 51 callersMethodUnmarshal
(s *disk.RatchetState)
ratchet/ratchet.go:674
↓ 51 callersMethodnewInternalMsg
(msg string, args ...interface{})
brclient/chatwindow.go:546
↓ 50 callersMethodString
()
client/rmtypes.go:30
↓ 50 callersMethodreplyNextPRPC
(t testing.TB, reply interface{})
client/internal/lowlevel/util_test.go:381
↓ 48 callersMethodUserNick
UserNick returns the nick of an user.
clientrpc/types/clientrpc_svcintf.pb.go:143
↓ 47 callersMethodcwHelpMsgs
cwHelpMsgs prints help messages in the currently active window.
brclient/appstate.go:848
↓ 46 callersMethodGetGC
GetGC returns the full definition for a GC.
clientrpc/types/clientrpc_svcintf.pb.go:530
↓ 46 callersMethodUserByID
UserByID returns the remote user of the given ID.
client/client.go:1078
↓ 46 callersFunctionassertUserNick
assertUserNick verifies that the client 'c' sees the nick of 'target' as 'nick'.
internal/e2etests/assertions_test.go:488
↓ 46 callersMethodsaveJsonFile
saveJsonFile saves the data to a temp file, then renames the temp file to the passed filename.
client/clientdb/util.go:147
↓ 45 callersFunctionNilErrFromChan
NilErrFromChan fails the test if a non-nil error is received in the chan or if the channel fails to be written to in 30 seconds.
internal/assert/asserts.go:157
↓ 44 callersMethodGetRTDTSession
Client RTDT session management flow is: Alice Bob ------- ----- CreateRTDTS
client/client_rtdt.go:52
↓ 44 callersMethodjoinSession
joinSession attempts to join the session. This uses either a nil or a fully valid join cookie, depending on the test server config.
rtdt/server/util_test.go:274
↓ 43 callersMethodUIDByNick
UIDByNick returns the user ID associated with the given nick.
client/client.go:1060
↓ 42 callersMethodIs
(target error)
brclient/commands.go:84
↓ 41 callersMethodError
()
brclient/commands.go:80
↓ 41 callersFunctionappendCmd
Helper to only append non nil cmd to cmds.
brclient/util.go:109
↓ 40 callersMethodEncrypt
Encrypt acts like append() but appends an encrypted version of msg to out.
ratchet/ratchet.go:307
↓ 40 callersFunctionassertGoesOffline
assertGoesOffline verifies that the client switches to offline status.
internal/e2etests/assertions_test.go:463
↓ 40 callersMethodtick
()
rtdt/internal/rtnullclient/sessions_test.go:14
↓ 39 callersMethodStore
Store the given time.
rtdt/server/time.go:16
↓ 38 callersMethodlen
len returns the number of items in the queue.
internal/audio/tsbuffer.go:39
↓ 37 callersMethodWait
Wait blocks until this process is done or the passed context is canceled.
embeddeddcrlnd/dcrlnd.go:348
↓ 35 callersMethodSub
(rdzv lowlevel.RVID, handler lowlevel.RVHandler, paidHandler lowlevel.SubPaidHandler)
client/interface.go:20
↓ 35 callersFunctionnickCompleter
nickCompleter returns completions for nicks that have a prefix.
brclient/commands.go:159
↓ 34 callersFunctionassertJoinsLiveRTDTSession
assertJoinsLiveRTDTSession asserts the client can join the specified live session.
internal/e2etests/assertions_test.go:615
↓ 33 callersMethodIs
Is implements the interface to work with the standard library's errors.Is. It calls errors.Is on both the Err and RawErr fields, in that order, and r
server/internal/pgdb/error.go:106
↓ 32 callersMethodInviteToGroupChat
InviteToGroupChat invites the given user to the given gc. The local user must be the admin of the group and the remote user must have been KX'd with.
client/client_groupchat.go:235
↓ 32 callersMethodRecv
(proto.Message)
clientrpc/types/registry.go:27
↓ 32 callersFunctionassertGoesOnline
assertGoesOnline verifies that the client switches to onlne status.
internal/e2etests/assertions_test.go:475
↓ 31 callersMethodIsEmpty
IsEmpty returns true if the short ID is empty (i.e. all zero).
zkidentity/shortid.go:101
↓ 31 callersMethodRequest
(ctx context.Context, method string, request, response proto.Message)
clientrpc/types/registry.go:16
↓ 31 callersFunctionmax
(a, b int)
brclient/util.go:59
↓ 31 callersMethodsendWithSendQ
sendWithSendQ sends a msg using the send queue with default priority.
client/client_sendq.go:215
↓ 30 callersFunctionErrorIs
ErrorIs asserts that errors.Is(got, want).
internal/assert/asserts.go:140
↓ 30 callersMethodPM
PM sends a private message to a user of the client.
clientrpc/types/clientrpc_svcintf.pb.go:111
↓ 30 callersMethodfindOrNewChatWindow
findOrNewChatWindow finds the existing chat window for the given user or creates a new one with the given alias.
brclient/appstate.go:1294
↓ 29 callersMethodNewGroupChat
NewGroupChat creates a group chat with the local client as admin.
client/client_groupchat.go:200
↓ 29 callersFunctionassertCanExchangeData
assertCanExchangeData asserts that every client within the passed list can send and receive messages from every other client.
rtdt/server/util_test.go:686
↓ 29 callersMethodassertErrCode
(t *testing.T, want errorCode)
rtdt/server/util_test.go:154
↓ 28 callersMethodGCIDByName
GCIDByName returns the GC ID of the local GC with the given name. The name can be either a local GC alias or a full hex GC ID.
client/client_groupchat.go:112
↓ 28 callersMethodRun
Run the services of this rmq. Must only be called once.
client/internal/lowlevel/rmq.go:795
↓ 27 callersMethodSetLevel
SetLevel changes the logging level to the passed level.
internal/logutil/logutil.go:88
↓ 27 callersFunctionassertEmptyRMQ
assertEmptyRMQ asserts the RMQ of the passed client is or becomes empty.
internal/e2etests/assertions_test.go:438
↓ 27 callersMethodjoinSessionWithCookie
joinSessionWithCookie attempts to join the session using the specified encoded session cookie.
rtdt/server/util_test.go:234
↓ 27 callersFunctionnewTestServer
newTestServer creates a new testScaffold for testing the server.
rtdt/server/util_test.go:582
↓ 27 callersMethodsendRandomData
sendRandomData sends data in the random stream using the source id. The source peer id may or may not be for a session this test client has bound itse
rtdt/server/util_test.go:327
next →1–100 of 4,266, ranked by callers