pgevents

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func OpenListener

func OpenListener(connectionString string) (*Listener, error)

func (*Listener) Attach

func (l *Listener) Attach(table string) error

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) OnEvent

func (l *Listener) OnEvent(cb OnEvent)

func (*Listener) OnReconnect

func (l *Listener) OnReconnect(cb OnReconnect)

type OnEvent

type OnEvent func(*TableEvent)

type OnReconnect

type OnReconnect func()

type TableEvent

type TableEvent struct {
	Table  string
	Action string
	Data   string
}

Jump to

Keyboard shortcuts

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