notifications

package
v0.0.0-...-335cba8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenToPostgresNotifications

func ListenToPostgresNotifications(ctx context.Context, wg *sync.WaitGroup, pool *pgxpool.Pool)

ListenToPostgresNotifications reads a message from Postgres LISTEN and prints it to the terminal

func SendPostgresNotification

func SendPostgresNotification(ctx context.Context, wg *sync.WaitGroup, notificationChannel chan []byte, pool *pgxpool.Pool)

SendPostgresNotification sends a message from the notificationChannel to Postgres NOTIFY

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL