MCPcopy Create free account

hub / github.com/akitaonrails/tvclipboard / functions

Functions65 in github.com/akitaonrails/tvclipboard

↓ 19 callersFunctionNewTokenManager
(privateKeyHex string, timeoutMinutes int)
main.go:155
↓ 11 callersFunctionNewHub
()
main.go:78
↓ 11 callersMethodRun
()
main.go:252
↓ 8 callersMethodGenerateToken
()
main.go:184
↓ 8 callersFunctiongeneratePrivateKey
()
main.go:87
↓ 6 callersMethodValidateToken
(encrypted string)
main.go:203
↓ 6 callersFunctionencryptToken
(token SessionToken, privateKey []byte)
main.go:95
↓ 6 callersFunctionhandleWebSocket
(hub *Hub, tm *TokenManager, w http.ResponseWriter, r *http.Request)
main.go:362
↓ 4 callersMethodReadPump
()
main.go:320
↓ 4 callersMethodWritePump
()
main.go:348
↓ 3 callersFunctiondecryptToken
(encrypted string, privateKey []byte)
main.go:120
↓ 2 callersMethodcleanupExpiredTokens
()
main.go:234
↓ 2 callersFunctiongetKey
()
static/js/common.js:7
↓ 2 callersFunctioninjectSessionTimeout
(html string, timeoutSec int)
main.go:529
↓ 1 callersFunctiondecryptMessage
(base64)
static/js/common.js:53
↓ 1 callersFunctionencryptMessage
(text)
static/js/common.js:34
↓ 1 callersFunctionfindSubstring
(s, substr string)
main.go:542
↓ 1 callersFunctiongetLocalIP
()
main.go:411
↓ 1 callersFunctiongetPublicURL
()
static/js/common.js:74
↓ 1 callersFunctionhtmlReplace
(html, old, new string)
main.go:535
↓ 1 callersFunctionsendText
()
static/js/client.js:3
↓ 1 callersMethodstartCleanupRoutine
()
main.go:224
FunctionTestClientReconnect
TestClientReconnect tests that clients can reconnect
main_test.go:1206
FunctionTestClientURLMissingToken
TestClientURLMissingToken tests that client page responds correctly to missing token
main_test.go:350
FunctionTestConcurrentMessages
TestConcurrentMessages tests concurrent message sending
main_test.go:1052
FunctionTestEncryptionCompatibility
TestEncryptionCompatibility tests that encrypted messages are compatible
main_test.go:886
FunctionTestGeneratePrivateKey
TestGeneratePrivateKey tests that private key is 32 bytes and cryptographically random
main_test.go:628
FunctionTestLongMessage
TestLongMessage tests that long messages are handled correctly
main_test.go:931
FunctionTestMessageBroadcast
TestMessageBroadcast tests that messages are broadcast correctly to all clients except sender
main_test.go:727
FunctionTestMessageEmpty
TestMessageEmpty tests handling of empty messages
main_test.go:1130
FunctionTestMessageSendReceive
TestMessageSendReceive tests that messages flow through hub correctly
main_test.go:787
FunctionTestMessageSizeLimit
TestMessageSizeLimit tests very large messages
main_test.go:1013
FunctionTestMessageTypes
TestMessageTypes tests different message types
main_test.go:968
FunctionTestMessageWithNewlines
TestMessageWithNewlines tests multiline messages
main_test.go:1180
FunctionTestMessageWithQuotes
TestMessageWithQuotes tests messages containing quotes
main_test.go:1154
FunctionTestMultipleValidTokens
TestMultipleValidTokens tests that multiple tokens can be generated and validated
main_test.go:687
FunctionTestPrivateKeyFromEnv
TestPrivateKeyFromEnv tests that private keys can be set from hex string
main_test.go:268
FunctionTestPrivateKeyGeneration
TestPrivateKeyGeneration tests that private keys are generated correctly
main_test.go:248
FunctionTestPrivateKeyInvalidHex
TestPrivateKeyInvalidHex tests that invalid hex generates new key
main_test.go:281
FunctionTestQRCodeGeneration
TestQRCodeGeneration tests QR code generation endpoint
main_test.go:292
FunctionTestQRCodeURLFormat
TestQRCodeURLFormat tests that QR code contains proper URL format
main_test.go:563
FunctionTestTokenCleanup
TestTokenCleanup tests that expired tokens are cleaned up
main_test.go:203
FunctionTestTokenEncryptionDecryption
TestTokenEncryptionDecryption tests that tokens can be encrypted and decrypted
main_test.go:48
FunctionTestTokenGeneration
TestTokenGeneration tests that tokens are generated correctly
main_test.go:22
FunctionTestTokenJSONEncoding
TestTokenJSONEncoding tests that tokens can be properly JSON encoded/decoded
main_test.go:597
FunctionTestTokenManagerTimeout
TestTokenManagerTimeout tests that token timeout is correctly set
main_test.go:665
FunctionTestTokenNotFound
TestTokenNotFound tests that unknown tokens fail validation
main_test.go:176
FunctionTestTokenValidationExpired
TestTokenValidationExpired tests that expired tokens fail validation
main_test.go:144
FunctionTestTokenValidationInvalid
TestTokenValidationInvalid tests that invalid tokens fail validation
main_test.go:124
FunctionTestTokenValidationValid
TestTokenValidationValid tests that valid tokens pass validation
main_test.go:102
FunctionTestTokenWithDifferentKey
TestTokenWithDifferentKey tests that decryption fails with wrong key
main_test.go:80
FunctionTestWebSocketConnectionHostWithToken
TestWebSocketConnectionHostWithToken tests that host connection with token is rejected
main_test.go:533
FunctionTestWebSocketConnectionHostWithoutToken
TestWebSocketConnectionHostWithoutToken tests that host can connect without token
main_test.go:503
FunctionTestWebSocketConnectionWithExpiredToken
TestWebSocketConnectionWithExpiredToken tests that WebSocket rejects expired tokens
main_test.go:459
FunctionTestWebSocketConnectionWithInvalidToken
TestWebSocketConnectionWithInvalidToken tests that WebSocket rejects invalid tokens
main_test.go:430
FunctionTestWebSocketConnectionWithoutToken
TestWebSocketConnectionWithoutToken tests that WebSocket rejects connections without token when host exists
main_test.go:401
FunctionclearInput
()
static/js/client.js:39
FunctioncopyFromClipboard
()
static/js/client.js:43
FunctioncopyReceived
()
static/js/host.js:54
FunctiongenerateQRCode
()
static/js/host.js:93
FunctiongetWebSocketURL
()
static/js/common.js:68
FunctionhashKey
(key string)
main.go:246
Functionmain
()
main.go:428
FunctionshowReceivedContent
(encryptedContent, from)
static/js/host.js:6
FunctiontoggleReveal
()
static/js/host.js:69