MCPcopy Index your code

hub / github.com/companyzero/bisonrelay / functions

Functions4,266 in github.com/companyzero/bisonrelay

↓ 13 callersMethodSub
Sub informs the manager to subscribe to the given rendezvous point and to call handler once a message is received in the given point. Note that handl
client/internal/lowlevel/rendezvous.go:140
↓ 13 callersMethodappendPacketHeader
appendPacketHeader appends this packet's header into a byte slice.
rpc/rtdt.go:478
↓ 13 callersFunctionbtnWithTrailing
(trailing string)
brclient/formhelper.go:182
↓ 13 callersMethodsetFocus
(i int)
brclient/setupwizard.go:89
↓ 13 callersMethodsetMsgSent
(msg *chatMsg)
brclient/chatwindow.go:735
↓ 12 callersFunctionComposeCompressedRM
ComposeCompressedRM creates a blobified message that has a header and a payload that can then be encrypted and transmitted to the other side. The cont
rpc/routedrpc.go:224
↓ 12 callersMethodDecapsulate
(b []byte, sk *[32]byte)
zkidentity/fixedsize.go:190
↓ 12 callersMethodFetchResource
FetchResource requests the specified resource from the client. Once the resource is returned the ResourceFetched handler will be called with the respo
client/client_resources.go:75
↓ 12 callersMethodGetInfo
()
internal/e2etests/mocks_test.go:25
↓ 12 callersMethodLevel
Level returns the current logging level.
internal/logutil/logutil.go:83
↓ 12 callersMethodMetadataHash
MetadataHash calculates the hash of the metadata info. Note that the specific information that is hashed depends on the version of the metadata.
rpc/routedrpc.go:1029
↓ 12 callersMethodSendRM
SendRM sends the given routed message to the server whenever possible. It returns when the RM has been successfully written and acknowledged as receiv
client/internal/lowlevel/rmq.go:156
↓ 12 callersMethodSendRandomData
SendRandomData sends data in the random stream. This is only used during tests.
rtdt/client/sessions.go:106
↓ 12 callersFunctionTrue
True asserts the given bool is true.
internal/assert/asserts.go:239
↓ 12 callersMethodack
ack clears the replay log up to the specified id.
client/rpcserver/streams.go:123
↓ 12 callersFunctionassertClientsCanPM
assertClientsCanPM asserts that the clients can PM each other.
internal/e2etests/assertions_test.go:117
↓ 12 callersMethodassertNextRandomData
assertNextRandomData asserts that the next message from server is data sent on the random stream by some other test client and it equals the given exp
rtdt/server/util_test.go:405
↓ 12 callersMethodchangeActiveWindow
changeActiveWindow changes the state to the specified window.
brclient/appstate.go:998
↓ 12 callersFunctionmaybeShutdown
(as *appState, msg tea.Msg)
brclient/shutdownstate.go:49
↓ 12 callersMethodnewClient
newClient creates a new test client for this server.
rtdt/client/util_test.go:311
↓ 12 callersFunctionnewMockRMQDB
()
client/internal/lowlevel/util_test.go:502
↓ 12 callersFunctionnewServerStreams
newServerStreams creates a new set of server streams for a given message type.
client/rpcserver/streams.go:135
↓ 12 callersFunctionnewTestServer
newTestServer creates a new test server.
rtdt/client/util_test.go:393
↓ 12 callersMethodrunStream
runStream runs the stream, sending unacked messages from the replayLog starting at unackedFrom.
client/rpcserver/streams.go:49
↓ 12 callersMethodsend
send the notification on all running streams.
client/rpcserver/streams.go:92
↓ 12 callersFunctiontestRand
(t testing.TB)
client/util_test.go:28
↓ 11 callersMethodAcceptGroupChatInvite
AcceptGroupChatInvite accepts the given invitation, previously received from some user.
client/client_groupchat.go:372
↓ 11 callersMethodAcceptInvite
AcceptInvite accepts an invite to kx with the user-provided invite.
clientrpc/types/clientrpc_svcintf.pb.go:138
↓ 11 callersMethodAddInputs
(inputs ...tea.Model)
brclient/formhelper.go:157
↓ 11 callersMethodDecodeInvoice
(context.Context, string)
client/clientintf/interface.go:175
↓ 11 callersMethodError
Error formats message using the default formats for its operands and writes to log with LevelError.
internal/logutil/logutil.go:72
↓ 11 callersMethodHookDecodeInvoice
(hook func(string) (clientintf.DecodedInvoice, error))
internal/testutils/mockpayclient.go:98
↓ 11 callersMethodInfo
Info formats message using the default formats for its operands and writes to log with LevelInfo.
internal/logutil/logutil.go:60
↓ 11 callersMethodLNRPC
()
client/payment.go:116
↓ 11 callersFunctionNewRVManager
(log slog.Logger, db RVManagerDB, subsDelayer func() <-chan time.Time, subDoneCB func())
client/internal/lowlevel/rendezvous.go:101
↓ 11 callersMethodSaveGC
(tx ReadWriteTx, gc GroupChat)
client/clientdb/gc.go:382
↓ 11 callersMethodUpdateRTDTSession
UpdateRTDTSession updates the data for the given RTDT session.
client/clientdb/rtdtsessions.go:19
↓ 11 callersFunctionassertClientsKXd
(t testing.TB, alice, bob *testClient)
internal/e2etests/assertions_test.go:23
↓ 11 callersFunctionassertPostSubscriber
assertPostSubscriber asserts whether client c contains the target user in its list of subscribers (target is/isn't subscribed to c's posts).
internal/e2etests/assertions_test.go:540
↓ 11 callersFunctionassertPostSubscription
assertPostSubscription asserts whether client c is/isn't subscribed to the target user's posts. This is the reverse of assertContainsPostSubscriber.
internal/e2etests/assertions_test.go:562
↓ 11 callersFunctionexpandPath
(homeDir, path string)
brclient/config.go:205
↓ 11 callersFunctionisEnterMsg
isEnterMsg returns true if the message is a key down message of the enter key.
brclient/messages.go:297
↓ 11 callersMethodlogGCEvent
logGCEvent logs the given GC event. Must not be called from inside a DB transaction.
client/client_groupchat.go:1389
↓ 11 callersMethodlogger
logger creates a logger for the given subsystem in the configured backend.
client/client.go:236
↓ 11 callersMethodnewHandshakedSession
newHandshakedSession creates a new session and completes the handshake with the scaffold server.
rtdt/client/util_test.go:221
↓ 11 callersFunctionpartitionTableName
partitionTableName returns the name of the data table to use for a partition based on the provided date.
server/internal/pgdb/db.go:846
↓ 11 callersMethodpushReadMsg
pushReadMsg pushes a message that will be read by the next call to Read(). This blocks until the message is read.
client/internal/lowlevel/util_test.go:263
↓ 11 callersMethodrecreateStoppedClient
recreateStoppedClient recreates a client that was previously stopped. If the client was not stopped, results are undefined.
internal/e2etests/e2e_test.go:629
↓ 11 callersFunctionremoveIfExists
removeIfExists removes the filename if it exists. If it does not exist, this doesn't return an error.
client/clientdb/util.go:59
↓ 11 callersMethodserverWrite
serverWrite sends a message from the server encoded with the key for this session.
rtdt/client/util_test.go:50
↓ 11 callersMethodwrite
write sends the given data to the server (either encrypted or not depending on how the connection was setup).
rtdt/server/util_test.go:136
↓ 11 callersFunctionwriteServerMsg
(t testing.TB, kx *session.KX, msg rpc.Message, payload interface{})
server/util_test.go:165
↓ 10 callersMethodBind
Bind the service server to the specified name.
clientrpc/types/registry.go:65
↓ 10 callersMethodCreatePost
CreatePost creates the given post in the local DB. Note that the optional file specified in fname is **copied** to the post.
client/clientdb/posts.go:231
↓ 10 callersMethodEncapsulate
()
zkidentity/fixedsize.go:134
↓ 10 callersMethodError
()
client/errors.go:107
↓ 10 callersMethodFromBytes
FromBytes decodes the byte slice into this framed packet.
rpc/rtdt.go:462
↓ 10 callersMethodGetAddressBookEntry
GetAddressBookEntry loads the address book information of an user.
client/clientdb/fscdb.go:264
↓ 10 callersMethodIsOwnerOrAdmin
IsOwnerOrAdmin returns true if the given ID is the owner or an admin of the session.
rpc/routed_rtdt.go:139
↓ 10 callersMethodLogGCMsg
LogGCMsg logs a GC message sent in the given GC. Returns the message, with any filters and modifications applied.
client/clientdb/fscdb.go:652
↓ 10 callersFunctionNew
New returns a new INIDB context. Depth contains the maximum number of files that are retained. Create indicates if the database should be created if
inidb/inidb.go:49
↓ 10 callersFunctionNewConnKeeper
(cfg ConnKeeperCfg)
client/internal/lowlevel/welcome.go:67
↓ 10 callersMethodPublic
Public returns the full public identity data for the local client.
client/client.go:921
↓ 10 callersMethodRMReceived
RMReceived should be called whenever an RM for a user is received.
client/internal/gcmcacher/gcmcacher.go:203
↓ 10 callersMethodRVPoint
RVPoint calculates the RV point that corresponds to this key.
client/clientintf/invitekey.go:20
↓ 10 callersMethodRun
Run runs all client goroutines until the given context is canceled. Must only be called once.
client/client.go:1323
↓ 10 callersMethodRun
Run runs the rendezvous manager services. A given RVManager instance should not be reused once its run method returns.
client/internal/lowlevel/rendezvous.go:584
↓ 10 callersMethodString
()
rtdt/server/listener.go:80
↓ 10 callersMethodUnsubscribeToPosts
UnsubscribeToPosts makes the local client unsubscribe from a remote user's posts.
clientrpc/types/clientrpc_svcintf.pb.go:923
↓ 10 callersMethodUserLogNick
UserLogNick returns the nick to use when logging a remote user. If the user does not exist, returns the UID itself as string. If this uid is for the c
client/client.go:1096
↓ 10 callersMethodactiveChatWindow
activeChatWindow returns the currently active chat window or nil if the active window is _not_ a chat window.
brclient/appstate.go:915
↓ 10 callersFunctionassertClientJoinsGC
assertClientJoinsGC asserts that the admin of the GC can invite and the invitee joins the GC.
internal/e2etests/assertions_test.go:177
↓ 10 callersMethodassertNextMembersList
assertNextMembersList asserts the next command received by the client is a members list bitmap and returns the decoded bitmap.
rtdt/server/util_test.go:196
↓ 10 callersMethodlistenerWrite
listenerWrite writes the given raw message bytes to the remote conn. temp is used to encrypt the message if necessary.
rtdt/server/listener.go:176
↓ 10 callersFunctionmakeWalletUsableErr
(kind WalletUsableErrorKind, descr string)
client/errors.go:82
↓ 10 callersFunctionnewTextInputHelper
(styles *theme, opts ...textInputHelperOption)
brclient/textinputhelper.go:82
↓ 10 callersMethodnextServerBytesAddr
nextServerBytesAddr reads the next message received by the server and returns it and the address that sent it.
rtdt/client/util_test.go:348
↓ 10 callersFunctionpairedRatchet
(t *testing.T)
ratchet/ratchet_test.go:54
↓ 10 callersFunctionpopNArgs
popNArgs returns the N first arguments in s and the rest of the s string after those first n args. Returns nil if there aren't enough args.
brclient/commands.go:5581
↓ 10 callersFunctionprintf
(format string, args ...interface{})
internal/audio/cmd/simstream/terminal.go:18
↓ 10 callersMethodreadNext
readNext reads the next message sent by the server.
rtdt/server/util_test.go:347
↓ 10 callersFunctionsleep
sleep for d duration or m*d if running in race mode.
internal/e2etests/race_test.go:9
↓ 10 callersFunctionwriteWrappedWithStyle
writeWrappedWithStyle writes s to b using the style with wrapping at winW. Returns the new offset.
brclient/chatwindow.go:788
↓ 9 callersMethodCreateRTDTSession
CreateRTDTSession creates a new RTDT session. This involves fetching a creation token from brserver. The local client does NOT automatically join the
client/client_rtdt.go:179
↓ 9 callersFunctionEncryptedSize
EncryptedSize returns the estimated size for an encrypted ratched message, given the specified payload msg size.
ratchet/ratchet.go:747
↓ 9 callersMethodGCKick
GCKick kicks the given user from the GC. This only works if we're the gc admin.
client/client_groupchat.go:1407
↓ 9 callersMethodJoinLiveRTDTSession
JoinLiveRTDTSession joins the live RTDT session.
client/client_rtdt.go:1190
↓ 9 callersMethodLast
Last returns the number and filename of the file with highest number in the dir. If no file is found, the returned filename is empty.
internal/jsonfile/numberedfiles.go:82
↓ 9 callersMethodListen
Listen to any Write() events by calling the specificed callback function. Note the callbacks are called synchronously with the Write() call, so care m
brclient/internal/sloglinesbuffer/linesbuffer.go:106
↓ 9 callersMethodLocalIsAdmin
LocalIsAdmin returns true if the local client is an admin of this session.
client/clientdb/interface.go:867
↓ 9 callersFunctionMaxMsgSizeForVersion
MaxMsgSizeForVersion returns the max message size according to the given max message size version. It returns 0 for unknown versions.
rpc/rpc.go:112
↓ 9 callersFunctionNotNil
(t testing.TB, v any)
internal/assert/asserts.go:178
↓ 9 callersFunctionRandomShortID
RandomShortID returns a random short id, generated from the cryptographically secure random generator.
zkidentity/shortid.go:120
↓ 9 callersMethodRun
Run the server.
rtdt/server/server.go:352
↓ 9 callersMethodSave
Save flushes current in memory database back to disk. The process is as follows: 1. Check if the database is dirty and abort process if it isn't 2. C
inidb/inidb.go:96
↓ 9 callersMethodServerCmd
ServerCmd decodes the packet as a server command and payload.
rpc/rtdt.go:486
↓ 9 callersFunctionSplitPath
SplitPath splits the path into path elements according to the separator.
client/resources/path.go:6
↓ 9 callersMethodSwap
(i, j int)
client/clientdb/sendqueue.go:75
↓ 9 callersFunctionWrite
Write data to a temp file, then renames the temp file to the passed filename in json format. log is used to log warnings that are not fatal to the Wr
internal/jsonfile/jsonfile.go:19
↓ 9 callersMethodadd
(ru *RemoteUser, myNick string)
client/remoteuser.go:958
← previousnext →201–300 of 4,266, ranked by callers