Code
Hub
Workspaces
Following
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
↓ 13 callers
Method
Sub
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 callers
Method
appendPacketHeader
appendPacketHeader appends this packet's header into a byte slice.
rpc/rtdt.go:478
↓ 13 callers
Function
btnWithTrailing
(trailing string)
brclient/formhelper.go:182
↓ 13 callers
Method
setFocus
(i int)
brclient/setupwizard.go:89
↓ 13 callers
Method
setMsgSent
(msg *chatMsg)
brclient/chatwindow.go:735
↓ 12 callers
Function
ComposeCompressedRM
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 callers
Method
Decapsulate
(b []byte, sk *[32]byte)
zkidentity/fixedsize.go:190
↓ 12 callers
Method
FetchResource
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 callers
Method
GetInfo
()
internal/e2etests/mocks_test.go:25
↓ 12 callers
Method
Level
Level returns the current logging level.
internal/logutil/logutil.go:83
↓ 12 callers
Method
MetadataHash
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 callers
Method
SendRM
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 callers
Method
SendRandomData
SendRandomData sends data in the random stream. This is only used during tests.
rtdt/client/sessions.go:106
↓ 12 callers
Function
True
True asserts the given bool is true.
internal/assert/asserts.go:239
↓ 12 callers
Method
ack
ack clears the replay log up to the specified id.
client/rpcserver/streams.go:123
↓ 12 callers
Function
assertClientsCanPM
assertClientsCanPM asserts that the clients can PM each other.
internal/e2etests/assertions_test.go:117
↓ 12 callers
Method
assertNextRandomData
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 callers
Method
changeActiveWindow
changeActiveWindow changes the state to the specified window.
brclient/appstate.go:998
↓ 12 callers
Function
maybeShutdown
(as *appState, msg tea.Msg)
brclient/shutdownstate.go:49
↓ 12 callers
Method
newClient
newClient creates a new test client for this server.
rtdt/client/util_test.go:311
↓ 12 callers
Function
newMockRMQDB
()
client/internal/lowlevel/util_test.go:502
↓ 12 callers
Function
newServerStreams
newServerStreams creates a new set of server streams for a given message type.
client/rpcserver/streams.go:135
↓ 12 callers
Function
newTestServer
newTestServer creates a new test server.
rtdt/client/util_test.go:393
↓ 12 callers
Method
runStream
runStream runs the stream, sending unacked messages from the replayLog starting at unackedFrom.
client/rpcserver/streams.go:49
↓ 12 callers
Method
send
send the notification on all running streams.
client/rpcserver/streams.go:92
↓ 12 callers
Function
testRand
(t testing.TB)
client/util_test.go:28
↓ 11 callers
Method
AcceptGroupChatInvite
AcceptGroupChatInvite accepts the given invitation, previously received from some user.
client/client_groupchat.go:372
↓ 11 callers
Method
AcceptInvite
AcceptInvite accepts an invite to kx with the user-provided invite.
clientrpc/types/clientrpc_svcintf.pb.go:138
↓ 11 callers
Method
AddInputs
(inputs ...tea.Model)
brclient/formhelper.go:157
↓ 11 callers
Method
DecodeInvoice
(context.Context, string)
client/clientintf/interface.go:175
↓ 11 callers
Method
Error
Error formats message using the default formats for its operands and writes to log with LevelError.
internal/logutil/logutil.go:72
↓ 11 callers
Method
HookDecodeInvoice
(hook func(string) (clientintf.DecodedInvoice, error))
internal/testutils/mockpayclient.go:98
↓ 11 callers
Method
Info
Info formats message using the default formats for its operands and writes to log with LevelInfo.
internal/logutil/logutil.go:60
↓ 11 callers
Method
LNRPC
()
client/payment.go:116
↓ 11 callers
Function
NewRVManager
(log slog.Logger, db RVManagerDB, subsDelayer func() <-chan time.Time, subDoneCB func())
client/internal/lowlevel/rendezvous.go:101
↓ 11 callers
Method
SaveGC
(tx ReadWriteTx, gc GroupChat)
client/clientdb/gc.go:382
↓ 11 callers
Method
UpdateRTDTSession
UpdateRTDTSession updates the data for the given RTDT session.
client/clientdb/rtdtsessions.go:19
↓ 11 callers
Function
assertClientsKXd
(t testing.TB, alice, bob *testClient)
internal/e2etests/assertions_test.go:23
↓ 11 callers
Function
assertPostSubscriber
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 callers
Function
assertPostSubscription
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 callers
Function
expandPath
(homeDir, path string)
brclient/config.go:205
↓ 11 callers
Function
isEnterMsg
isEnterMsg returns true if the message is a key down message of the enter key.
brclient/messages.go:297
↓ 11 callers
Method
logGCEvent
logGCEvent logs the given GC event. Must not be called from inside a DB transaction.
client/client_groupchat.go:1389
↓ 11 callers
Method
logger
logger creates a logger for the given subsystem in the configured backend.
client/client.go:236
↓ 11 callers
Method
newHandshakedSession
newHandshakedSession creates a new session and completes the handshake with the scaffold server.
rtdt/client/util_test.go:221
↓ 11 callers
Function
partitionTableName
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 callers
Method
pushReadMsg
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 callers
Method
recreateStoppedClient
recreateStoppedClient recreates a client that was previously stopped. If the client was not stopped, results are undefined.
internal/e2etests/e2e_test.go:629
↓ 11 callers
Function
removeIfExists
removeIfExists removes the filename if it exists. If it does not exist, this doesn't return an error.
client/clientdb/util.go:59
↓ 11 callers
Method
serverWrite
serverWrite sends a message from the server encoded with the key for this session.
rtdt/client/util_test.go:50
↓ 11 callers
Method
write
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 callers
Function
writeServerMsg
(t testing.TB, kx *session.KX, msg rpc.Message, payload interface{})
server/util_test.go:165
↓ 10 callers
Method
Bind
Bind the service server to the specified name.
clientrpc/types/registry.go:65
↓ 10 callers
Method
CreatePost
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 callers
Method
Encapsulate
()
zkidentity/fixedsize.go:134
↓ 10 callers
Method
Error
()
client/errors.go:107
↓ 10 callers
Method
FromBytes
FromBytes decodes the byte slice into this framed packet.
rpc/rtdt.go:462
↓ 10 callers
Method
GetAddressBookEntry
GetAddressBookEntry loads the address book information of an user.
client/clientdb/fscdb.go:264
↓ 10 callers
Method
IsOwnerOrAdmin
IsOwnerOrAdmin returns true if the given ID is the owner or an admin of the session.
rpc/routed_rtdt.go:139
↓ 10 callers
Method
LogGCMsg
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 callers
Function
New
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 callers
Function
NewConnKeeper
(cfg ConnKeeperCfg)
client/internal/lowlevel/welcome.go:67
↓ 10 callers
Method
Public
Public returns the full public identity data for the local client.
client/client.go:921
↓ 10 callers
Method
RMReceived
RMReceived should be called whenever an RM for a user is received.
client/internal/gcmcacher/gcmcacher.go:203
↓ 10 callers
Method
RVPoint
RVPoint calculates the RV point that corresponds to this key.
client/clientintf/invitekey.go:20
↓ 10 callers
Method
Run
Run runs all client goroutines until the given context is canceled. Must only be called once.
client/client.go:1323
↓ 10 callers
Method
Run
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 callers
Method
String
()
rtdt/server/listener.go:80
↓ 10 callers
Method
UnsubscribeToPosts
UnsubscribeToPosts makes the local client unsubscribe from a remote user's posts.
clientrpc/types/clientrpc_svcintf.pb.go:923
↓ 10 callers
Method
UserLogNick
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 callers
Method
activeChatWindow
activeChatWindow returns the currently active chat window or nil if the active window is _not_ a chat window.
brclient/appstate.go:915
↓ 10 callers
Function
assertClientJoinsGC
assertClientJoinsGC asserts that the admin of the GC can invite and the invitee joins the GC.
internal/e2etests/assertions_test.go:177
↓ 10 callers
Method
assertNextMembersList
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 callers
Method
listenerWrite
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 callers
Function
makeWalletUsableErr
(kind WalletUsableErrorKind, descr string)
client/errors.go:82
↓ 10 callers
Function
newTextInputHelper
(styles *theme, opts ...textInputHelperOption)
brclient/textinputhelper.go:82
↓ 10 callers
Method
nextServerBytesAddr
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 callers
Function
pairedRatchet
(t *testing.T)
ratchet/ratchet_test.go:54
↓ 10 callers
Function
popNArgs
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 callers
Function
printf
(format string, args ...interface{})
internal/audio/cmd/simstream/terminal.go:18
↓ 10 callers
Method
readNext
readNext reads the next message sent by the server.
rtdt/server/util_test.go:347
↓ 10 callers
Function
sleep
sleep for d duration or m*d if running in race mode.
internal/e2etests/race_test.go:9
↓ 10 callers
Function
writeWrappedWithStyle
writeWrappedWithStyle writes s to b using the style with wrapping at winW. Returns the new offset.
brclient/chatwindow.go:788
↓ 9 callers
Method
CreateRTDTSession
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 callers
Function
EncryptedSize
EncryptedSize returns the estimated size for an encrypted ratched message, given the specified payload msg size.
ratchet/ratchet.go:747
↓ 9 callers
Method
GCKick
GCKick kicks the given user from the GC. This only works if we're the gc admin.
client/client_groupchat.go:1407
↓ 9 callers
Method
JoinLiveRTDTSession
JoinLiveRTDTSession joins the live RTDT session.
client/client_rtdt.go:1190
↓ 9 callers
Method
Last
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 callers
Method
Listen
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 callers
Method
LocalIsAdmin
LocalIsAdmin returns true if the local client is an admin of this session.
client/clientdb/interface.go:867
↓ 9 callers
Function
MaxMsgSizeForVersion
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 callers
Function
NotNil
(t testing.TB, v any)
internal/assert/asserts.go:178
↓ 9 callers
Function
RandomShortID
RandomShortID returns a random short id, generated from the cryptographically secure random generator.
zkidentity/shortid.go:120
↓ 9 callers
Method
Run
Run the server.
rtdt/server/server.go:352
↓ 9 callers
Method
Save
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 callers
Method
ServerCmd
ServerCmd decodes the packet as a server command and payload.
rpc/rtdt.go:486
↓ 9 callers
Function
SplitPath
SplitPath splits the path into path elements according to the separator.
client/resources/path.go:6
↓ 9 callers
Method
Swap
(i, j int)
client/clientdb/sendqueue.go:75
↓ 9 callers
Function
Write
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 callers
Method
add
(ru *RemoteUser, myNick string)
client/remoteuser.go:958
← previous
next →
201–300 of 4,266, ranked by callers