Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akmittal/turbo-go
/ functions
Functions
19 in github.com/akmittal/turbo-go
⨍
Functions
19
◇
Types & classes
7
↓ 2 callers
Function
NewHub
NewHub Create a new hub, Hub keep track of all connected clients
pkg/turbo/hub.go:24
↓ 2 callers
Method
Run
Run Start the Hub, Running HUb broadcast messages to all connected hubs
pkg/turbo/hub.go:34
↓ 2 callers
Method
Stream
Stream start streaming messages to all hub clients
pkg/turbo/stream.go:22
↓ 2 callers
Function
WrapTemplateInTurbo
(name string)
internal/util/util.go:21
↓ 1 callers
Method
Send
Send sends turbo template as HTTP response
pkg/turbo/turbo.go:35
↓ 1 callers
Function
getSocket
(hub *turbo.Hub, rw http.ResponseWriter, req *http.Request)
examples/timestamp/main.go:31
↓ 1 callers
Function
getSocket
(msgChan chan interface{}, hub *turbo.Hub, rw http.ResponseWriter, req *http.Request)
examples/hotwire/main.go:56
↓ 1 callers
Function
sendMessage
(msgChan chan interface{}, hub *turbo.Hub, rw http.ResponseWriter, req *http.Request)
examples/hotwire/main.go:38
↓ 1 callers
Function
sendMessages
(data chan interface{})
examples/timestamp/main.go:50
↓ 1 callers
Method
sendSocket
(hub *Hub)
pkg/turbo/turbo.go:39
↓ 1 callers
Method
writePump
()
pkg/turbo/client.go:39
Function
New
(text string)
examples/hotwire/message/message.go:7
Method
Send
(rw http.ResponseWriter, req *http.Request)
pkg/turbo/update.go:17
Method
SetHeader
(rw http.ResponseWriter)
pkg/turbo/turbo.go:30
Function
getIndex
(rw http.ResponseWriter, req *http.Request)
examples/timestamp/main.go:26
Function
getIndex
(rw http.ResponseWriter, req *http.Request)
examples/hotwire/main.go:31
Function
init
()
internal/util/util.go:16
Function
main
()
examples/timestamp/main.go:14
Function
main
()
examples/hotwire/main.go:15