MCPcopy Create free account

hub / github.com/akmittal/turbo-go / functions

Functions19 in github.com/akmittal/turbo-go

↓ 2 callersFunctionNewHub
NewHub Create a new hub, Hub keep track of all connected clients
pkg/turbo/hub.go:24
↓ 2 callersMethodRun
Run Start the Hub, Running HUb broadcast messages to all connected hubs
pkg/turbo/hub.go:34
↓ 2 callersMethodStream
Stream start streaming messages to all hub clients
pkg/turbo/stream.go:22
↓ 2 callersFunctionWrapTemplateInTurbo
(name string)
internal/util/util.go:21
↓ 1 callersMethodSend
Send sends turbo template as HTTP response
pkg/turbo/turbo.go:35
↓ 1 callersFunctiongetSocket
(hub *turbo.Hub, rw http.ResponseWriter, req *http.Request)
examples/timestamp/main.go:31
↓ 1 callersFunctiongetSocket
(msgChan chan interface{}, hub *turbo.Hub, rw http.ResponseWriter, req *http.Request)
examples/hotwire/main.go:56
↓ 1 callersFunctionsendMessage
(msgChan chan interface{}, hub *turbo.Hub, rw http.ResponseWriter, req *http.Request)
examples/hotwire/main.go:38
↓ 1 callersFunctionsendMessages
(data chan interface{})
examples/timestamp/main.go:50
↓ 1 callersMethodsendSocket
(hub *Hub)
pkg/turbo/turbo.go:39
↓ 1 callersMethodwritePump
()
pkg/turbo/client.go:39
FunctionNew
(text string)
examples/hotwire/message/message.go:7
MethodSend
(rw http.ResponseWriter, req *http.Request)
pkg/turbo/update.go:17
MethodSetHeader
(rw http.ResponseWriter)
pkg/turbo/turbo.go:30
FunctiongetIndex
(rw http.ResponseWriter, req *http.Request)
examples/timestamp/main.go:26
FunctiongetIndex
(rw http.ResponseWriter, req *http.Request)
examples/hotwire/main.go:31
Functioninit
()
internal/util/util.go:16
Functionmain
()
examples/timestamp/main.go:14
Functionmain
()
examples/hotwire/main.go:15