Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CrunchyData/pg_eventserv
/ functions
Functions
24 in github.com/CrunchyData/pg_eventserv
⨍
Functions
24
◇
Types & classes
4
↓ 5 callers
Method
Close
(channel string)
main.go:91
↓ 2 callers
Method
GetRelay
get a relay from the map if possible, otherwise create a new one and store it in the map
main.go:83
↓ 2 callers
Function
formatBaseURL
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 callers
Function
setupWebSocket
(url)
examples/moving-objects/moving-objects.js:158
↓ 1 callers
Method
HasChannel
(channel string)
main.go:105
↓ 1 callers
Function
channelValid
**********************************************************************/
main.go:115
↓ 1 callers
Function
dbConnect
()
db.go:19
↓ 1 callers
Function
fsSend
()
examples/chat/chat.js:78
↓ 1 callers
Function
listenForNotify
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 callers
Function
nextSocketNum
()
main.go:132
↓ 1 callers
Function
serverURLBase
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 callers
Function
serverURLHost
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 callers
Function
serverWsBase
(r *http.Request)
util.go:45
↓ 1 callers
Function
webSocketHandler
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 callers
Function
wsConnect
()
examples/chat/chat.js:29
↓ 1 callers
Function
wsConnect
()
examples/notify/notify.js:14
Method
CloseAll
()
main.go:98
Function
fsEnter
(event)
examples/chat/chat.js:20
Function
getIconStyle
(feature)
examples/moving-objects/moving-objects.js:24
Function
init
**********************************************************************/
main.go:139
Function
main
()
main.go:160
Function
objMove
(objId, direction)
examples/moving-objects/moving-objects.js:93
Function
objsAddToPage
()
examples/moving-objects/moving-objects.js:59
Function
requestIndexHTML
(w http.ResponseWriter, r *http.Request)
main.go:435