Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akitaonrails/tvclipboard
/ functions
Functions
65 in github.com/akitaonrails/tvclipboard
⨍
Functions
65
◇
Types & classes
6
↓ 19 callers
Function
NewTokenManager
(privateKeyHex string, timeoutMinutes int)
main.go:155
↓ 11 callers
Function
NewHub
()
main.go:78
↓ 11 callers
Method
Run
()
main.go:252
↓ 8 callers
Method
GenerateToken
()
main.go:184
↓ 8 callers
Function
generatePrivateKey
()
main.go:87
↓ 6 callers
Method
ValidateToken
(encrypted string)
main.go:203
↓ 6 callers
Function
encryptToken
(token SessionToken, privateKey []byte)
main.go:95
↓ 6 callers
Function
handleWebSocket
(hub *Hub, tm *TokenManager, w http.ResponseWriter, r *http.Request)
main.go:362
↓ 4 callers
Method
ReadPump
()
main.go:320
↓ 4 callers
Method
WritePump
()
main.go:348
↓ 3 callers
Function
decryptToken
(encrypted string, privateKey []byte)
main.go:120
↓ 2 callers
Method
cleanupExpiredTokens
()
main.go:234
↓ 2 callers
Function
getKey
()
static/js/common.js:7
↓ 2 callers
Function
injectSessionTimeout
(html string, timeoutSec int)
main.go:529
↓ 1 callers
Function
decryptMessage
(base64)
static/js/common.js:53
↓ 1 callers
Function
encryptMessage
(text)
static/js/common.js:34
↓ 1 callers
Function
findSubstring
(s, substr string)
main.go:542
↓ 1 callers
Function
getLocalIP
()
main.go:411
↓ 1 callers
Function
getPublicURL
()
static/js/common.js:74
↓ 1 callers
Function
htmlReplace
(html, old, new string)
main.go:535
↓ 1 callers
Function
sendText
()
static/js/client.js:3
↓ 1 callers
Method
startCleanupRoutine
()
main.go:224
Function
TestClientReconnect
TestClientReconnect tests that clients can reconnect
main_test.go:1206
Function
TestClientURLMissingToken
TestClientURLMissingToken tests that client page responds correctly to missing token
main_test.go:350
Function
TestConcurrentMessages
TestConcurrentMessages tests concurrent message sending
main_test.go:1052
Function
TestEncryptionCompatibility
TestEncryptionCompatibility tests that encrypted messages are compatible
main_test.go:886
Function
TestGeneratePrivateKey
TestGeneratePrivateKey tests that private key is 32 bytes and cryptographically random
main_test.go:628
Function
TestLongMessage
TestLongMessage tests that long messages are handled correctly
main_test.go:931
Function
TestMessageBroadcast
TestMessageBroadcast tests that messages are broadcast correctly to all clients except sender
main_test.go:727
Function
TestMessageEmpty
TestMessageEmpty tests handling of empty messages
main_test.go:1130
Function
TestMessageSendReceive
TestMessageSendReceive tests that messages flow through hub correctly
main_test.go:787
Function
TestMessageSizeLimit
TestMessageSizeLimit tests very large messages
main_test.go:1013
Function
TestMessageTypes
TestMessageTypes tests different message types
main_test.go:968
Function
TestMessageWithNewlines
TestMessageWithNewlines tests multiline messages
main_test.go:1180
Function
TestMessageWithQuotes
TestMessageWithQuotes tests messages containing quotes
main_test.go:1154
Function
TestMultipleValidTokens
TestMultipleValidTokens tests that multiple tokens can be generated and validated
main_test.go:687
Function
TestPrivateKeyFromEnv
TestPrivateKeyFromEnv tests that private keys can be set from hex string
main_test.go:268
Function
TestPrivateKeyGeneration
TestPrivateKeyGeneration tests that private keys are generated correctly
main_test.go:248
Function
TestPrivateKeyInvalidHex
TestPrivateKeyInvalidHex tests that invalid hex generates new key
main_test.go:281
Function
TestQRCodeGeneration
TestQRCodeGeneration tests QR code generation endpoint
main_test.go:292
Function
TestQRCodeURLFormat
TestQRCodeURLFormat tests that QR code contains proper URL format
main_test.go:563
Function
TestTokenCleanup
TestTokenCleanup tests that expired tokens are cleaned up
main_test.go:203
Function
TestTokenEncryptionDecryption
TestTokenEncryptionDecryption tests that tokens can be encrypted and decrypted
main_test.go:48
Function
TestTokenGeneration
TestTokenGeneration tests that tokens are generated correctly
main_test.go:22
Function
TestTokenJSONEncoding
TestTokenJSONEncoding tests that tokens can be properly JSON encoded/decoded
main_test.go:597
Function
TestTokenManagerTimeout
TestTokenManagerTimeout tests that token timeout is correctly set
main_test.go:665
Function
TestTokenNotFound
TestTokenNotFound tests that unknown tokens fail validation
main_test.go:176
Function
TestTokenValidationExpired
TestTokenValidationExpired tests that expired tokens fail validation
main_test.go:144
Function
TestTokenValidationInvalid
TestTokenValidationInvalid tests that invalid tokens fail validation
main_test.go:124
Function
TestTokenValidationValid
TestTokenValidationValid tests that valid tokens pass validation
main_test.go:102
Function
TestTokenWithDifferentKey
TestTokenWithDifferentKey tests that decryption fails with wrong key
main_test.go:80
Function
TestWebSocketConnectionHostWithToken
TestWebSocketConnectionHostWithToken tests that host connection with token is rejected
main_test.go:533
Function
TestWebSocketConnectionHostWithoutToken
TestWebSocketConnectionHostWithoutToken tests that host can connect without token
main_test.go:503
Function
TestWebSocketConnectionWithExpiredToken
TestWebSocketConnectionWithExpiredToken tests that WebSocket rejects expired tokens
main_test.go:459
Function
TestWebSocketConnectionWithInvalidToken
TestWebSocketConnectionWithInvalidToken tests that WebSocket rejects invalid tokens
main_test.go:430
Function
TestWebSocketConnectionWithoutToken
TestWebSocketConnectionWithoutToken tests that WebSocket rejects connections without token when host exists
main_test.go:401
Function
clearInput
()
static/js/client.js:39
Function
copyFromClipboard
()
static/js/client.js:43
Function
copyReceived
()
static/js/host.js:54
Function
generateQRCode
()
static/js/host.js:93
Function
getWebSocketURL
()
static/js/common.js:68
Function
hashKey
(key string)
main.go:246
Function
main
()
main.go:428
Function
showReceivedContent
(encryptedContent, from)
static/js/host.js:6
Function
toggleReveal
()
static/js/host.js:69