Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/companyzero/bisonrelay
/ functions
Functions
4,266 in github.com/companyzero/bisonrelay
⨍
Functions
4,266
◇
Types & classes
1,069
↓ 1,222 callers
Method
Errorf
Errorf formats message according to format specifier and writes to to log with LevelError.
internal/logutil/logutil.go:36
↓ 411 callers
Function
NilErr
NilErr fails the test if err is non-nil.
internal/assert/asserts.go:148
↓ 399 callers
Method
Fatalf
(format string, args ...interface{})
rtdt/server/util_test.go:65
↓ 392 callers
Method
PublicID
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 callers
Method
Infof
Infof formats message according to format specifier and writes to log with LevelInfo.
internal/logutil/logutil.go:24
↓ 265 callers
Method
Warnf
Warnf formats message according to format specifier and writes to to log with LevelWarn.
internal/logutil/logutil.go:30
↓ 260 callers
Method
Debugf
Debugf formats message according to format specifier and writes to log with LevelDebug.
internal/logutil/logutil.go:18
↓ 243 callers
Function
ChanWritten
ChanWritten returns the value written to chan c or times out.
internal/assert/asserts.go:17
↓ 238 callers
Method
ID
()
client/remoteuser.go:136
↓ 213 callers
Method
handle
handle is syntatic sugar for tc.NotificationManager().Register()
internal/e2etests/e2e_test.go:321
↓ 180 callers
Method
newClient
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 callers
Method
String
()
client/clientdb/interface.go:49
↓ 175 callers
Function
DeepEqual
DeepEqual asserts got is reflect.DeepEqual to want.
internal/assert/asserts.go:124
↓ 170 callers
Method
Add
(d time.Duration)
client/timestats/timestats.go:19
↓ 168 callers
Method
String
()
brclient/config.go:60
↓ 154 callers
Method
diagMsg
diagMsg adds a message to be displayed in the diagnostic window (i.e. win0).
brclient/appstate.go:806
↓ 144 callers
Method
Close
()
server/util.go:20
↓ 139 callers
Function
Nick
Nick returns s escaped from chars that don't don't belong in a nick.
internal/strescape/strescape.go:11
↓ 134 callers
Method
Err
Err is the capturing error. It is only set after capturing is done.
internal/audio/streams.go:68
↓ 130 callers
Method
dbUpdate
(f func(tx clientdb.ReadWriteTx) error)
client/client.go:633
↓ 128 callers
Method
Load
Load the current time.
rtdt/server/time.go:23
↓ 124 callers
Method
Tracef
Tracef formats message according to format specifier and writes to to log with LevelTrace.
internal/logutil/logutil.go:12
↓ 123 callers
Function
ChanNotWritten
ChanNotWritten asserts that the chan is not written at least until the passed timeout value.
internal/assert/asserts.go:58
↓ 122 callers
Method
Nick
()
client/remoteuser.go:152
↓ 114 callers
Method
Decode
(data []byte, frameSize int, fec bool, out []int16)
internal/audio/audio.go:70
↓ 114 callers
Method
kxUsers
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 callers
Function
ChanWrittenWithVal
ChanWrittenWithVal asserts the chan c was written with a value that DeepEquals v.
internal/assert/asserts.go:30
↓ 109 callers
Method
Write
([]byte)
client/internal/lowlevel/serversession.go:53
↓ 108 callers
Method
decode
(to interface{})
bruig/golib/commands.go:261
↓ 106 callers
Method
Is
(target error)
client/errors.go:111
↓ 106 callers
Method
Register
Register registers a callback notification function that is called asynchronously to the event (i.e. in a separate goroutine).
client/notifications.go:778
↓ 103 callers
Method
Name
Name returns either the local alias (if one is set) or the GC name.
client/clientdb/interface.go:181
↓ 92 callers
Method
ProtoReflect
()
client/rpcserver/streams.go:14
↓ 91 callers
Method
Descriptor
Deprecated: Use PMRequest.ProtoReflect.Descriptor instead.
clientrpc/types/clientrpc.pb.go:406
↓ 91 callers
Method
Is
(target error)
client/internal/lowlevel/errors.go:44
↓ 89 callers
Method
Read
()
client/internal/lowlevel/serversession.go:52
↓ 83 callers
Method
ShortLogID
ShortLogID returns the first 8 bytes in hex format (16 chars), useful as a short log ID.
zkidentity/shortid.go:38
↓ 82 callers
Function
file_clientrpc_proto_rawDescGZIP
()
clientrpc/types/clientrpc.pb.go:5755
↓ 78 callers
Method
cwHelpMsg
(format string, args ...interface{})
brclient/appstate.go:875
↓ 72 callers
Function
newTestScaffold
(t *testing.T, cfg testScaffoldCfg)
internal/e2etests/e2e_test.go:716
↓ 69 callers
Method
readJsonFile
readJsonFile reads the first json message from the given filename and decodes it into data.
client/clientdb/util.go:172
↓ 68 callers
Function
notify
(typ CmdType, payload interface{}, err error)
bruig/golib/commands.go:416
↓ 68 callers
Method
visit
(f func(T))
client/notifications.go:717
↓ 65 callers
Function
assertSendsRandomRTDTData
assertSendsRandomRTDTData asserts that src sends and the targets receive random data in an RTDT session.
internal/e2etests/assertions_test.go:633
↓ 63 callers
Function
contextError
contextError creates a ContextError given a set of arguments.
server/internal/pgdb/error.go:129
↓ 63 callers
Method
dbView
(f func(tx clientdb.ReadTx) error)
client/client.go:629
↓ 62 callers
Method
repaintIfActive
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 callers
Method
Get
Get returns a record from table. If the record does not exist ErrNotFound is returned.
inidb/inidb.go:180
↓ 59 callers
Method
Bytes
Bytes returns the ID as a slice of bytes.
zkidentity/shortid.go:17
↓ 52 callers
Method
byID
(uid UserID)
client/remoteuser.go:980
↓ 52 callers
Method
newClient
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 callers
Method
Encode
(pcm []int16, frameSize int, out []byte)
internal/audio/audio.go:64
↓ 51 callers
Method
FromString
(s string)
client/resources/simplestore/products.go:69
↓ 51 callers
Method
Unmarshal
(s *disk.RatchetState)
ratchet/ratchet.go:674
↓ 51 callers
Method
newInternalMsg
(msg string, args ...interface{})
brclient/chatwindow.go:546
↓ 50 callers
Method
String
()
client/rmtypes.go:30
↓ 50 callers
Method
replyNextPRPC
(t testing.TB, reply interface{})
client/internal/lowlevel/util_test.go:381
↓ 48 callers
Method
UserNick
UserNick returns the nick of an user.
clientrpc/types/clientrpc_svcintf.pb.go:143
↓ 47 callers
Method
cwHelpMsgs
cwHelpMsgs prints help messages in the currently active window.
brclient/appstate.go:848
↓ 46 callers
Method
GetGC
GetGC returns the full definition for a GC.
clientrpc/types/clientrpc_svcintf.pb.go:530
↓ 46 callers
Method
UserByID
UserByID returns the remote user of the given ID.
client/client.go:1078
↓ 46 callers
Function
assertUserNick
assertUserNick verifies that the client 'c' sees the nick of 'target' as 'nick'.
internal/e2etests/assertions_test.go:488
↓ 46 callers
Method
saveJsonFile
saveJsonFile saves the data to a temp file, then renames the temp file to the passed filename.
client/clientdb/util.go:147
↓ 45 callers
Function
NilErrFromChan
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 callers
Method
GetRTDTSession
Client RTDT session management flow is: Alice Bob ------- ----- CreateRTDTS
client/client_rtdt.go:52
↓ 44 callers
Method
joinSession
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 callers
Method
UIDByNick
UIDByNick returns the user ID associated with the given nick.
client/client.go:1060
↓ 42 callers
Method
Is
(target error)
brclient/commands.go:84
↓ 41 callers
Method
Error
()
brclient/commands.go:80
↓ 41 callers
Function
appendCmd
Helper to only append non nil cmd to cmds.
brclient/util.go:109
↓ 40 callers
Method
Encrypt
Encrypt acts like append() but appends an encrypted version of msg to out.
ratchet/ratchet.go:307
↓ 40 callers
Function
assertGoesOffline
assertGoesOffline verifies that the client switches to offline status.
internal/e2etests/assertions_test.go:463
↓ 40 callers
Method
tick
()
rtdt/internal/rtnullclient/sessions_test.go:14
↓ 39 callers
Method
Store
Store the given time.
rtdt/server/time.go:16
↓ 38 callers
Method
len
len returns the number of items in the queue.
internal/audio/tsbuffer.go:39
↓ 37 callers
Method
Wait
Wait blocks until this process is done or the passed context is canceled.
embeddeddcrlnd/dcrlnd.go:348
↓ 35 callers
Method
Sub
(rdzv lowlevel.RVID, handler lowlevel.RVHandler, paidHandler lowlevel.SubPaidHandler)
client/interface.go:20
↓ 35 callers
Function
nickCompleter
nickCompleter returns completions for nicks that have a prefix.
brclient/commands.go:159
↓ 34 callers
Function
assertJoinsLiveRTDTSession
assertJoinsLiveRTDTSession asserts the client can join the specified live session.
internal/e2etests/assertions_test.go:615
↓ 33 callers
Method
Is
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 callers
Method
InviteToGroupChat
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 callers
Method
Recv
(proto.Message)
clientrpc/types/registry.go:27
↓ 32 callers
Function
assertGoesOnline
assertGoesOnline verifies that the client switches to onlne status.
internal/e2etests/assertions_test.go:475
↓ 31 callers
Method
IsEmpty
IsEmpty returns true if the short ID is empty (i.e. all zero).
zkidentity/shortid.go:101
↓ 31 callers
Method
Request
(ctx context.Context, method string, request, response proto.Message)
clientrpc/types/registry.go:16
↓ 31 callers
Function
max
(a, b int)
brclient/util.go:59
↓ 31 callers
Method
sendWithSendQ
sendWithSendQ sends a msg using the send queue with default priority.
client/client_sendq.go:215
↓ 30 callers
Function
ErrorIs
ErrorIs asserts that errors.Is(got, want).
internal/assert/asserts.go:140
↓ 30 callers
Method
PM
PM sends a private message to a user of the client.
clientrpc/types/clientrpc_svcintf.pb.go:111
↓ 30 callers
Method
findOrNewChatWindow
findOrNewChatWindow finds the existing chat window for the given user or creates a new one with the given alias.
brclient/appstate.go:1294
↓ 29 callers
Method
NewGroupChat
NewGroupChat creates a group chat with the local client as admin.
client/client_groupchat.go:200
↓ 29 callers
Function
assertCanExchangeData
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 callers
Method
assertErrCode
(t *testing.T, want errorCode)
rtdt/server/util_test.go:154
↓ 28 callers
Method
GCIDByName
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 callers
Method
Run
Run the services of this rmq. Must only be called once.
client/internal/lowlevel/rmq.go:795
↓ 27 callers
Method
SetLevel
SetLevel changes the logging level to the passed level.
internal/logutil/logutil.go:88
↓ 27 callers
Function
assertEmptyRMQ
assertEmptyRMQ asserts the RMQ of the passed client is or becomes empty.
internal/e2etests/assertions_test.go:438
↓ 27 callers
Method
joinSessionWithCookie
joinSessionWithCookie attempts to join the session using the specified encoded session cookie.
rtdt/server/util_test.go:234
↓ 27 callers
Function
newTestServer
newTestServer creates a new testScaffold for testing the server.
rtdt/server/util_test.go:582
↓ 27 callers
Method
sendRandomData
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