Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coussej/pgbroadcaster
/ functions
Functions
10 in github.com/coussej/pgbroadcaster
⨍
Functions
10
◇
Types & classes
4
↓ 2 callers
Method
writeMessage
writeMessage writes a message with the given message type and payload.
conn.go:65
↓ 1 callers
Method
handleIncomingNotifications
()
pgbroadcaster.go:71
↓ 1 callers
Function
newPgListener
newPgListener creates and returns the pglistener from the pq package.
pgbroadcaster.go:56
↓ 1 callers
Method
reader
the reader listens for incoming messages on the websocket. the purpose is that the client sends a string message containing the tablename it wants to
conn.go:46
↓ 1 callers
Method
run
()
hub.go:18
↓ 1 callers
Method
writeJSON
writeMessage marshals an interface to json and sends it.
conn.go:71
↓ 1 callers
Method
writer
writer writes the pgnotificiations it receives from the hub to the websocket connection.
conn.go:78
Method
Listen
Listen makes the PgBroadcaster's underlying pglistener listen to thh specified channel
pgbroadcaster.go:51
Function
NewPgBroadcaster
(pgconninfo string)
pgbroadcaster.go:22
Method
ServeWs
serverWs handles websocket requests from the peer.
conn.go:103