MCPcopy Create free account

hub / github.com/CrunchyData/pg_eventserv / functions

Functions24 in github.com/CrunchyData/pg_eventserv

↓ 5 callersMethodClose
(channel string)
main.go:91
↓ 2 callersMethodGetRelay
get a relay from the map if possible, otherwise create a new one and store it in the map
main.go:83
↓ 2 callersFunctionformatBaseURL
formatBaseURL takes a hostname (baseHost) and a base path and joins them. Both are parsed as URLs (using net/url) and then joined to ensure a properl
util.go:21
↓ 2 callersFunctionsetupWebSocket
(url)
examples/moving-objects/moving-objects.js:158
↓ 1 callersMethodHasChannel
(channel string)
main.go:105
↓ 1 callersFunctionchannelValid
**********************************************************************/
main.go:115
↓ 1 callersFunctiondbConnect
()
db.go:19
↓ 1 callersFunctionfsSend
()
examples/chat/chat.js:78
↓ 1 callersFunctionlistenForNotify
Goroutine to watch a PgSQL LISTEN/NOTIFY channel, and send the notification object to the broadcast relay when an event comes through
main.go:294
↓ 1 callersFunctionnextSocketNum
()
main.go:132
↓ 1 callersFunctionserverURLBase
serverURLBase returns the base server URL that the client used to access this service. All pg_tileserv routes are mounted relative to this URL (includ
util.go:38
↓ 1 callersFunctionserverURLHost
serverURLHost returns the host (and scheme) for this service. In the case of access via a proxy service, if the standard headers are set, we return th
util.go:66
↓ 1 callersFunctionserverWsBase
(r *http.Request)
util.go:45
↓ 1 callersFunctionwebSocketHandler
Generator function to create http.Handler to the http.Server to run. Handler converts request to websocket, and sets up goroutine to listen for broadc
main.go:339
↓ 1 callersFunctionwsConnect
()
examples/chat/chat.js:29
↓ 1 callersFunctionwsConnect
()
examples/notify/notify.js:14
MethodCloseAll
()
main.go:98
FunctionfsEnter
(event)
examples/chat/chat.js:20
FunctiongetIconStyle
(feature)
examples/moving-objects/moving-objects.js:24
Functioninit
**********************************************************************/
main.go:139
Functionmain
()
main.go:160
FunctionobjMove
(objId, direction)
examples/moving-objects/moving-objects.js:93
FunctionobjsAddToPage
()
examples/moving-objects/moving-objects.js:59
FunctionrequestIndexHTML
(w http.ResponseWriter, r *http.Request)
main.go:435