streamer

package
v0.2.194 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Streamer

type Streamer struct {
	*task.Task

	Output chan string
	// contains filtered or unexported fields
}

Streams data from postgres notification channel puts on output channel

func NewStreamer

func NewStreamer(config *config.Config, name string) (self *Streamer)

func (*Streamer) Pause

func (self *Streamer) Pause() (err error)

func (*Streamer) Resume

func (self *Streamer) Resume() (err error)

func (*Streamer) WithCapacity

func (self *Streamer) WithCapacity(size int) *Streamer

func (*Streamer) WithNotificationChannelName

func (self *Streamer) WithNotificationChannelName(name string) *Streamer

Jump to

Keyboard shortcuts

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